fix(tree): fix display error

This commit is contained in:
vben 2021-12-01 22:29:54 +08:00
parent 170a4bceb1
commit 81560fd3c6
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
search
:clickRowToExpand="false"
:treeData="treeData"
:fieldNames="{ key: 'id', label: 'deptName' }"
:fieldNames="{ key: 'id', title: 'deptName' }"
@select="handleSelect"
/>
</div>

View File

@ -12,7 +12,7 @@
<BasicTree
v-model:value="model[field]"
:treeData="treeData"
:fieldNames="{ label: 'menuName', key: 'id' }"
:fieldNames="{ title: 'menuName', key: 'id' }"
checkable
toolbar
title="菜单分配"