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

View File

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