Skip to content

Commit

Permalink
🐛 fix(field): Digit no set precision
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Nov 17, 2020
1 parent e377c36 commit 3fff10c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/field/src/components/Digit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const FieldDigit: ProFieldFC<FieldDigitProps> = (
<InputNumber
ref={ref}
min={0}
precision={2}
style={{
width: '100%',
}}
Expand Down
6 changes: 3 additions & 3 deletions tests/form/__snapshots__/demo.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ exports[`form demos renders ./packages/form/src/demos/components-other.tsx corre
placeholder="请输入"
role="spinbutton"
step="1"
value="3.00"
value="3"
/>
</div>
</div>
Expand Down Expand Up @@ -7568,7 +7568,7 @@ exports[`form demos renders ./packages/form/src/demos/layout-base.tsx correctly
placeholder="请输入"
role="spinbutton"
step="1"
value="5.00"
value="5"
/>
</div>
</div>
Expand Down Expand Up @@ -10537,7 +10537,7 @@ exports[`form demos renders ./packages/form/src/demos/multi-card-step-form.tsx c
placeholder="请输入名称"
role="spinbutton"
step="1"
value="9999.00"
value="9999"
/>
</div>
</div>
Expand Down

0 comments on commit 3fff10c

Please sign in to comment.