refactor(tree): 移注第一版tree的实现

This commit is contained in:
落小梅 2021-10-21 14:45:47 +08:00
parent 32252dba94
commit 01a479bc9a
4 changed files with 7 additions and 13 deletions

View File

@ -214,7 +214,8 @@ const zhCN = [
path: '/zh-CN/components/carousel',
component: () => import('../../docs/zh-CN/components/carousel.md'),
meta: { title: '轮播' },
},{
},
{
path: '/zh-CN/components/select',
component: () => import('../../docs/zh-CN/components/select.md'),
meta: { title: '下拉选择' },

View File

@ -1,11 +1,10 @@
<script lang="ts">
export default {
name: 'LayColorPicker'
name: 'LayColorPicker',
}
</script>
<script lang="ts" setup>
</script>
<script lang="ts" setup></script>
<template>
<pre>

View File

@ -134,9 +134,7 @@ function handleTitleClick(node: TreeData) {
</span>
</div>
</div>
<transition
name="move"
>
<transition name="move">
<div
v-if="node.isLeaf.value"
class="layui-tree-pack layui-tree-showLine"
@ -155,5 +153,4 @@ function handleTitleClick(node: TreeData) {
</div>
</template>
<style scoped>
</style>
<style scoped></style>

View File

@ -1,7 +1,4 @@
import {
OriginalTreeData,
StringOrNumber,
} from '/@src/module/tree/tree.type'
import { OriginalTreeData, StringOrNumber } from '/@src/module/tree/tree.type'
import { Nullable } from '/@src/module/type'
import { Ref, ref } from 'vue'