fix: 添加树节点筛选字段配置
添加 treeNodeFilterProp 配置以支持按部门名称筛选树节点
This commit is contained in:
parent
e030bfbfbd
commit
6be8870801
@ -65,6 +65,8 @@ async function initDeptSelect(deptId?: number | string) {
|
||||
treeData,
|
||||
treeDefaultExpandAll: true,
|
||||
treeLine: { showLeafIcon: false },
|
||||
// 筛选的字段
|
||||
treeNodeFilterProp: 'deptName',
|
||||
// 选中后显示在输入框的值
|
||||
treeNodeLabelProp: 'fullName',
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user