chore: 回退 tree 代码
This commit is contained in:
parent
2605386fe5
commit
89deffc121
@ -17,7 +17,7 @@ export interface LayCollapseProps {
|
||||
const props = withDefaults(defineProps<LayCollapseProps>(), {
|
||||
modelValue: () => [],
|
||||
accordion: false,
|
||||
isAmin: true
|
||||
isAmin: true,
|
||||
});
|
||||
|
||||
// 监听传入的值
|
||||
|
@ -1,6 +1,8 @@
|
||||
<template>
|
||||
<template v-if="enable">
|
||||
<LayCollapseTransition v-if="type === 'collapse'"><slot></slot></LayCollapseTransition>
|
||||
<LayCollapseTransition v-if="type === 'collapse'"
|
||||
><slot></slot
|
||||
></LayCollapseTransition>
|
||||
<LayFadeTransition v-if="type === 'fade'"><slot></slot></LayFadeTransition>
|
||||
</template>
|
||||
<template v-else>
|
||||
|
@ -136,7 +136,7 @@ function handleTitleClick(node: TreeData) {
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<LayTransition>
|
||||
<LayTransition :enable="accordion">
|
||||
<div
|
||||
v-if="node.isLeaf.value"
|
||||
class="layui-tree-pack layui-tree-showLine"
|
||||
|
Loading…
Reference in New Issue
Block a user