Skip to content

Commit fdf5fc1

Browse files
committed
refactor(tree): 优化Tree组件目录结构
1 parent ff3c690 commit fdf5fc1

33 files changed

+383
-385
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
import type { App } from 'vue';
22
import Tree from './src/tree';
3-
import NewTree from './src/new-tree';
43

54
export * from './src/tree-types';
65

7-
export { Tree, NewTree };
6+
export { Tree };
87

98
export default {
109
title: 'Tree 树',
1110
category: '数据展示',
1211
status: '20%',
1312
install(app: App): void {
1413
app.component(Tree.name, Tree);
15-
app.component(NewTree.name, NewTree);
1614
}
1715
};

packages/devui-vue/devui/tree/src/components/tree-node-content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ComputedRef } from 'vue';
22
import { defineComponent, PropType, toRefs } from 'vue';
3-
import { ITreeNode, IInnerTreeNode } from '../core/use-tree-types';
3+
import { ITreeNode, IInnerTreeNode } from '../composables/use-tree-types';
44
import useTreeNode from './use-tree-node';
55

66
export default defineComponent({

packages/devui-vue/devui/tree/src/components/tree-node-toggle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineComponent, inject, PropType, toRefs } from 'vue';
22
import { USE_TREE_TOKEN } from '../const';
3-
import { ITreeNode, IUseTree } from '../core/use-tree-types';
3+
import { ITreeNode, IUseTree } from '../composables/use-tree-types';
44
import { IconClose } from './icon-close';
55
import { IconOpen } from './icon-open';
66

packages/devui-vue/devui/tree/src/components/tree-node.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { ComputedRef } from 'vue';
22
import { computed, defineComponent, inject, PropType, renderSlot, toRefs, useSlots } from 'vue';
33
import { NODE_HEIGHT, USE_TREE_TOKEN } from '../const';
4-
import { IInnerTreeNode, IUseTree } from '../core/use-tree-types';
4+
import { IInnerTreeNode, IUseTree } from '../composables/use-tree-types';
55
import DTreeNodeToggle from './tree-node-toggle';
66
import { Checkbox } from '../../../checkbox';
77
import DTreeNodeContent from './tree-node-content';

packages/devui-vue/devui/tree/src/components/use-tree-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { ComputedRef } from 'vue';
22
import { computed, inject } from 'vue';
33
import { NODE_HEIGHT, NODE_INDENT, USE_TREE_TOKEN } from '../const';
4-
import { IInnerTreeNode, IUseTree } from '../core/use-tree-types';
4+
import { IInnerTreeNode, IUseTree } from '../composables/use-tree-types';
55

66
export interface IUseTreeNode {
77
nodeClass: ComputedRef<(string | false | undefined)[]>;
File renamed without changes.

0 commit comments

Comments
 (0)