mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-18 14:28:27 +08:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35d6297b72 | ||
|
|
5afe0a8c41 | ||
|
|
81f86ccb30 | ||
|
|
87383498c8 | ||
|
|
c68608c72c | ||
|
|
9d325d99a2 | ||
|
|
bc59fa6dc7 | ||
|
|
2daa59679a |
@@ -93,7 +93,7 @@ npm run build
|
||||
|
||||
# 安装
|
||||
|
||||
> 当然仓库版本:0.2.11,当前npm版本:0.2.10
|
||||
> 当前仓库版本:0.2.14,当前npm版本:0.2.14
|
||||
|
||||
```bash
|
||||
npm i simple-mind-map
|
||||
|
||||
@@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>一个简单的web思维导图实现</title><link href="dist/js/chunk-2d20ec02.81d632f4.js" rel="prefetch"><link href="dist/js/chunk-2d216b67.228f2009.js" rel="prefetch"><link href="dist/js/chunk-35b0a040.cb76da7d.js" rel="prefetch"><link href="dist/css/app.2974531c.css" rel="preload" as="style"><link href="dist/css/chunk-vendors.6fd71983.css" rel="preload" as="style"><link href="dist/js/app.493dd0a8.js" rel="preload" as="script"><link href="dist/js/chunk-vendors.4f5ceb11.js" rel="preload" as="script"><link href="dist/css/chunk-vendors.6fd71983.css" rel="stylesheet"><link href="dist/css/app.2974531c.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but thoughts doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="dist/js/chunk-vendors.4f5ceb11.js"></script><script src="dist/js/app.493dd0a8.js"></script></body></html>
|
||||
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>一个简单的web思维导图实现</title><link href="dist/js/chunk-2d20ec02.81d632f4.js" rel="prefetch"><link href="dist/js/chunk-2d216b67.228f2009.js" rel="prefetch"><link href="dist/js/chunk-35b0a040.cb76da7d.js" rel="prefetch"><link href="dist/css/app.8e12b326.css" rel="preload" as="style"><link href="dist/css/chunk-vendors.6fd71983.css" rel="preload" as="style"><link href="dist/js/app.5b772a90.js" rel="preload" as="script"><link href="dist/js/chunk-vendors.d724da21.js" rel="preload" as="script"><link href="dist/css/chunk-vendors.6fd71983.css" rel="stylesheet"><link href="dist/css/app.8e12b326.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but thoughts doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="dist/js/chunk-vendors.d724da21.js"></script><script src="dist/js/app.5b772a90.js"></script></body></html>
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "simple-mind-map",
|
||||
"version": "0.2.11",
|
||||
"version": "0.2.14",
|
||||
"description": "一个简单的web在线思维导图",
|
||||
"authors": [
|
||||
{
|
||||
|
||||
@@ -446,6 +446,8 @@ class Render {
|
||||
},
|
||||
"children": []
|
||||
})
|
||||
// 插入子节点时自动展开子节点
|
||||
node.nodeData.data.expand = true
|
||||
if (node.isRoot) {
|
||||
node.initRender = true
|
||||
// this.mindMap.batchExecution.push('renderNode' + index, () => {
|
||||
|
||||
@@ -48,8 +48,10 @@ export default {
|
||||
this.$bus.$on("toggle_mini_map", (show) => {
|
||||
this.showMiniMap = show;
|
||||
this.$nextTick(() => {
|
||||
this.init();
|
||||
this.drawMiniMap();
|
||||
if (show) {
|
||||
this.init();
|
||||
this.drawMiniMap();
|
||||
}
|
||||
});
|
||||
});
|
||||
this.$bus.$on("data_change", () => {
|
||||
|
||||
@@ -47,6 +47,9 @@ export default {
|
||||
openMiniMap: false
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.toggleMiniMap(this.openMiniMap)
|
||||
},
|
||||
methods: {
|
||||
readonlyChange(value) {
|
||||
this.mindMap.setMode(value ? 'readonly' : 'edit')
|
||||
|
||||
Reference in New Issue
Block a user