diff --git a/README.md b/README.md index 0255d124..802cb546 100644 --- a/README.md +++ b/README.md @@ -148,4 +148,8 @@ const mindMap = new MindMap({ 仓鼠 + + + 千帆 +

\ No newline at end of file diff --git a/index.html b/index.html index 00cadcbc..3cc1294c 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -思绪思维导图
\ No newline at end of file +思绪思维导图
\ No newline at end of file diff --git a/web/src/assets/avatar/千帆.jpg b/web/src/assets/avatar/千帆.jpg new file mode 100644 index 00000000..652e0d2e Binary files /dev/null and b/web/src/assets/avatar/千帆.jpg differ diff --git a/web/src/pages/Doc/en/changelog/index.md b/web/src/pages/Doc/en/changelog/index.md index a34737f9..1439531e 100644 --- a/web/src/pages/Doc/en/changelog/index.md +++ b/web/src/pages/Doc/en/changelog/index.md @@ -1,5 +1,13 @@ # Changelog +## 0.6.10 + +Fix: 1.Fix the issue of deleting a node after searching for it and not updating the search results when searching again. 2.Fixed an issue where the button for adjusting image size did not update after node operation. 3.Fix the issue of incorrect internal data deep copy location. 4.Fix the issue of ineffective line wrapping in rich text nodes. 5. Fix the issue of node swapping and loss when switching themes and other scenarios. + +New: 1.Search supports searching for white space characters and replacing them with white space characters. + +Demo: 1.Support calling up search through icon buttons. 2.Support for switching to dark mode through icon buttons. 3.Optimize search: The mouse is not in the search area and not focused, solving the problem of not being able to delete input text when the mouse is not in the search area. 4.Adjust the interface UI for adding node icons and add a series of node icons. 5.Add a sticker list. 6.Fixed the issue of missing focus in the input box after entering the search box. 7.Support clicking on the icon within the node to display an icon for quick replacement and deletion of the floating panel. + ## 0.6.9-fix.1 Fix: 1.Fix the issue of incorrect replacement after a single search. diff --git a/web/src/pages/Doc/en/changelog/index.vue b/web/src/pages/Doc/en/changelog/index.vue index 7b75a64c..85a9c3fd 100644 --- a/web/src/pages/Doc/en/changelog/index.vue +++ b/web/src/pages/Doc/en/changelog/index.vue @@ -1,6 +1,10 @@ diff --git a/web/src/pages/Doc/en/node/index.md b/web/src/pages/Doc/en/node/index.md index 809ae16b..0a0d9deb 100644 --- a/web/src/pages/Doc/en/node/index.md +++ b/web/src/pages/Doc/en/node/index.md @@ -131,6 +131,8 @@ nodeData, `SET_NODE_DATA` command's shortcut method - `richText`: v0.4.2+,`Boolean`, If you want to set rich text content, that is, `html` character, `richText` needs to be passed `true` +- `resetRichText`: v0.6.10+, `Boolean`, whether to reset rich text, The default is 'false'. If 'true' is passed, the style of the rich text node will be reset + Setting the node text, a shortcut for the `SET_NODE_TEXT` command ### setImage(imgData) diff --git a/web/src/pages/Doc/en/node/index.vue b/web/src/pages/Doc/en/node/index.vue index bac896da..e892c349 100644 --- a/web/src/pages/Doc/en/node/index.vue +++ b/web/src/pages/Doc/en/node/index.vue @@ -76,7 +76,12 @@ if key is not passed, return the data object

nodeData, SET_NODE_DATA command's shortcut method

setText(text, richText)

Setting the node text, a shortcut for the SET_NODE_TEXT command

setImage(imgData)

diff --git a/web/src/pages/Doc/en/utils/index.md b/web/src/pages/Doc/en/utils/index.md index 80041030..13b053e7 100644 --- a/web/src/pages/Doc/en/utils/index.md +++ b/web/src/pages/Doc/en/utils/index.md @@ -202,6 +202,24 @@ Load image, return: Get the type of a data, such as `Boolean`、`Array`. +#### removeHtmlStyle(html) + +> v0.6.10+ + +Remove the inline style of nodes in the HTML string. + +#### addHtmlStyle(html, tag, style) + +> v0.6.10+ + +Add inline styles to the specified tags in the HTML tag. + +#### checkIsRichText(str) + +> v0.6.10+ + +Check if a string is a rich text character. + ## Simulate CSS background in Canvas Import: diff --git a/web/src/pages/Doc/en/utils/index.vue b/web/src/pages/Doc/en/utils/index.vue index d812e14f..671747e0 100644 --- a/web/src/pages/Doc/en/utils/index.vue +++ b/web/src/pages/Doc/en/utils/index.vue @@ -139,6 +139,21 @@ and copying the data of the data object, example:

v0.6.9+

Get the type of a data, such as BooleanArray.

+

removeHtmlStyle(html)

+
+

v0.6.10+

+
+

Remove the inline style of nodes in the HTML string.

+

addHtmlStyle(html, tag, style)

+
+

v0.6.10+

+
+

Add inline styles to the specified tags in the HTML tag.

+

checkIsRichText(str)

+
+

v0.6.10+

+
+

Check if a string is a rich text character.

Simulate CSS background in Canvas

Import:

import drawBackgroundImageToCanvas from 'simple-mind-map/src/utils/simulateCSSBackgroundInCanvas'
diff --git a/web/src/pages/Doc/zh/changelog/index.md b/web/src/pages/Doc/zh/changelog/index.md
index bb7157a6..636ab668 100644
--- a/web/src/pages/Doc/zh/changelog/index.md
+++ b/web/src/pages/Doc/zh/changelog/index.md
@@ -1,5 +1,13 @@
 # Changelog
 
+## 0.6.10
+
+修复:1.修复搜索定位到某个节点后删除该节点,再次搜索时搜索结果未更新的问题。 2.修复调整图片大小的按钮在节点操作后没有更新的问题。 3.修复内部数据深拷贝位置不正确的问题。 4.修复富文本节点换行不生效的问题。 5.修复切换主题等场景时节点换行会丢失的问题。
+
+新增:1.搜索支持搜索空白字符和替换为空白字符。
+
+Demo:1.支持通过图标按钮调出搜索。 2.支持通过图标按钮切换暗黑模式。 3.优化搜索:鼠标不在搜索区域内不聚焦,解决鼠标不在搜索区域内无法删除输入的文字的问题。 4.调整添加节点图标的界面UI,新增系列节点图标。 5.新增贴纸列表。 6.修复在搜索框回车后输入框焦点丢失的问题。 7.支持点击节点内的图标显示一个图标快捷替换和删除悬浮面板。
+
 ## 0.6.9-fix.1
 
 修复:1.修复搜索进行一次单个替换后再全部替换不正确的问题。
diff --git a/web/src/pages/Doc/zh/changelog/index.vue b/web/src/pages/Doc/zh/changelog/index.vue
index 3e7a732b..a18084e4 100644
--- a/web/src/pages/Doc/zh/changelog/index.vue
+++ b/web/src/pages/Doc/zh/changelog/index.vue
@@ -1,6 +1,10 @@
 
diff --git a/web/src/pages/Doc/zh/node/index.md b/web/src/pages/Doc/zh/node/index.md
index 851f5905..7e786c47 100644
--- a/web/src/pages/Doc/zh/node/index.md
+++ b/web/src/pages/Doc/zh/node/index.md
@@ -124,10 +124,12 @@
 
 设置节点数据,`SET_NODE_DATA`命令的快捷方法
 
-### setText(text, richText)
+### setText(text, richText, resetRichText)
 
 - `richText`:v0.4.2+,`Boolean`,如果要设置的是富文本内容,也就是`html`字符,`richText`需要传`true`
 
+- `resetRichText`:v0.6.10+,`Boolean`,是否要复位富文本,默认为`false`,如果传`true`那么会重置富文本节点的样式
+
 设置节点文本,`SET_NODE_TEXT`命令的快捷方法
 
 ### setImage(imgData)
diff --git a/web/src/pages/Doc/zh/node/index.vue b/web/src/pages/Doc/zh/node/index.vue
index 7d6e31ce..66c8434c 100644
--- a/web/src/pages/Doc/zh/node/index.vue
+++ b/web/src/pages/Doc/zh/node/index.vue
@@ -71,9 +71,14 @@
 

获取该节点真实数据nodeDatadata对象里的指定值,key不传返回这个data对象

setData(data)

设置节点数据,SET_NODE_DATA命令的快捷方法

-

setText(text, richText)

+

setText(text, richText, resetRichText)

设置节点文本,SET_NODE_TEXT命令的快捷方法

setImage(imgData)

diff --git a/web/src/pages/Doc/zh/utils/index.md b/web/src/pages/Doc/zh/utils/index.md index 814205e5..4bec9b72 100644 --- a/web/src/pages/Doc/zh/utils/index.md +++ b/web/src/pages/Doc/zh/utils/index.md @@ -197,6 +197,24 @@ copyNodeTree({}, node) 获取一个数据的类型,比如`Boolean`、`Array`等。 +#### removeHtmlStyle(html) + +> v0.6.10+ + +移除html字符串中节点的内联样式。 + +#### addHtmlStyle(html, tag, style) + +> v0.6.10+ + +给html标签中指定的标签添加内联样式。 + +#### checkIsRichText(str) + +> v0.6.10+ + +检查一个字符串是否是富文本字符。 + ## 在canvas中模拟css的背景属性 引入: diff --git a/web/src/pages/Doc/zh/utils/index.vue b/web/src/pages/Doc/zh/utils/index.vue index 0552eabb..75267b18 100644 --- a/web/src/pages/Doc/zh/utils/index.vue +++ b/web/src/pages/Doc/zh/utils/index.vue @@ -134,6 +134,21 @@

v0.6.9+

获取一个数据的类型,比如BooleanArray等。

+

removeHtmlStyle(html)

+
+

v0.6.10+

+
+

移除html字符串中节点的内联样式。

+

addHtmlStyle(html, tag, style)

+
+

v0.6.10+

+
+

给html标签中指定的标签添加内联样式。

+

checkIsRichText(str)

+
+

v0.6.10+

+
+

检查一个字符串是否是富文本字符。

在canvas中模拟css的背景属性

引入:

import drawBackgroundImageToCanvas from 'simple-mind-map/src/utils/simulateCSSBackgroundInCanvas'