mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-27 07:33:22 +08:00
fix: 添加树节点筛选字段配置
添加 treeNodeFilterProp 配置以支持按部门名称筛选树节点
This commit is contained in:
@@ -65,6 +65,8 @@ async function initDeptSelect(deptId?: number | string) {
|
|||||||
treeData,
|
treeData,
|
||||||
treeDefaultExpandAll: true,
|
treeDefaultExpandAll: true,
|
||||||
treeLine: { showLeafIcon: false },
|
treeLine: { showLeafIcon: false },
|
||||||
|
// 筛选的字段
|
||||||
|
treeNodeFilterProp: 'deptName',
|
||||||
// 选中后显示在输入框的值
|
// 选中后显示在输入框的值
|
||||||
treeNodeLabelProp: 'fullName',
|
treeNodeLabelProp: 'fullName',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user