NumberInput数字输入框
尺寸
通过
size
来设置尺寸大小 可选值有xs
sm
md
lg
xl
禁用状态
最值
通过
min
和max
来分别设置最小和最大值
color颜色
通过
color
来设置颜色可选值
[base,neutral,primary,secondary,accent,info,success,warning,error]
API
Attributes
属性值 | 说明 | 类型 | 默认值 |
---|---|---|---|
size | 尺寸 | NumberInputSize | 'sm' |
placeholder | 占位符 | string | - |
disabled | 是否禁用 | boolean | false |
min | 最小值 | number | - |
max | 最大值 | number | - |
color | 颜色 | NumberInputColor | base |