This commit is contained in:
街角小林 2024-03-29 16:33:28 +08:00
commit 9edc112fb1
19 changed files with 75 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?beeb148b8a9b236eb3f3" rel="stylesheet"><link href="dist/css/app.css?beeb148b8a9b236eb3f3" 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?beeb148b8a9b236eb3f3"></script><script src="dist/js/app.js?beeb148b8a9b236eb3f3"></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-fix.1'
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-fix.1",
"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

@ -1,6 +1,6 @@
{
"name": "thoughts",
"version": "0.9.8",
"version": "0.9.9",
"private": true,
"description": "一个简洁的思维导图",
"author": "街角小林<1013335014@qq.com>",

View File

@ -1,5 +1,17 @@
# 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.

View File

@ -1,6 +1,16 @@
<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>

View File

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

View File

@ -1,6 +1,16 @@
<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>

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)
@ -218,7 +218,7 @@ export default {
},
openSourceCodeEdit() {
this.setIsOutlineEdit(true)
this.setIsSourceCodeEdit(true)
}
}
}

View File

@ -3,6 +3,7 @@
class="outlineEditContainer"
:class="{ isDark: isDark }"
ref="outlineEditContainer"
:style="{top: IS_ELECTRON ? '40px' : 0}"
v-if="isOutlineEdit"
>
<div class="closeBtn" @click="onClose">

View File

@ -3,6 +3,7 @@
class="sourceCodeEditContainer"
:class="{ isDark: isDark }"
ref="sourceCodeEditContainer"
:style="{top: IS_ELECTRON ? '40px' : 0}"
v-if="isSourceCodeEdit"
>
<div class="closeBtn">
@ -96,7 +97,7 @@ export default {
}
},
methods: {
...mapMutations(['setIsOutlineEdit']),
...mapMutations(['setIsSourceCodeEdit']),
//
initEditor() {
@ -117,7 +118,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 +128,7 @@ export default {
//
onClose() {
this.setIsOutlineEdit(false)
this.setIsSourceCodeEdit(false)
},
//

View File

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