修改树加载默认展开值

This commit is contained in:
QuAoLi 2022-02-28 10:53:46 +08:00
parent 4327590091
commit f34f090dc0
5 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@
v-if="orgTree.length" v-if="orgTree.length"
@select="handleClick" @select="handleClick"
:defaultExpandAll="true" :defaultExpandAll="true"
:expandedKeys="expandedKeys" :defaultExpandedKeys="expandedKeys"
:replaceFields="replaceFields" /> :replaceFields="replaceFields" />
</div> </div>
<div v-else> <div v-else>

View File

@ -12,7 +12,7 @@
v-if="orgTree.length" v-if="orgTree.length"
@select="handleClick" @select="handleClick"
:defaultExpandAll="false" :defaultExpandAll="false"
:expandedKeys="expandedKeys" :defaultExpandedKeys="expandedKeys"
:defaultSelectedKeys="selectedKeys" :defaultSelectedKeys="selectedKeys"
:replaceFields="replaceFields" /> :replaceFields="replaceFields" />
</div> </div>
@ -60,7 +60,7 @@
v-if="orgTree.length" v-if="orgTree.length"
@select="handleClick" @select="handleClick"
:defaultExpandAll="true" :defaultExpandAll="true"
:expandedKeys="expandedKeys" :defaultExpandedKeys="expandedKeys"
:defaultSelectedKeys="selectedKeys" :defaultSelectedKeys="selectedKeys"
:replaceFields="replaceFields" /> :replaceFields="replaceFields" />
</div> </div>

View File

@ -10,7 +10,7 @@
v-if="orgTree.length" v-if="orgTree.length"
@select="handleClick" @select="handleClick"
:defaultExpandAll="false" :defaultExpandAll="false"
:expandedKeys="expandedKeys" :defaultExpandedKeys="expandedKeys"
:defaultSelectedKeys="selectedKeys" :defaultSelectedKeys="selectedKeys"
:replaceFields="replaceFields" /> :replaceFields="replaceFields" />
</div> </div>

View File

@ -13,7 +13,7 @@
v-if="orgTree.length" v-if="orgTree.length"
@select="onSelect" @select="onSelect"
:defaultExpandAll="false" :defaultExpandAll="false"
:expandedKeys="expandedKeys" :defaultExpandedKeys="expandedKeys"
:defaultSelectedKeys="selectedKeys" :defaultSelectedKeys="selectedKeys"
:replaceFields="replaceFields" :replaceFields="replaceFields"
> >

View File

@ -15,7 +15,7 @@
v-if="orgTree.length" v-if="orgTree.length"
@select="onSelect" @select="onSelect"
:defaultExpandAll="false" :defaultExpandAll="false"
:expandedKeys="expandedKeys" :defaultExpandedKeys="expandedKeys"
:replaceFields="replaceFields"> :replaceFields="replaceFields">
<a-icon slot="switcherIcon" type="down" /> <a-icon slot="switcherIcon" type="down" />
</a-tree> </a-tree>