fix: number storage type changed to double (#810)

This commit is contained in:
chenos 2022-09-06 11:40:26 +08:00 committed by GitHub
parent c50a1923f4
commit 2e8d27bf42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import { i18n } from '../../i18n';
import { defaultProps, operators, unique } from './properties'; import { defaultProps, operators, unique } from './properties';
import { IField } from './types'; import { IField } from './types';
import { i18n } from '../../i18n';
export const number: IField = { export const number: IField = {
name: 'number', name: 'number',
@ -10,7 +10,7 @@ export const number: IField = {
title: '{{t("Number")}}', title: '{{t("Number")}}',
sortable: true, sortable: true,
default: { default: {
type: 'float', type: 'double',
// name, // name,
uiSchema: { uiSchema: {
type: 'number', type: 'number',

View File

@ -16,6 +16,7 @@ export const type: ISchema = {
{ label: 'Text', value: 'text' }, { label: 'Text', value: 'text' },
{ label: 'Integer', value: 'integer' }, { label: 'Integer', value: 'integer' },
{ label: 'Float', value: 'float' }, { label: 'Float', value: 'float' },
{ label: 'Double', value: 'double' },
{ label: 'Decimal', value: 'decimal' }, { label: 'Decimal', value: 'decimal' },
{ label: 'Date', value: 'date' }, { label: 'Date', value: 'date' },
{ label: 'DateOnly', value: 'dateonly' }, { label: 'DateOnly', value: 'dateonly' },