From 6be6f6ee8acb77b02131bd7ee66eaf5864c1c470 Mon Sep 17 00:00:00 2001
From: wanglin2 <1013335014@qq.com>
Date: Tue, 5 Dec 2023 09:31:13 +0800
Subject: [PATCH] Doc
---
README.md | 4 +++
web/src/assets/avatar/张扬.png | Bin 0 -> 36695 bytes
web/src/pages/Doc/en/changelog/index.md | 32 +++++++++++++++++
web/src/pages/Doc/en/changelog/index.vue | 20 +++++++++++
web/src/pages/Doc/en/constructor/index.md | 5 +--
web/src/pages/Doc/en/constructor/index.vue | 13 +++++--
web/src/pages/Doc/en/introduction/index.md | 4 +++
web/src/pages/Doc/en/introduction/index.vue | 36 +++++++++++---------
web/src/pages/Doc/en/utils/index.md | 16 +++++++++
web/src/pages/Doc/en/utils/index.vue | 16 +++++++++
web/src/pages/Doc/zh/changelog/index.md | 32 +++++++++++++++++
web/src/pages/Doc/zh/changelog/index.vue | 20 +++++++++++
web/src/pages/Doc/zh/constructor/index.md | 5 +--
web/src/pages/Doc/zh/constructor/index.vue | 12 +++++--
web/src/pages/Doc/zh/introduction/index.md | 4 +++
web/src/pages/Doc/zh/introduction/index.vue | 4 +++
web/src/pages/Doc/zh/utils/index.md | 16 +++++++++
web/src/pages/Doc/zh/utils/index.vue | 16 +++++++++
web/src/pages/Index/components/Block2.vue | 6 ++--
19 files changed, 232 insertions(+), 29 deletions(-)
create mode 100644 web/src/assets/avatar/张扬.png
diff --git a/README.md b/README.md
index 84248e0c..03e075a5 100644
--- a/README.md
+++ b/README.md
@@ -226,4 +226,8 @@ const mindMap = new MindMap({
moom
+
+
+ 张扬
+
&1S5qFn#%# z0PFmteB~Y(F9~cMK3P@n!pDw0sK}A8~>9+xoJSac=(wtbsB9OON7^Sbd zfm+p2{4i6iq!+5;e6Px4N6DoA%2X$d(*0w`%!%2wd%C^y!?V8j3v`7cT$62~_?jD_ zH=jv?2sfVe#B)(?i@7KHZU ~f;_c^ij8L)9-dJ>c^&Cz5&6tvL9dQeQy2pKRHV$zb7Yo>ip^8?#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7V z@ceVmK?(%1j#2h x(Cs^P=T4Ytm7F(Y`AQkz(O)GK{t0UmS|b^g zrZ3~&|BEjbi5!_@QrjF4w}f`BQmch-oG1_Bkh>-|a4&|3O%^8d^ZsvhK5&Q)>~TD) zkKzKtsg)oHGm~9%Qf#kylbz`~KYQ?(;Q0@5{Ac3-|M_W^h3_W!5rKn;ccVojIKUrG MHC@%b+mBxVKiKTmSpWb4 literal 0 HcmV?d00001 diff --git a/web/src/pages/Doc/en/changelog/index.md b/web/src/pages/Doc/en/changelog/index.md index 3ac4bf44..a12e600f 100644 --- a/web/src/pages/Doc/en/changelog/index.md +++ b/web/src/pages/Doc/en/changelog/index.md @@ -1,5 +1,37 @@ # Changelog +## 0.9.1 + +Fix: + +> 1.Fix the issue of exporting images, SVGs, and PDFs with errors when customizing node content. +> +> 2.Optimize the distribution of node activation events, do not distribute events when the activation node has not changed, and skip intermediate events when distributing multiple events in a short period of time. +> +> 3.Fix the issue where the edit box and node detach when scrolling the canvas with the mouse while the node is in editing mode. +> +> 4.Fix the issue of shortcut keys becoming invalid when zooming the canvas with the mouse wheel and then exiting node editing while in node editing mode. +> +> 5.Fix the issue where clicking on a node can also trigger node_dragend event. +> +> 6.Fix that clicking on the canvas and nodes while not in the format brush will also trigger the painter_end event. +> +> 7.Fixed the issue where the mind map text editing box was not destroyed during node text editing and associated line text editing. + +New: + +> 1.When holding down the Ctrl key, disable the node double-click event. +> +> 2.Support configuring the behavior when creating new nodes: focusing and entering editing, not focusing, only focusing. +> +> 3.When searching in read-only mode, add a highlight effect to the currently matched node. +> +> 4.The default behavior of the mouse scroll wheel is to move the canvas up and down; The default is to scroll forward to enlarge the canvas and zoom back. +> +> 5.When the mouse scroll wheel behavior is to move the canvas up and down, it supports holding down the Ctrl key to zoom in and out of the canvas. + +Demo:支持配置创建新节点时的行为。 + ## 0.9.0 New: diff --git a/web/src/pages/Doc/en/changelog/index.vue b/web/src/pages/Doc/en/changelog/index.vue index f5f97054..fca42dc8 100644 --- a/web/src/pages/Doc/en/changelog/index.vue +++ b/web/src/pages/Doc/en/changelog/index.vue @@ -1,6 +1,26 @@ +Changelog
+0.9.1
+Fix:
+++1.Fix the issue of exporting images, SVGs, and PDFs with errors when customizing node content.
+2.Optimize the distribution of node activation events, do not distribute events when the activation node has not changed, and skip intermediate events when distributing multiple events in a short period of time.
+3.Fix the issue where the edit box and node detach when scrolling the canvas with the mouse while the node is in editing mode.
+4.Fix the issue of shortcut keys becoming invalid when zooming the canvas with the mouse wheel and then exiting node editing while in node editing mode.
+5.Fix the issue where clicking on a node can also trigger node_dragend event.
+6.Fix that clicking on the canvas and nodes while not in the format brush will also trigger the painter_end event.
+7.Fixed the issue where the mind map text editing box was not destroyed during node text editing and associated line text editing.
+New:
+++1.When holding down the Ctrl key, disable the node double-click event.
+2.Support configuring the behavior when creating new nodes: focusing and entering editing, not focusing, only focusing.
+3.When searching in read-only mode, add a highlight effect to the currently matched node.
+4.The default behavior of the mouse scroll wheel is to move the canvas up and down; The default is to scroll forward to enlarge the canvas and zoom back.
+5.When the mouse scroll wheel behavior is to move the canvas up and down, it supports holding down the Ctrl key to zoom in and out of the canvas.
+Demo:支持配置创建新节点时的行为。
0.9.0
New:
1.Support adding summaries to some child nodes of the same node.
diff --git a/web/src/pages/Doc/en/constructor/index.md b/web/src/pages/Doc/en/constructor/index.md index 29464655..ab92dcdc 100644 --- a/web/src/pages/Doc/en/constructor/index.md +++ b/web/src/pages/Doc/en/constructor/index.md @@ -43,9 +43,9 @@ const mindMap = new MindMap({ | watermarkConfig(v0.2.4+) | Object | | Watermark config, Please refer to the table 【Watermark config】 below for detailed configuration | | | textAutoWrapWidth(v0.3.4+) | Number | 500 | Each line of text in the node will wrap automatically when it reaches the width | | | customHandleMousewheel(v0.4.3+) | Function | null | User-defined mouse wheel event processing can pass a function, and the callback parameter is the event object | | -| mousewheelAction(v0.4.3+) | String | zoom | The behavior of the mouse wheel, `zoom`(Zoom in and out)、`move`(Move up and down). If `customHandleMousewheel` passes a custom function, this property will not take effect | | +| mousewheelAction(v0.4.3+) | String | zoom(v0.9.1+ default is move) | The behavior of the mouse wheel, `zoom`(Zoom in and out)、`move`(Move up and down). If `customHandleMousewheel` passes a custom function, this property will not take effect | | | mousewheelMoveStep(v0.4.3+) | Number | 100 | When the `mousewheelAction` is set to `move`, you can use this attribute to control the step length of the view movement when the mouse scrolls. The unit is `px` | | -| mousewheelZoomActionReverse(v0.6.5+) | Boolean | false | When `mousewheelAction` is set to `zoom`, the default scrolling forward is to zoom out, and scrolling backward is to zoom in. If this property is set to true, it will be reversed | | +| mousewheelZoomActionReverse(v0.6.5+) | Boolean | false(v0.9.1+ default is true) | When `mousewheelAction` is set to `zoom`, Or when holding down the Ctrl key, the default scrolling forward is to zoom out, and scrolling backward is to zoom in. If this property is set to true, it will be reversed | | | defaultInsertSecondLevelNodeText(v0.4.7+) | String | 二级节点 | Text of the default inserted secondary node | | | defaultInsertBelowSecondLevelNodeText(v0.4.7+) | String | 分支主题 | Text for nodes below the second level inserted by default | | | expandBtnStyle(v0.5.0+) | Object | { color: '#808080', fill: '#fff', fontSize: 13, strokeColor: '#333333' } | Expand the color of the stow button, (The fontSize and strokeColor fields were added in version 0.7.0+to set the text style for displaying the number of nodes when folded) | | @@ -103,6 +103,7 @@ const mindMap = new MindMap({ | isDisableDrag(v0.8.1+) | Boolean | false | Is disable dragging the canvas | | | disableTouchZoom(v0.8.1+) | Boolean | false | Prohibit double finger scaling, you can still use the API for scaling, which takes effect on the TouchEvent plugin | | | highlightNodeBoxStyle(v0.9.0+) | Object | { stroke: 'rgb(94, 200, 248)', fill: 'transparent' } | Highlight box style when the mouse moves into the summary to highlight the node it belongs to | | +| createNewNodeBehavior(v0.9.1+) | String | default | Behavior when creating a new node. default(By default, newly created nodes will be activated and enter editing mode. If multiple new nodes are created simultaneously, they will only be activated and will not enter editing mode)、notActive(Do not activate newly created nodes)、activeOnly(Only activate newly created nodes and do not enter editing mode) | | ### Data structure diff --git a/web/src/pages/Doc/en/constructor/index.vue b/web/src/pages/Doc/en/constructor/index.vue index e8e01e54..9f3f7594 100644 --- a/web/src/pages/Doc/en/constructor/index.vue +++ b/web/src/pages/Doc/en/constructor/index.vue @@ -164,7 +164,7 @@@@ -178,8 +178,8 @@ mousewheelAction(v0.4.3+) String -zoom +zoom(v0.9.1+ default is move) The behavior of the mouse wheel, zoom(Zoom in and out)、move(Move up and down). IfcustomHandleMousewheelpasses a custom function, this property will not take effectmousewheelZoomActionReverse(v0.6.5+) Boolean -false -When +mousewheelActionis set tozoom, the default scrolling forward is to zoom out, and scrolling backward is to zoom in. If this property is set to true, it will be reversedfalse(v0.9.1+ default is true) +When mousewheelActionis set tozoom, Or when holding down the Ctrl key, the default scrolling forward is to zoom out, and scrolling backward is to zoom in. If this property is set to true, it will be reversed@@ -581,6 +581,13 @@ +Highlight box style when the mouse moves into the summary to highlight the node it belongs to + createNewNodeBehavior(v0.9.1+) +String +default +Behavior when creating a new node. default(By default, newly created nodes will be activated and enter editing mode. If multiple new nodes are created simultaneously, they will only be activated and will not enter editing mode)、notActive(Do not activate newly created nodes)、activeOnly(Only activate newly created nodes and do not enter editing mode) ++ Data structure
diff --git a/web/src/pages/Doc/en/introduction/index.md b/web/src/pages/Doc/en/introduction/index.md index 5e27ea68..c8274dac 100644 --- a/web/src/pages/Doc/en/introduction/index.md +++ b/web/src/pages/Doc/en/introduction/index.md @@ -253,4 +253,8 @@ Open source is not easy. If this project is helpful to you, you can invite the a![]()
moom
+\ No newline at end of file diff --git a/web/src/pages/Doc/en/introduction/index.vue b/web/src/pages/Doc/en/introduction/index.vue index 229432a7..d28a1cda 100644 --- a/web/src/pages/Doc/en/introduction/index.vue +++ b/web/src/pages/Doc/en/introduction/index.vue @@ -8,17 +8,17 @@+
张扬
+Features
- - - - - - - -
- - - - + + + + + + + +
json、png、svg、markdown、xmind, support import fromjson、xmind、markdown- + + +
json、png、svg、markdown、xmind, support import fromjson、xmind、markdownRepository Catalog Introduction
1.
@@ -28,16 +28,16 @@ frameworks such as Vue and React, or without a framework.simple-mind-mapThis is an online mind map built using the
simple-mind-maplibrary and based onVue2.xandElementUI. Features include:-
@@ -209,6 +209,10 @@ full screen, support mini map- +
- images, icons, hyperlinks, notes, tags, and summaries
-- +
- outline, theme selection, and structure selection
-- +
- storage by default, but it also supports creating, opening, and editing local files on the computer directly
-- +
- and organizing layout
-- +
- between edit and read-only modes, zooming in and out, and switching to full screen, support mini map
![]()
moom
++diff --git a/web/src/pages/Doc/en/utils/index.md b/web/src/pages/Doc/en/utils/index.md index 974da1a6..1954fd00 100644 --- a/web/src/pages/Doc/en/utils/index.md +++ b/web/src/pages/Doc/en/utils/index.md @@ -408,6 +408,22 @@ Remove the data of a node from its parent node's `nodeData.children` list. Determine whether there is a hierarchical relationship from the given node instance list. +#### handleSelfCloseTags(str) + +> v0.9.1+ + +- `str`: html string + +Add a closed state to HTML self closing tags, `+
张扬
+` -> ``。 + +#### checkNodeListIsEqual(list1, list2) + +> v0.9.1+ + +- `list1/list2`: Node instance list + +Check if the two node instance lists contain the same nodes. + ## 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 05f23409..43d1dfe1 100644 --- a/web/src/pages/Doc/en/utils/index.vue +++ b/web/src/pages/Doc/en/utils/index.vue @@ -333,6 +333,22 @@ and copying thedataof the data object, example:v0.8.1+
Determine whether there is a hierarchical relationship from the given node instance list.
+handleSelfCloseTags(str)
+++v0.9.1+
++
+- +
str: html stringAdd a closed state to HTML self closing tags,
+<div><img src="xxx"></div>-><div><img src="xxx" /></div>。checkNodeListIsEqual(list1, list2)
+++v0.9.1+
++
+- +
list1/list2: Node instance listCheck if the two node instance lists contain the same nodes.
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 48177a5b..e520746a 100644 --- a/web/src/pages/Doc/zh/changelog/index.md +++ b/web/src/pages/Doc/zh/changelog/index.md @@ -1,5 +1,37 @@ # Changelog +## 0.9.1 + +修复: + +> 1.修复自定义节点内容时导出图片、svg、pdf报错的问题。 +> +> 2.优化节点激活事件的派发,激活节点未改变时不派发事件,短时间派发多次事件时跳过中间事件。 +> +> 3.修复节点处于编辑状态时,通过鼠标滚动移动画布后编辑框和节点脱离的问题。 +> +> 4.修复在节点编辑状态中通过鼠标滚轮缩放画布再退出节点编辑后快捷键失效的问题。 +> +> 5.修复点击节点也会触发node_dragend事件的问题。 +> +> 6.修复不在格式刷时点击画布和节点也会触发painter_end事件的问题。 +> +> 7.修复在节点文本编辑中和关联线文本编辑中时销毁思维导图文本编辑框未被销毁的问题。 + +新增: + +> 1.按住Ctrl键时禁用节点双击事件。 +> +> 2.支持配置创建新节点时的行为:聚焦且进入编辑、不聚焦、只聚焦。 +> +> 3.只读模式下搜索时给当前匹配到的节点增加高亮效果。 +> +> 4.鼠标滚轮行为默认改为上下移动画布;默认改为向前滚动放大画布,向后缩小。 +> +> 5.在鼠标滚轮行为为上下移动画布时,支持按住Ctrl键进行放大缩小画布。 + +Demo:支持配置创建新节点时的行为。 + ## 0.9.0 新增: diff --git a/web/src/pages/Doc/zh/changelog/index.vue b/web/src/pages/Doc/zh/changelog/index.vue index 5d8221a2..69e4c1fe 100644 --- a/web/src/pages/Doc/zh/changelog/index.vue +++ b/web/src/pages/Doc/zh/changelog/index.vue @@ -1,6 +1,26 @@+Changelog
+0.9.1
+修复:
+++1.修复自定义节点内容时导出图片、svg、pdf报错的问题。
+2.优化节点激活事件的派发,激活节点未改变时不派发事件,短时间派发多次事件时跳过中间事件。
+3.修复节点处于编辑状态时,通过鼠标滚动移动画布后编辑框和节点脱离的问题。
+4.修复在节点编辑状态中通过鼠标滚轮缩放画布再退出节点编辑后快捷键失效的问题。
+5.修复点击节点也会触发node_dragend事件的问题。
+6.修复不在格式刷时点击画布和节点也会触发painter_end事件的问题。
+7.修复在节点文本编辑中和关联线文本编辑中时销毁思维导图文本编辑框未被销毁的问题。
+新增:
+++1.按住Ctrl键时禁用节点双击事件。
+2.支持配置创建新节点时的行为:聚焦且进入编辑、不聚焦、只聚焦。
+3.只读模式下搜索时给当前匹配到的节点增加高亮效果。
+4.鼠标滚轮行为默认改为上下移动画布;默认改为向前滚动放大画布,向后缩小。
+5.在鼠标滚轮行为为上下移动画布时,支持按住Ctrl键进行放大缩小画布。
+Demo:支持配置创建新节点时的行为。
0.9.0
新增:
1.支持对同一个节点的部分子节点添加概要。
diff --git a/web/src/pages/Doc/zh/constructor/index.md b/web/src/pages/Doc/zh/constructor/index.md index 599bac30..bf2e9ae6 100644 --- a/web/src/pages/Doc/zh/constructor/index.md +++ b/web/src/pages/Doc/zh/constructor/index.md @@ -43,9 +43,9 @@ const mindMap = new MindMap({ | watermarkConfig(v0.2.4+) | Object | | 水印配置,详细配置请参考下方表格【水印配置】 | | textAutoWrapWidth(v0.3.4+) | Number | 500 | 节点内每行文本达到该宽度后自动换行 | | customHandleMousewheel(v0.4.3+) | Function | null | 自定义鼠标滚轮事件处理,可以传一个函数,回调参数为事件对象 | -| mousewheelAction(v0.4.3+) | String | zoom | 鼠标滚轮的行为,`zoom`(放大缩小)、`move`(上下移动)。如果`customHandleMousewheel`传了自定义函数,这个属性不生效 | +| mousewheelAction(v0.4.3+) | String | zoom(v0.9.1+默认改为move) | 鼠标滚轮的行为,`zoom`(放大缩小)、`move`(上下移动)。如果`customHandleMousewheel`传了自定义函数,这个属性不生效 | | mousewheelMoveStep(v0.4.3+) | Number | 100 | 当`mousewheelAction`设为`move`时,可以通过该属性控制鼠标滚动一下视图移动的步长,单位`px` | -| mousewheelZoomActionReverse(v0.6.5+) | Boolean | false | 当mousewheelAction设为zoom时,默认向前滚动是缩小,向后滚动是放大,如果该属性设为true,那么会反过来 | +| mousewheelZoomActionReverse(v0.6.5+) | Boolean | false(v0.9.1+默认改为true) | 当mousewheelAction设为zoom时,或者按住Ctrl键时,默认向前滚动是缩小,向后滚动是放大,如果该属性设为true,那么会反过来 | | defaultInsertSecondLevelNodeText(v0.4.7+) | String | 二级节点 | 默认插入的二级节点的文字 | | defaultInsertBelowSecondLevelNodeText(v0.4.7+) | String | 分支主题 | 默认插入的二级以下节点的文字 | | expandBtnStyle(v0.5.0+) | Object | { color: '#808080', fill: '#fff', fontSize: 13, strokeColor: '#333333' } | 展开收起按钮的颜色,(fontSize及strokeColor字段为0.7.0+版本新增的,用于设置收起时显示节点数量的文字样式) | @@ -103,6 +103,7 @@ const mindMap = new MindMap({ | isDisableDrag(v0.8.1+) | Boolean | false | 是否禁止拖动画布 | | disableTouchZoom(v0.8.1+) | Boolean | false | 禁止双指缩放,你仍旧可以使用api进行缩放,对TouchEvent插件生效 | | highlightNodeBoxStyle(v0.9.0+) | Object | { stroke: 'rgb(94, 200, 248)', fill: 'transparent' } | 鼠标移入概要高亮所属节点时的高亮框样式 | +| createNewNodeBehavior(v0.9.1+) | String | default | 创建新节点时的行为。default(默认会激活新创建的节点,并且进入编辑模式。如果同时创建了多个新节点,那么只会激活而不会进入编辑模式)、notActive(不激活新创建的节点)、activeOnly(只激活新创建的节点,不进入编辑模式) | ### 数据结构 diff --git a/web/src/pages/Doc/zh/constructor/index.vue b/web/src/pages/Doc/zh/constructor/index.vue index 8fe72aa5..34148edc 100644 --- a/web/src/pages/Doc/zh/constructor/index.vue +++ b/web/src/pages/Doc/zh/constructor/index.vue @@ -144,7 +144,7 @@mousewheelAction(v0.4.3+) String -zoom +zoom(v0.9.1+默认改为move) 鼠标滚轮的行为, zoom(放大缩小)、move(上下移动)。如果customHandleMousewheel传了自定义函数,这个属性不生效@@ -156,8 +156,8 @@ mousewheelZoomActionReverse(v0.6.5+) Boolean -false -当mousewheelAction设为zoom时,默认向前滚动是缩小,向后滚动是放大,如果该属性设为true,那么会反过来 +false(v0.9.1+默认改为true) +当mousewheelAction设为zoom时,或者按住Ctrl键时,默认向前滚动是缩小,向后滚动是放大,如果该属性设为true,那么会反过来 + defaultInsertSecondLevelNodeText(v0.4.7+) @@ -501,6 +501,12 @@{ stroke: 'rgb(94, 200, 248)', fill: 'transparent' } 鼠标移入概要高亮所属节点时的高亮框样式 + createNewNodeBehavior(v0.9.1+) +String +default +创建新节点时的行为。default(默认会激活新创建的节点,并且进入编辑模式。如果同时创建了多个新节点,那么只会激活而不会进入编辑模式)、notActive(不激活新创建的节点)、activeOnly(只激活新创建的节点,不进入编辑模式) +数据结构
diff --git a/web/src/pages/Doc/zh/introduction/index.md b/web/src/pages/Doc/zh/introduction/index.md index 07d257d4..a245735f 100644 --- a/web/src/pages/Doc/zh/introduction/index.md +++ b/web/src/pages/Doc/zh/introduction/index.md @@ -246,4 +246,8 @@![]()
moom
+\ No newline at end of file diff --git a/web/src/pages/Doc/zh/introduction/index.vue b/web/src/pages/Doc/zh/introduction/index.vue index 1fdd0997..846fb3cb 100644 --- a/web/src/pages/Doc/zh/introduction/index.vue +++ b/web/src/pages/Doc/zh/introduction/index.vue @@ -203,6 +203,10 @@+
张扬
+![]()
moom
++diff --git a/web/src/pages/Doc/zh/utils/index.md b/web/src/pages/Doc/zh/utils/index.md index b54f1998..388d4266 100644 --- a/web/src/pages/Doc/zh/utils/index.md +++ b/web/src/pages/Doc/zh/utils/index.md @@ -403,6 +403,22 @@ copyNodeTree({}, node) 从给定的节点实例列表里判断是否存在上下级关系。 +#### handleSelfCloseTags(str) + +> v0.9.1+ + +- `str`:html字符串 + +给html自闭合标签添加闭合状态,`+
张扬
+` -> ``。 + +#### checkNodeListIsEqual(list1, list2) + +> v0.9.1+ + +- `list1/list2`:节点实例列表 + +检查两个节点实例列表包含的节点是否是一样的。 + ## 在canvas中模拟css的背景属性 引入: diff --git a/web/src/pages/Doc/zh/utils/index.vue b/web/src/pages/Doc/zh/utils/index.vue index 091375b8..f8af5702 100644 --- a/web/src/pages/Doc/zh/utils/index.vue +++ b/web/src/pages/Doc/zh/utils/index.vue @@ -328,6 +328,22 @@v0.8.1+
从给定的节点实例列表里判断是否存在上下级关系。
+handleSelfCloseTags(str)
+++v0.9.1+
++
+- +
str:html字符串给html自闭合标签添加闭合状态,
+<div><img src="xxx"></div>-><div><img src="xxx" /></div>。checkNodeListIsEqual(list1, list2)
+++v0.9.1+
++
+- +
list1/list2:节点实例列表检查两个节点实例列表包含的节点是否是一样的。
在canvas中模拟css的背景属性
引入:
import drawBackgroundImageToCanvas from 'simple-mind-map/src/utils/simulateCSSBackgroundInCanvas' diff --git a/web/src/pages/Index/components/Block2.vue b/web/src/pages/Index/components/Block2.vue index a79b13d4..d7c48a0e 100644 --- a/web/src/pages/Index/components/Block2.vue +++ b/web/src/pages/Index/components/Block2.vue @@ -42,11 +42,11 @@ export default { dataList: [ { icon: 'iconstar', - value: 'Github star数量1000+' + value: 'Github star数量2000+' }, { icon: 'iconfork', - value: 'Github fork数量200+' + value: 'Github fork数量250+' }, { icon: 'iconxiazai', @@ -54,7 +54,7 @@ export default { }, { icon: 'iconteamwork', - value: '代码贡献者12+' + value: '代码贡献者14+' } ], functionList: [