Replies: 1 comment
-
由 https://github.com/Chang-Hai 进行开发 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select 选择器
说明
选择器包含两个组件
f-select
和f-option
设计稿
https://www.figma.com/file/uuSEkcnUzwYs96IUpP3Gch/Select-%E9%80%89%E6%8B%A9%E5%99%A8?node-id=0%3A1
参考资料
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select
Select Attributes
modelValue / v-model
绑定值disabled
是否禁用readonly
是否只读clear
是否可清空placeholder
占位符name
原生 name 参考multiple
是否可以多选,参考size
尺寸 large middle small minishow-size
每次可以展示几个选项(原生 size 属性)clear-icon
自定义清空 iconarrow-icon
自定义箭头 icontext-color
文字颜色change
当绑定值改变时触发clear
点击清空按钮时触发blur
失去焦点时触发focus
获得焦点时触发Select Slots
default
默认插槽clear-icon
自定义清空样式arrow-icon
自定义箭头样式Option Attributes
value
绑定的值icon
自定义 icon 前缀color
自定义文字颜色hover-background
自定义 hover 状态的背景色bold
是否加粗文字Option Slots
default
默认插槽绑定的值Beta Was this translation helpful? Give feedback.
All reactions