mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 22:08:25 +08:00
Compare commits
5 Commits
0.9.9
...
0.9.9-fix.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
57fe315345 | ||
|
|
231dbc00bc | ||
|
|
02957e1fcf | ||
|
|
38576a4860 | ||
|
|
9b26ca9290 |
File diff suppressed because one or more lines are too long
2
dist/js/app.js
vendored
2
dist/js/app.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/chunk-2d0f026c.js
vendored
2
dist/js/chunk-2d0f026c.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/chunk-2d208ffa.js
vendored
2
dist/js/chunk-2d208ffa.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
<!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,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><link rel="icon" href="dist/logo.ico"><title>思绪思维导图</title><script>// 自定义静态资源的路径
|
||||
window.externalPublicPath = './dist/'
|
||||
// 接管应用
|
||||
window.takeOverApp = false</script><link href="dist/css/chunk-vendors.css?fda56af9523032588417" rel="stylesheet"><link href="dist/css/app.css?fda56af9523032588417" 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>const getDataFromBackend = () => {
|
||||
window.takeOverApp = false</script><link href="dist/css/chunk-vendors.css?265c9df28df3bfd4566f" rel="stylesheet"><link href="dist/css/app.css?265c9df28df3bfd4566f" 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>const getDataFromBackend = () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
setTimeout(() => {
|
||||
resolve({
|
||||
@@ -66,4 +66,4 @@
|
||||
// 可以通过window.$bus.$on()来监听应用的一些事件
|
||||
// 实例化页面
|
||||
window.initApp()
|
||||
}</script><script src="dist/js/chunk-vendors.js?fda56af9523032588417"></script><script src="dist/js/app.js?fda56af9523032588417"></script></body></html>
|
||||
}</script><script src="dist/js/chunk-vendors.js?265c9df28df3bfd4566f"></script><script src="dist/js/app.js?265c9df28df3bfd4566f"></script></body></html>
|
||||
@@ -29,7 +29,7 @@ MindMap.iconList = icons.nodeIconList
|
||||
MindMap.constants = constants
|
||||
MindMap.themes = themes
|
||||
MindMap.defaultTheme = defaultTheme
|
||||
MindMap.version = '0.9.9'
|
||||
MindMap.version = '0.9.9-fix.2'
|
||||
|
||||
MindMap.usePlugin(MiniMap)
|
||||
.usePlugin(Watermark)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "simple-mind-map",
|
||||
"version": "0.9.9",
|
||||
"version": "0.9.9-fix.2",
|
||||
"description": "一个简单的web在线思维导图",
|
||||
"authors": [
|
||||
{
|
||||
|
||||
@@ -856,6 +856,9 @@ class Render {
|
||||
},
|
||||
children: [node.nodeData]
|
||||
}
|
||||
node.setData({
|
||||
resetRichText: true
|
||||
})
|
||||
const parent = node.parent
|
||||
// 获取当前节点所在位置
|
||||
const index = getNodeDataIndex(node)
|
||||
|
||||
@@ -48,7 +48,9 @@ class RainbowLines {
|
||||
|
||||
// 获取一个节点的第二层级的祖先节点
|
||||
getSecondLayerAncestor(node) {
|
||||
if (node.layerIndex === 1) {
|
||||
if (node.layerIndex === 0) {
|
||||
return null
|
||||
} else if (node.layerIndex === 1) {
|
||||
return node
|
||||
} else {
|
||||
let res = null
|
||||
@@ -78,6 +80,7 @@ class RainbowLines {
|
||||
const { rainbowLinesConfig } = this.mindMap.opt
|
||||
if (!rainbowLinesConfig || !rainbowLinesConfig.open) return ''
|
||||
const ancestor = this.getSecondLayerAncestor(node)
|
||||
if (!ancestor) return
|
||||
const index = getNodeDataIndex(ancestor)
|
||||
const colorsList = this.getColorsList()
|
||||
return colorsList[index % colorsList.length]
|
||||
|
||||
@@ -89,7 +89,7 @@ class Search {
|
||||
const tree = isOnlySearchCurrentRenderNodes
|
||||
? this.mindMap.renderer.root
|
||||
: this.mindMap.renderer.renderTree
|
||||
if (tree) return
|
||||
if (!tree) return
|
||||
bfsWalk(tree, node => {
|
||||
let { richText, text } = isOnlySearchCurrentRenderNodes
|
||||
? node.getData()
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
# Changelog
|
||||
|
||||
## 0.9.9-fix.2
|
||||
|
||||
Fix:
|
||||
|
||||
> 1.Fix the issue of the original node style not being updated during the insertion of the parent node operation;
|
||||
>
|
||||
> 2.Fix the issue of errors when switching structures when opening rainbow lines;
|
||||
|
||||
Demo:
|
||||
|
||||
> 1.Fix the issue where the side bar outline opens in source code editing mode when clicking full screen editing;
|
||||
|
||||
## 0.9.9-fix.1
|
||||
|
||||
Fix the issue where the search plugin was unable to search due to changes in the previous version.
|
||||
|
||||
## 0.9.9
|
||||
|
||||
Fix:
|
||||
|
||||
@@ -1,6 +1,18 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1>Changelog</h1>
|
||||
<h2>0.9.9-fix.2</h2>
|
||||
<p>Fix:</p>
|
||||
<blockquote>
|
||||
<p>1.Fix the issue of the original node style not being updated during the insertion of the parent node operation;</p>
|
||||
<p>2.Fix the issue of errors when switching structures when opening rainbow lines;</p>
|
||||
</blockquote>
|
||||
<p>Demo:</p>
|
||||
<blockquote>
|
||||
<p>1.Fix the issue where the side bar outline opens in source code editing mode when clicking full screen editing;</p>
|
||||
</blockquote>
|
||||
<h2>0.9.9-fix.1</h2>
|
||||
<p>Fix the issue where the search plugin was unable to search due to changes in the previous version.</p>
|
||||
<h2>0.9.9</h2>
|
||||
<p>Fix:</p>
|
||||
<blockquote>
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
# Changelog
|
||||
|
||||
## 0.9.9-fix.2
|
||||
|
||||
修复:
|
||||
|
||||
> 1.修复插入父节点操作时原节点样式未更新的问题;
|
||||
>
|
||||
> 2.修复开启彩虹线条时切换结构会报错的问题;
|
||||
|
||||
Demo:
|
||||
|
||||
> 1.修复侧边栏大纲点击全屏编辑时打开的是源码编辑模式的问题;
|
||||
|
||||
## 0.9.9-fix.1
|
||||
|
||||
修复上个版本的改动造成搜索插件无法搜索的问题。
|
||||
|
||||
## 0.9.9
|
||||
|
||||
修复:
|
||||
|
||||
@@ -1,6 +1,18 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1>Changelog</h1>
|
||||
<h2>0.9.9-fix.2</h2>
|
||||
<p>修复:</p>
|
||||
<blockquote>
|
||||
<p>1.修复插入父节点操作时原节点样式未更新的问题;</p>
|
||||
<p>2.修复开启彩虹线条时切换结构会报错的问题;</p>
|
||||
</blockquote>
|
||||
<p>Demo:</p>
|
||||
<blockquote>
|
||||
<p>1.修复侧边栏大纲点击全屏编辑时打开的是源码编辑模式的问题;</p>
|
||||
</blockquote>
|
||||
<h2>0.9.9-fix.1</h2>
|
||||
<p>修复上个版本的改动造成搜索插件无法搜索的问题。</p>
|
||||
<h2>0.9.9</h2>
|
||||
<p>修复:</p>
|
||||
<blockquote>
|
||||
|
||||
@@ -150,7 +150,7 @@ export default {
|
||||
this.lang = getLang()
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(['setLocalConfig', 'setIsReadonly', 'setIsOutlineEdit']),
|
||||
...mapMutations(['setLocalConfig', 'setIsReadonly', 'setIsSourceCodeEdit']),
|
||||
|
||||
readonlyChange() {
|
||||
this.setIsReadonly(!this.isReadonly)
|
||||
@@ -210,7 +210,7 @@ export default {
|
||||
},
|
||||
|
||||
openSourceCodeEdit() {
|
||||
this.setIsOutlineEdit(true)
|
||||
this.setIsSourceCodeEdit(true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(['setIsOutlineEdit']),
|
||||
...mapMutations(['setIsSourceCodeEdit']),
|
||||
|
||||
// 初始化编辑器
|
||||
initEditor() {
|
||||
@@ -117,7 +117,7 @@ export default {
|
||||
try {
|
||||
const content = editor.getValue()
|
||||
const data = JSON.parse(content)
|
||||
this.setIsOutlineEdit(false)
|
||||
this.setIsSourceCodeEdit(false)
|
||||
this.$bus.$emit('setData', data)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
@@ -127,7 +127,7 @@ export default {
|
||||
|
||||
// 关闭
|
||||
onClose() {
|
||||
this.setIsOutlineEdit(false)
|
||||
this.setIsSourceCodeEdit(false)
|
||||
},
|
||||
|
||||
// 复制
|
||||
|
||||
@@ -65,7 +65,7 @@ const store = new Vuex.Store({
|
||||
},
|
||||
|
||||
// 设置源码编辑模式
|
||||
setIsOutlineEdit(state, data) {
|
||||
setIsSourceCodeEdit(state, data) {
|
||||
state.isSourceCodeEdit = data
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user