Skip to content

Input 输入框

单行文本输入,支持前缀、后缀、清除、密码显隐等。

基础用法

loading

禁用、只读与可清空

loading

尺寸与形状

loading

sizexs / sm / md / lg / xl
shapedefault / round / pill

API

属性说明类型默认值
modelValue绑定值string | number-
type输入类型string'text'
size尺寸ComponentSize'md'
shape形状'default' | 'round' | 'pill''default'
disabled禁用booleanfalse
readonly只读booleanfalse
clearable可清空booleanfalse
placeholder占位符string''

事件:update:modelValueinputchangefocusblurclear

MIT License