Skip to content

Commit

Permalink
chore: update docs (#4547)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn authored Sep 10, 2024
1 parent 1bd13ab commit 63fe0e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/input-number/input-number.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name | type | default | description | required
align | String | - | options:left/center/right | N
allowInputOverLimit | Boolean | true | \- | N
autoWidth | Boolean | false | \- | N
decimalPlaces | Number | undefined | \- | N
decimalPlaces | Number / Object | undefined | Typescript:`InputNumberDecimalPlaces` `type InputNumberDecimalPlaces = number \| { enableRound: boolean; places: number } `[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/input-number/type.ts) | N
disabled | Boolean | - | \- | N
format | Function | - | Typescript:`(value: InputNumberValue, context?: { fixedNumber?: InputNumberValue }) => InputNumberValue` | N
inputProps | Object | - | Typescript:`InputProps`[Input API Documents](./input?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/input-number/type.ts) | N
Expand Down
2 changes: 1 addition & 1 deletion src/input-number/input-number.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
align | String | - | 文本内容位置,居左/居中/居右。可选项:left/center/right | N
allowInputOverLimit | Boolean | true | 是否允许输入超过 `max` `min` 范围外的数字。为保障用户体验,仅在失去焦点时进行数字范围矫正。默认允许超出,数字超出范围时,输入框变红提醒 | N
autoWidth | Boolean | false | 宽度随内容自适应 | N
decimalPlaces | Number | undefined | [小数位数](https://en.wiktionary.org/wiki/decimal_place) | N
decimalPlaces | Number / Object | undefined | [小数位数](https://en.wiktionary.org/wiki/decimal_place)。TS 类型:`InputNumberDecimalPlaces` `type InputNumberDecimalPlaces = number \| { enableRound: boolean; places: number } `[详细类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/input-number/type.ts) | N
disabled | Boolean | - | 禁用组件 | N
format | Function | - | 格式化输入框展示值。第二个事件参数 `context.fixedNumber` 表示处理过小数位数 `decimalPlaces` 的数字。TS 类型:`(value: InputNumberValue, context?: { fixedNumber?: InputNumberValue }) => InputNumberValue` | N
inputProps | Object | - | 透传 Input 输入框组件全部属性。TS 类型:`InputProps`[Input API Documents](./input?tab=api)[详细类型定义](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/input-number/type.ts) | N
Expand Down

0 comments on commit 63fe0e9

Please sign in to comment.