# Select 下拉 组件
# 单选
# 自定义显示下拉项label
# 多选
# p-select——下拉 组件组件
概述:
下拉选择组件————可实现单选多选(多选可使用全选功能)
代码示例:
<p-select
v-model="selectVlaue"
multiple
:optionSource="listTypeInfo.stepList"
valueKey="label"
@change="selectChange"
/>
# 配置参数(Attributes)继承 el-select Attributes
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
v-model | 绑定值 | boolean / string / number/Array | - |
multiple | 是否多选 | Boolean | false |
optionSource | 下拉数据源 | Array | - |
width | select宽度(可以设置百分比或px) | String | 100% |
customLabel | 是否自定义设置下拉label | String | - |
valueKey | 传入的 option 数组中,要作为最终选择项的键值 key | String | 'key' |
labelKey | 传入的 option 数组中,要作为显示项的键值名称 | String | 'label' |