Skip to content

Commit

Permalink
feat(generator): add description for number input precision config
Browse files Browse the repository at this point in the history
  • Loading branch information
mengshang918 committed Jan 7, 2022
1 parent 290d324 commit 5eeb67b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/generator/src/fields/formItem/number.field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,15 @@ const config: Field = {
},
{
fieldKey: 'precision',
type: 'string',
type: 'number',
title: '精度',
ui: {
type: 'text',
type: 'number',
description: {
type: 'icon',
trigger: 'hover',
title: '若要整数,则设置0',
},
placeholder: '请输入',
allowClear: true,
},
Expand All @@ -56,7 +61,6 @@ const config: Field = {
fieldKey: 'max',
type: 'number',
title: '最大值',
default: Number.MAX_SAFE_INTEGER,
ui: {
type: 'number',
},
Expand All @@ -65,7 +69,6 @@ const config: Field = {
fieldKey: 'min',
type: 'number',
title: '最小值',
default: Number.MIN_SAFE_INTEGER,
ui: {
type: 'number',
},
Expand Down

0 comments on commit 5eeb67b

Please sign in to comment.