选择
基本
国家/地区
<vnt-select v-model="country" :options="countries"></vnt-select>
禁用
美国
国家/地区:美国
<vnt-select v-model="color" :options="colors" disabled></vnt-select>
自定义标签
国家/地区
<vnt-select v-model="country" :options="countries" label="Choose country"></vnt-select>
占位符
选择国家/地区
国家/地区
<vnt-select v-model="country" :options="countries" placeholder="Choose country"></vnt-select>
配置
disabled
默认值:false
确定选择组件是否应处于禁用模式。
label
默认值:''
选择控件的标签文本。
optionText
默认值:'label'
包含选项列表可见选项标签的属性的名称。
optionValue
默认值:'value'
包含选项值的属性的名称。
options
默认值:[]
一个供用户选择的选项数组。
placeholder
默认值:''
未选择任何值时显示的占位符文本。
value
默认值:undefined
设置选择控件的值。接受 Number
、String
或 Object
。