From 2e8d27bf4261c45168bd842c11591d25ba4f0d13 Mon Sep 17 00:00:00 2001 From: chenos Date: Tue, 6 Sep 2022 11:40:26 +0800 Subject: [PATCH] fix: number storage type changed to double (#810) --- .../core/client/src/collection-manager/interfaces/number.ts | 4 ++-- .../src/collection-manager/interfaces/properties/index.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/client/src/collection-manager/interfaces/number.ts b/packages/core/client/src/collection-manager/interfaces/number.ts index fa9329514..ca32bcdc5 100644 --- a/packages/core/client/src/collection-manager/interfaces/number.ts +++ b/packages/core/client/src/collection-manager/interfaces/number.ts @@ -1,6 +1,6 @@ +import { i18n } from '../../i18n'; import { defaultProps, operators, unique } from './properties'; import { IField } from './types'; -import { i18n } from '../../i18n'; export const number: IField = { name: 'number', @@ -10,7 +10,7 @@ export const number: IField = { title: '{{t("Number")}}', sortable: true, default: { - type: 'float', + type: 'double', // name, uiSchema: { type: 'number', diff --git a/packages/core/client/src/collection-manager/interfaces/properties/index.ts b/packages/core/client/src/collection-manager/interfaces/properties/index.ts index 86443c2c1..6c32c2360 100644 --- a/packages/core/client/src/collection-manager/interfaces/properties/index.ts +++ b/packages/core/client/src/collection-manager/interfaces/properties/index.ts @@ -16,6 +16,7 @@ export const type: ISchema = { { label: 'Text', value: 'text' }, { label: 'Integer', value: 'integer' }, { label: 'Float', value: 'float' }, + { label: 'Double', value: 'double' }, { label: 'Decimal', value: 'decimal' }, { label: 'Date', value: 'date' }, { label: 'DateOnly', value: 'dateonly' },