Skip to content

属性

选项组件的属性

属性

属性类型描述
children?null | OptionProps[]子选项 默认值 null
closeAfterClick?boolean点击后关闭 默认值 true
disabled?boolean是否禁用 默认值 false
label?string选项显示标签 默认值 与value相同
minwidth?null | number最小宽度 默认值 0
showCheckBox?boolean是否显示勾选框 默认值 false
showCheckedIcon?boolean是否显示选中时的勾选图标 默认值 true
suffix?null | OptionSuffixType后缀内容,优先级html > text > icon 默认值 null
tooltip?string提示信息 默认值 ''
valueOptionValueType选项值 Requires
width?null | number宽度,(若不设置默认100%,子选项宽度适应内容) 默认值 null