refactor(tree): 移注第一版tree的实现
This commit is contained in:
parent
32252dba94
commit
01a479bc9a
@ -214,7 +214,8 @@ const zhCN = [
|
|||||||
path: '/zh-CN/components/carousel',
|
path: '/zh-CN/components/carousel',
|
||||||
component: () => import('../../docs/zh-CN/components/carousel.md'),
|
component: () => import('../../docs/zh-CN/components/carousel.md'),
|
||||||
meta: { title: '轮播' },
|
meta: { title: '轮播' },
|
||||||
},{
|
},
|
||||||
|
{
|
||||||
path: '/zh-CN/components/select',
|
path: '/zh-CN/components/select',
|
||||||
component: () => import('../../docs/zh-CN/components/select.md'),
|
component: () => import('../../docs/zh-CN/components/select.md'),
|
||||||
meta: { title: '下拉选择' },
|
meta: { title: '下拉选择' },
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'LayColorPicker'
|
name: 'LayColorPicker',
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup></script>
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<pre>
|
<pre>
|
||||||
|
@ -134,9 +134,7 @@ function handleTitleClick(node: TreeData) {
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<transition
|
<transition name="move">
|
||||||
name="move"
|
|
||||||
>
|
|
||||||
<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"
|
||||||
@ -155,5 +153,4 @@ function handleTitleClick(node: TreeData) {
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped></style>
|
||||||
</style>
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
import {
|
import { OriginalTreeData, StringOrNumber } from '/@src/module/tree/tree.type'
|
||||||
OriginalTreeData,
|
|
||||||
StringOrNumber,
|
|
||||||
} from '/@src/module/tree/tree.type'
|
|
||||||
import { Nullable } from '/@src/module/type'
|
import { Nullable } from '/@src/module/type'
|
||||||
import { Ref, ref } from 'vue'
|
import { Ref, ref } from 'vue'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user