mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-04 13:42:27 +08:00
fix: 修正角色页面的弹窗中的树型组件点击节点不会展开孩子节点的问题。
This commit is contained in:
@@ -43,6 +43,7 @@
|
|||||||
:checked-keys="checkedKeys"
|
:checked-keys="checkedKeys"
|
||||||
style="max-height: 950px; overflow: hidden"
|
style="max-height: 950px; overflow: hidden"
|
||||||
@update:checked-keys="checkedTree"
|
@update:checked-keys="checkedTree"
|
||||||
|
@update:expanded-keys="onExpandedKeys"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<template #action>
|
<template #action>
|
||||||
@@ -186,6 +187,10 @@
|
|||||||
checkedKeys.value = [checkedKeys.value, ...keys];
|
checkedKeys.value = [checkedKeys.value, ...keys];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onExpandedKeys(keys) {
|
||||||
|
expandedKeys.value = keys;
|
||||||
|
}
|
||||||
|
|
||||||
function packHandle() {
|
function packHandle() {
|
||||||
if (expandedKeys.value.length) {
|
if (expandedKeys.value.length) {
|
||||||
expandedKeys.value = [];
|
expandedKeys.value = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user