Skip to content

Commit

Permalink
fix(input-number): type of decimalPlaces props should be number and o…
Browse files Browse the repository at this point in the history
…bject
  • Loading branch information
D-xuanmo authored Sep 25, 2024
1 parent d969374 commit 1aa43f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input-number/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default {
autoWidth: Boolean,
/** [小数位数](https://en.wiktionary.org/wiki/decimal_place) */
decimalPlaces: {
type: [String, Object] as PropType<TdInputNumberProps['decimalPlaces']>,
type: [Number, Object] as PropType<TdInputNumberProps['decimalPlaces']>,
default: undefined,
},
/** 禁用组件 */
Expand Down

0 comments on commit 1aa43f2

Please sign in to comment.