- 说明
用于调起部门选择器,显示出来是一个按钮,如下图
- 示例
<DeptSelectorBtn title="选择部门" v-model="depts" :max="6" :multi="false"></DeptSelectorBtn>
import DeptSelectorBtn from '@/components/common/DeptSelectorBtn'
export default {
components: {DeptSelectorBtn},
data(){
return {
depts: []
}
}
}
- 属性
名称 | 类型 | 说明 | 默认值 |
---|---|---|---|
title | string | cell的显示名称 | - |
multi | bool | 指定部门是否能多选 | true |
max | int | 当multi为true时,用来限制选择个数,0不生效 | 0 |
文档更新时间: 2020-03-27 21:42 作者:吴俊源