-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<!-- 脑图编辑器 demo --> | ||
<template> | ||
<div> | ||
<minder-editor :progress-enable="false" :import-json="importJson" /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'MinderEditorDemo', | ||
data() { | ||
return { | ||
importJson: { | ||
// 节点数据 | ||
root: { | ||
data: { | ||
// 文本内容 | ||
text: 'vue-minder-editor-extended', | ||
// 标签 | ||
resource: ['模块1'], | ||
// 是否禁止修改 | ||
disable: true, | ||
// 默认展开或折叠,默认是展开的,collapse 可设为折叠 | ||
// expandState: 'collapse', | ||
// 在 disable 为 true 的情况下,允许添加标签 | ||
tagEnable: true, | ||
// 在 disable 为 true 的情况下,允许删除节点 | ||
allowDelete: true, | ||
// 在 disable 为 true 的情况下,允许添加标签,优先级比 tagEnable 高 | ||
allowDisabledTag: true, | ||
}, | ||
// 子节点 | ||
children: [ | ||
{ | ||
data: { | ||
text: 'child1', | ||
disable: true, | ||
expandState: 'collapse', | ||
resource: ['模块2'] | ||
}, | ||
children: [ | ||
{ | ||
data: { | ||
text: 'child11', | ||
disable: true, | ||
resource: ['模块2'] | ||
}, | ||
}, | ||
{ | ||
data: { | ||
text: 'child12', | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
data: { | ||
text: 'child2', | ||
} | ||
} | ||
] | ||
}, | ||
}, | ||
tags: ['模块1','模块2'] | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7163,6 +7163,11 @@ vue-loader@^17.0.0: | |
hash-sum "^2.0.0" | ||
watchpack "^2.4.0" | ||
|
||
[email protected]: | ||
version "1.2.2" | ||
resolved "https://registry.npmjs.org/vue-minder-editor-extended/-/vue-minder-editor-extended-1.2.2.tgz#12751604eea6bb050ac0b04885979b17e22989f4" | ||
integrity sha512-lt0zIBH649hn0GLfsFkIlHAGfbZfpTu53RzYLA7RwI2QKuooO8kutrv7Ru0kHNc3pfUp76xp0abV9cRGdAMsBw== | ||
|
||
vue-router@^3.5.1: | ||
version "3.6.5" | ||
resolved "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz" | ||
|