Skip to content

Commit

Permalink
feat: 重构 InputNumber 组件 & 支持16 位大数字
Browse files Browse the repository at this point in the history
  • Loading branch information
honkinglin committed Aug 11, 2022
1 parent ae35506 commit c0126b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/pagination/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ const Pagination = forwardRef((props: PaginationProps, ref: React.Ref<HTMLDivEle
max={pageCount}
disabled={disabled}
value={jumpValue}
onChange={(val) => setJumpValue(val)}
onBlur={(val) => changeCurrent(val)}
onEnter={(val) => changeCurrent(val)}
onChange={(val: number) => setJumpValue(val)}
onBlur={(val: number) => changeCurrent(val)}
onEnter={(val: number) => changeCurrent(val)}
placeholder=""
/>
</InputAdornment>
Expand Down
2 changes: 1 addition & 1 deletion src/slider/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface TdSliderProps {
* 用于控制数字输入框组件,值为 false 表示不显示数字输入框;值为 true 表示呈现默认数字输入框;值类型为 Object 表示透传属性到数字输入框组件
* @default false
*/
inputNumberProps?: boolean | InputNumberProps;
inputNumberProps?: boolean | InputNumberProps<number>;
/**
* 滑块当前值文本。<br />值为 true 显示默认文案;值为 false 不显示滑块当前值文本;<br />值为 `${value}%` 则表示组件会根据占位符渲染文案;<br />值类型为函数时,参数 `value` 标识滑块值,参数 `position=start` 表示范围滑块的起始值,参数 `position=end` 表示范围滑块的终点值
* @default true
Expand Down

0 comments on commit c0126b8

Please sign in to comment.