• 说明

用于调起员工选择器,样式和vant的cell一样,用法类似

  • 示例
<EmployeeSelectorCell title="选择员工" v-model="employee_list" :max="6"></EmployeeSelectorCell>
    import EmployeeSelectorCell from '@/components/common/EmployeeSelectorCell'
    export default {
        components: {EmployeeSelectorCell},
        data(){
            return {
                employee_list: []
            }
        }
    }
  • 属性
名称 类型 说明 默认值
title string cell的显示名称 -
multi bool 指定员工是否能多选 true
max int 当multi为true时,用来限制选择人数,0不生效 0
show_manager_only bool 是否只显示管理者列表 false
include_self bool 是否显示当前登录的员工信息 true
use_employee_list bool 为true时,employee_list才生效 false
employee_list array 自定义的员工选择列表 []
bar_title string 导航栏标题
Out_of_the_current bool 为true时,不包含创始人 false
two_of_the_current bool 与two_of_the_current_two一起用。 为true时,不包含id为two_of_the_current_two的人员 false
two_of_the_current_two string/number 传入员工id。不包含(人员id),与two_of_the_current一起用。 空/0
文档更新时间: 2020-10-07 11:20   作者:吴俊源