Compare commits

..

5 Commits

Author SHA1 Message Date
街角小林
57fe315345 打包0.9.9-fix.2 2024-03-29 16:16:08 +08:00
街角小林
231dbc00bc Demo:修复侧边栏大纲点击全屏编辑时打开的是源码编辑模式的问题 2024-03-29 16:02:09 +08:00
街角小林
02957e1fcf Fix:修复开启彩虹线条时切换结构会报错的问题 2024-03-29 15:51:32 +08:00
街角小林
38576a4860 Fix:修复插入父节点操作时原节点样式为更新的问题 2024-03-29 15:44:02 +08:00
街角小林
9b26ca9290 打包0.9.9-fix.1版本,修复搜索插件无法搜索的问题 2024-03-29 14:46:19 +08:00
18 changed files with 85 additions and 23 deletions

File diff suppressed because one or more lines are too long

2
dist/js/app.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -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>

View File

@@ -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)

View File

@@ -1,6 +1,6 @@
{
"name": "simple-mind-map",
"version": "0.9.9",
"version": "0.9.9-fix.2",
"description": "一个简单的web在线思维导图",
"authors": [
{

View File

@@ -856,6 +856,9 @@ class Render {
},
children: [node.nodeData]
}
node.setData({
resetRichText: true
})
const parent = node.parent
// 获取当前节点所在位置
const index = getNodeDataIndex(node)

View File

@@ -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]

View File

@@ -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()

View File

@@ -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:

View File

@@ -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>

View File

@@ -1,5 +1,21 @@
# Changelog
## 0.9.9-fix.2
修复:
> 1.修复插入父节点操作时原节点样式未更新的问题;
>
> 2.修复开启彩虹线条时切换结构会报错的问题;
Demo
> 1.修复侧边栏大纲点击全屏编辑时打开的是源码编辑模式的问题;
## 0.9.9-fix.1
修复上个版本的改动造成搜索插件无法搜索的问题。
## 0.9.9
修复:

View File

@@ -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>

View File

@@ -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)
}
}
}

View File

@@ -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)
},
// 复制

View File

@@ -65,7 +65,7 @@ const store = new Vuex.Store({
},
// 设置源码编辑模式
setIsOutlineEdit(state, data) {
setIsSourceCodeEdit(state, data) {
state.isSourceCodeEdit = data
},