diff --git a/README.md b/README.md index 6de6545d..317db5ad 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ const mindMap = new MindMap({ # 关于定制 -如果你有个性化的商用定制需求,可以联系我们,我们提供付费开发服务。 +如果你有个性化的商用定制需求,可以联系我们,我们提供付费开发服务,无论前端、后端、还是部署,都可以帮你一站式搞定。 # 请作者喝杯咖啡 @@ -401,4 +401,12 @@ const mindMap = new MindMap({ Kyle + + + lsytyrt + + + + 秀树因馨雨 +

diff --git a/web/src/assets/avatar/lsytyrt.jpg b/web/src/assets/avatar/lsytyrt.jpg new file mode 100644 index 00000000..a18d3d5b Binary files /dev/null and b/web/src/assets/avatar/lsytyrt.jpg differ diff --git a/web/src/assets/avatar/秀树因馨雨.jpg b/web/src/assets/avatar/秀树因馨雨.jpg new file mode 100644 index 00000000..636c1fbe Binary files /dev/null and b/web/src/assets/avatar/秀树因馨雨.jpg differ diff --git a/web/src/assets/img/docs/错误.jpg b/web/src/assets/img/docs/错误.jpg new file mode 100644 index 00000000..c36588bd Binary files /dev/null and b/web/src/assets/img/docs/错误.jpg differ diff --git a/web/src/config/en.js b/web/src/config/en.js index 7cc8930e..8ab259f5 100644 --- a/web/src/config/en.js +++ b/web/src/config/en.js @@ -207,7 +207,7 @@ export const shortcutKeyList = [ { icon: 'icontianjiazijiedian', name: 'Inert child node', - value: 'Tab' + value: 'Tab | Insert' }, { icon: 'iconjiedian', diff --git a/web/src/config/zh.js b/web/src/config/zh.js index 07e8940b..4c64b5e0 100644 --- a/web/src/config/zh.js +++ b/web/src/config/zh.js @@ -273,7 +273,7 @@ export const shortcutKeyList = [ { icon: 'icontianjiazijiedian', name: '插入下级节点', - value: 'Tab' + value: 'Tab | Insert' }, { icon: 'iconjiedian', diff --git a/web/src/pages/Doc/en/introduction/index.md b/web/src/pages/Doc/en/introduction/index.md index 38b39d08..52bcd6ee 100644 --- a/web/src/pages/Doc/en/introduction/index.md +++ b/web/src/pages/Doc/en/introduction/index.md @@ -428,4 +428,12 @@ Open source is not easy. If this project is helpful to you, you can invite the a

Kyle

+
+ +

lsytyrt

+
+
+ +

秀树因馨雨

+
diff --git a/web/src/pages/Doc/en/introduction/index.vue b/web/src/pages/Doc/en/introduction/index.vue index d10467f3..bdc3d638 100644 --- a/web/src/pages/Doc/en/introduction/index.vue +++ b/web/src/pages/Doc/en/introduction/index.vue @@ -8,18 +8,18 @@

Features

The official provides the following plugins, which can be introduced as needed (a certain function may not be effective because you did not introduce the corresponding plugin). Please refer to the documentation for specific usage methods:

@@ -39,16 +39,16 @@ frameworks such as Vue and React, or without a framework.

This is an online mind map built using the simple-mind-map library and based on Vue2.x and ElementUI. Features include:

@@ -382,6 +382,14 @@ full screen, support mini map

Kyle

+
+ +

lsytyrt

+
+
+ +

秀树因馨雨

+
diff --git a/web/src/pages/Doc/en/start/index.md b/web/src/pages/Doc/en/start/index.md index 546d377a..694abc61 100644 --- a/web/src/pages/Doc/en/start/index.md +++ b/web/src/pages/Doc/en/start/index.md @@ -209,3 +209,15 @@ Different packaging tools may have different specific configurations, with the p ### When clicking the [New], [Open], or [Save As] buttons, it will prompt that the browser does not support it or is not using the HTTPS protocol. The browser uses API [window.showOpenFilePicker](https://developer.mozilla.org/zh-CN/docs/Web/API/Window/showOpenFilePicker) to operate local files on the computer. If it is not supported, either the browser does not support this API or the page is not using the HTTPS protocol, You can press F12, or open the browser console through the right-click menu on the page and enter 'window.showOpenFilePicker' in the 'Console' tab. If it returns 'undefined', it means it is not supported. If it does not return this message and the page still prompts that the browser does not support it or is not using the HTTPS protocol, you can submit an issue or contact the author. + +### 5.Import simple-mind-map error message, the error message is as follows: + + + +This is because your build environment does not support this JavaScript syntax, which comes from the '@svgdotjs/svg.js' library. The solution is as follows: + +1.Manually reduce the version of the '@svgdotjs/svg.js' library. You can manually install the lower version in your project, such as: `npm i @svgdotjs/svg.js@3.0.16` + +2.If you don't reduce the version, you can modify the relevant configuration of your build tool, modify the configuration of 'babel', and have it compile the 'simple-mind-map' library in 'node.modules' or the '@svgdotjs/svg.js' library. If you are using 'vue-cli' or 'vite', they also provide the relevant configuration directly. In addition, it is necessary to install the 'babel' plugin that compiles this syntax and configure it in the 'babel' configuration file: + +`@babel/plugin-proposal-nullish-coalescing-operator`、`@babel/plugin-proposal-optional-chaining`。 \ No newline at end of file diff --git a/web/src/pages/Doc/en/start/index.vue b/web/src/pages/Doc/en/start/index.vue index db15852e..85fadc3a 100644 --- a/web/src/pages/Doc/en/start/index.vue +++ b/web/src/pages/Doc/en/start/index.vue @@ -1,146 +1,6 @@ diff --git a/web/src/pages/Doc/zh/introduction/index.md b/web/src/pages/Doc/zh/introduction/index.md index 9f6fe83d..e8703e81 100644 --- a/web/src/pages/Doc/zh/introduction/index.md +++ b/web/src/pages/Doc/zh/introduction/index.md @@ -424,4 +424,12 @@

Kyle

+
+ +

lsytyrt

+
+
+ +

秀树因馨雨

+
diff --git a/web/src/pages/Doc/zh/introduction/index.vue b/web/src/pages/Doc/zh/introduction/index.vue index a25f78c7..8445ee00 100644 --- a/web/src/pages/Doc/zh/introduction/index.vue +++ b/web/src/pages/Doc/zh/introduction/index.vue @@ -8,18 +8,18 @@

特性

官方提供了如下插件,可根据需求按需引入(某个功能不生效大概率是因为你没有引入对应的插件),具体使用方式请查看文档:

@@ -37,11 +37,11 @@

2.web

使用simple-mind-map库,基于vue2.xElementUI搭建的在线思维导图。特性:

提供文档页面服务。

3.dist

@@ -375,6 +375,14 @@

Kyle

+
+ +

lsytyrt

+
+
+ +

秀树因馨雨

+
diff --git a/web/src/pages/Doc/zh/start/index.md b/web/src/pages/Doc/zh/start/index.md index 4694e19c..c89f9a85 100644 --- a/web/src/pages/Doc/zh/start/index.md +++ b/web/src/pages/Doc/zh/start/index.md @@ -192,4 +192,16 @@ resolve: { alias: { stream: "stream-browserify" } } ### 4.点击【新建】、【打开】、【另存为】按钮时提示浏览器不支持,或者非https协议。 -浏览器上操作电脑本地文件使用的是[window.showOpenFilePicker](https://developer.mozilla.org/zh-CN/docs/Web/API/Window/showOpenFilePicker)api,如果不支持,要么是浏览器不支持这个API,要么是因为页面非https协议,你可以按F12,或者在页面通过鼠标右键菜单中的【检查】打开浏览器控制台,在其中的【控制台】或【console】tab中输入`window.showOpenFilePicker`按回车,如果返回`undefined`则代表不支持,如果返回的不是这个,而页面依旧提示提示浏览器不支持,或者非https协议,那么可以提交issue,或者联系作者。 \ No newline at end of file +浏览器上操作电脑本地文件使用的是[window.showOpenFilePicker](https://developer.mozilla.org/zh-CN/docs/Web/API/Window/showOpenFilePicker)api,如果不支持,要么是浏览器不支持这个API,要么是因为页面非https协议,你可以按F12,或者在页面通过鼠标右键菜单中的【检查】打开浏览器控制台,在其中的【控制台】或【console】tab中输入`window.showOpenFilePicker`按回车,如果返回`undefined`则代表不支持,如果返回的不是这个,而页面依旧提示提示浏览器不支持,或者非https协议,那么可以提交issue,或者联系作者。 + +### 5.引入simple-mind-map报错,报错信息如下: + + + +这是因为你的构建环境不支持该js语法,该语法出自`@svgdotjs/svg.js`库,解决方法如下: + +1.手动降低`@svgdotjs/svg.js`库的版本,你可以在你的项目中手动安装低版本,比如:`npm i @svgdotjs/svg.js@3.0.16` + +2.不降低版本的话,可以通过修改你的构建工具的相关配置,修改`babel`的配置,让它编译一下`node_modules`中的`simple-mind-map`库,或`@svgdotjs/svg.js`库,如果用的是`vue-cli`或`vite`,它们也直接提供了相关配置。另外需要安装编译该语法的`babel`插件,并且配置到`babel`的配置文件中: + +`@babel/plugin-proposal-nullish-coalescing-operator`、`@babel/plugin-proposal-optional-chaining`。 \ No newline at end of file diff --git a/web/src/pages/Doc/zh/start/index.vue b/web/src/pages/Doc/zh/start/index.vue index 5a4b26ee..20022828 100644 --- a/web/src/pages/Doc/zh/start/index.vue +++ b/web/src/pages/Doc/zh/start/index.vue @@ -123,6 +123,12 @@ npm run build

不同的打包工具可能具体配置不一样,原理就是排除stream依赖。

4.点击【新建】、【打开】、【另存为】按钮时提示浏览器不支持,或者非https协议。

浏览器上操作电脑本地文件使用的是window.showOpenFilePickerapi,如果不支持,要么是浏览器不支持这个API,要么是因为页面非https协议,你可以按F12,或者在页面通过鼠标右键菜单中的【检查】打开浏览器控制台,在其中的【控制台】或【console】tab中输入window.showOpenFilePicker按回车,如果返回undefined则代表不支持,如果返回的不是这个,而页面依旧提示提示浏览器不支持,或者非https协议,那么可以提交issue,或者联系作者。

+

5.引入simple-mind-map报错,报错信息如下:

+ +

这是因为你的构建环境不支持该js语法,该语法出自@svgdotjs/svg.js库,解决方法如下:

+

1.手动降低@svgdotjs/svg.js库的版本,你可以在你的项目中手动安装低版本,比如:npm i @svgdotjs/svg.js@3.0.16

+

2.不降低版本的话,可以通过修改你的构建工具的相关配置,修改babel的配置,让它编译一下node_modules中的simple-mind-map库,或@svgdotjs/svg.js库,如果用的是vue-clivite,它们也直接提供了相关配置。另外需要安装编译该语法的babel插件,并且配置到babel的配置文件中:

+

@babel/plugin-proposal-nullish-coalescing-operator@babel/plugin-proposal-optional-chaining