人员树

介绍
两栏布局的多选组件,将元素从一栏即时移到另一栏。
API
Props
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
status | 状态 | 'default' |'disabled'| 'hide' | 'default' |
selected | 节点数据 | {loginName:string,userName:string}[] | [{loginName:'zhangsan',userName:'张三'}] |
multiple | 支持多选 | boolean | true |
api | 数据API, 如果不做配置,将使用我们提供的默认接口 | string | - |
searchApi | 搜索API, 如果不做配置,将使用我们提供的默认接口 | string | - |
fieldNames | 字段名 | fieldNames | { "userName": "userName", "userAccount": "loginName", "userAvatar": "avatar", "deptName": "orgName", "deptCode": "orgCode", "ldapFullPath": "ldapFullPath", "isLeaf": "isLeaf" } |
activeKey | 当前选中页签Key | string | - |
baseStyle | 自定义样式 | string | - |
customClass | 类名绑定 | string | - |
boxStyle | 盒模型 , margin,border,padding设置 | BoxStyle | - |
uniqueKey | 唯一标识 , 组件的唯一标识 | string | - |
Props-面板扩展页签
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
title | 标题 | string | - |
itemKey | Key | string | - |
itemData | 数据配置 | fieldNames[] | - |
Events
事件名 | 描述 | 参数 |
---|---|---|
onChange | 值发生改变时 | ctx params: fieldNames[] |
Type
javascript
type fieldNames = {
"userName": string,
"userAccount": string,
"userAvatar": string,
"deptName": string,
"deptCode": string,
"ldapFullPath": string,
"isLeaf": string
}