+
+
+
+
+
+
+
+
+
+ {{ node.label }}
+
+
+
+
+
+
+
+
diff --git a/src/locales/en.ts b/src/locales/en.ts
index f26eb8f..04e4e42 100644
--- a/src/locales/en.ts
+++ b/src/locales/en.ts
@@ -190,7 +190,8 @@ export default {
personalCenter: 'Personal center',
personal: 'Personal',
avatars: 'Avatars',
- iAgree: 'I agree'
+ iAgree: 'I agree',
+ tree: 'Tree'
},
permission: {
hasPermission: 'Please set the operation permission value'
@@ -393,6 +394,11 @@ export default {
logoStyle: 'Logo style',
size: 'size config'
},
+ treeDemo: {
+ treeTitle: 'Tree control (right-click node to customize menu options)',
+ message:
+ 'The tree component is based on the secondary packaging of the tree component of ElementPlus'
+ },
highlightDemo: {
highlight: 'Highlight',
message: 'The best time to plant a tree is ten years ago, followed by now.',
diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts
index 8f38c0a..fe74dfb 100644
--- a/src/locales/zh-CN.ts
+++ b/src/locales/zh-CN.ts
@@ -186,7 +186,8 @@ export default {
personalCenter: '个人中心',
personal: '个人',
avatars: '头像列表',
- iAgree: '我同意'
+ iAgree: '我同意',
+ tree: 'Tree 树形控件'
},
permission: {
hasPermission: '请设置操作权限值'
@@ -385,6 +386,10 @@ export default {
logoStyle: 'logo样式',
size: '大小配置'
},
+ treeDemo: {
+ treeTitle: '树形控件(节点右键可自定义菜单选项)',
+ message: '基于 ElementPlus 的 Tree 组件二次封装'
+ },
highlightDemo: {
highlight: '高亮',
message: '种一棵树最好的时间是十年前,其次就是现在。',
diff --git a/src/views/Components/Tree.vue b/src/views/Components/Tree.vue
new file mode 100644
index 0000000..661732e
--- /dev/null
+++ b/src/views/Components/Tree.vue
@@ -0,0 +1,252 @@
+
+
+