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