You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Input 输入框
Attributes
v-model
绑定值type
类型,可选值text / password
size
不同尺寸large / medium / small / mini
clear
是否可清空suffix-icon
后缀icon
prefix-icon
前缀icon
disabled
禁用状态show-pass
是否展示可以查看密码的按钮autofocus
是否自动获取焦点name
原生name
属性width
自定义宽度(默认 100%)placeholder
占位符readonly
是否只读状态max
最大输入min
最小输入round
圆角输入框background
输入框背景色text-color
文字颜色border-color
边框颜色bordered
是否显示边框Event
clear
点击清空按钮触发的回调enter
按下回车时候触发的回调change
在输入框发生变化时候触发的回调onfocus
获取焦点触发的回调onblur
失去焦点触发的回调设计稿
https://www.figma.com/file/JUkONXFsWIaE04cgZbAFBC/Input-%E8%BE%93%E5%85%A5%E6%A1%86?node-id=0%3A1
参考文档
可以通过下面文档进行参考设计组件
https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input
Beta Was this translation helpful? Give feedback.
All reactions