Skip to content

人员树

image

介绍

两栏布局的多选组件,将元素从一栏即时移到另一栏。

API

Props

参数名描述类型默认值
status状态'default' |'disabled'| 'hide''default'
selected节点数据{loginName:string,userName:string}[][{loginName:'zhangsan',userName:'张三'}]
multiple支持多选booleantrue
api数据API, 如果不做配置,将使用我们提供的默认接口string-
searchApi搜索API, 如果不做配置,将使用我们提供的默认接口string-
fieldNames字段名fieldNames{ "userName": "userName", "userAccount": "loginName", "userAvatar": "avatar", "deptName": "orgName", "deptCode": "orgCode", "ldapFullPath": "ldapFullPath", "isLeaf": "isLeaf" }
activeKey当前选中页签Keystring-
baseStyle自定义样式string-
customClass类名绑定string-
boxStyle盒模型 , margin,border,padding设置BoxStyle-
uniqueKey唯一标识 , 组件的唯一标识string-

Props-面板扩展页签

参数名描述类型默认值
title标题string-
itemKeyKeystring-
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
}