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