Skip to content

NumberInput数字输入框

尺寸

通过 size 来设置尺寸大小 可选值有 xs sm md lg xl

禁用状态

最值

通过 minmax 来分别设置最小和最大值

color颜色

通过 color 来设置颜色

可选值 [base,neutral,primary,secondary,accent,info,success,warning,error]

API

Attributes

属性值说明类型默认值
size尺寸NumberInputSize'sm'
placeholder占位符string-
disabled是否禁用booleanfalse
min最小值number-
max最大值number-
color颜色NumberInputColorbase