0.0.1 • Published 2 years ago
安装
npm install chv2 -S
引入
import Vue from 'vue';
import chv2 from 'chv2';
Vue.use(chv2);
Drop Attributes
参数 | 描述 | 类型 | 可选值 | 默认值 |
---|
visible | 是否限制下拉 | boolean | - | true |
fixedIndex | 下拉元素层级 | number | - | 1 |
selectMultiple Attributes
参数 | 描述 | 类型 | 可选值 | 默认值 |
---|
placeholder | 占位符 | string | - | 请选择 |
columns | 列配置项,具体见下表 | array | - | null |
data | 选项数据 | array | - | null |
value | 选中的值 | array,string,number | - | - |
multiple | 是否多选 | boolean | - | - |
remoteMethod | 远程搜索,返回Promise | function | - | null |
msg | 远程搜索时回显的文案 | string | - | - |
disabled | 是否禁用 | boolean | - | false |
clearable | 是否可以清空选项 | boolean | - | false |
fixedIndex | 下拉元素层级 | number | - | 100 |
size | 选中项个数最大值,null不限制 | number | - | null |
columns
参数 | 描述 | 类型 | 可选值 | 默认值 |
---|
title | 列标题 | string | - | - |
key | 列取值的字段名 | string | - | - |
width | 列宽 | string | - | - |
isLabel | 是否作为标题过滤 | boolean | - | - |
isValue | 是否作为值过滤 | boolean | - | - |