diff --git a/index.html b/index.html index 1edde3bb..86b80ca1 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -一个简单的web思维导图实现
\ No newline at end of file +一个简单的web思维导图实现
\ No newline at end of file diff --git a/qrcode.jpg b/qrcode.jpg index 65b55897..4f72ccab 100644 Binary files a/qrcode.jpg and b/qrcode.jpg differ diff --git a/web/src/pages/Doc/en/start/index.md b/web/src/pages/Doc/en/start/index.md index e89692c1..32467e32 100644 --- a/web/src/pages/Doc/en/start/index.md +++ b/web/src/pages/Doc/en/start/index.md @@ -101,12 +101,14 @@ const mindMap = new MindMap({ The non-packaged 'ES' module is introduced by default, and only contains core functions, not unregistered plugin content, which can effectively reduce the size. However, you need to configure the `babel` compilation `simple mind-map` in your project to prevent some newer `js` syntax some browsers not supporting it. -If you need a file in the format of `umd` module, such as `CDN` in the browser, you can import it in the following way: +If you need a file in the format of `umd` module, such as `CDN` in the browser, Then you can find the `simpleMindMap.umd.min.js` file in the `/simple-mind-map/dist/` directory, copy it to your project, and then import it into the page: -```js -import MindMap from "simple-mind-map/dist/simpleMindMap.umd.min.js"; +```html + ``` +A global variable `window.simpleMindMap` will be created. + The disadvantage of this method is that it will contain all the content, including the plugins you have not registered, so the overall volume will be relatively large. ## Problems diff --git a/web/src/pages/Doc/en/start/index.vue b/web/src/pages/Doc/en/start/index.vue index 2269c052..d4b4f27c 100644 --- a/web/src/pages/Doc/en/start/index.vue +++ b/web/src/pages/Doc/en/start/index.vue @@ -72,9 +72,10 @@ compile this dependency:

});

The non-packaged 'ES' module is introduced by default, and only contains core functions, not unregistered plugin content, which can effectively reduce the size. However, you need to configure the babel compilation simple mind-map in your project to prevent some newer js syntax some browsers not supporting it.

-

If you need a file in the format of umd module, such as CDN in the browser, you can import it in the following way:

-
import MindMap from "simple-mind-map/dist/simpleMindMap.umd.min.js";
+

If you need a file in the format of umd module, such as CDN in the browser, Then you can find the simpleMindMap.umd.min.js file in the /simple-mind-map/dist/ directory, copy it to your project, and then import it into the page:

+
<script scr="simpleMindMap.umd.min.js"></script>
 
+

A global variable window.simpleMindMap will be created.

The disadvantage of this method is that it will contain all the content, including the plugins you have not registered, so the overall volume will be relatively large.

Problems

Error when using in Vite, indicating xml-js dependency error

diff --git a/web/src/pages/Doc/en/translate/index.md b/web/src/pages/Doc/en/translate/index.md index 27e08501..24f6cf27 100644 --- a/web/src/pages/Doc/en/translate/index.md +++ b/web/src/pages/Doc/en/translate/index.md @@ -1,6 +1,6 @@ # Participate in translation -Thanks for the English translation provided by [Emircan ERKUL](https://github.com/emircanerkul). +Thanks for the first version English translation provided by [Emircan ERKUL](https://github.com/emircanerkul). If you want to participate in the translation of this document, you can clone this repository first. diff --git a/web/src/pages/Doc/en/translate/index.vue b/web/src/pages/Doc/en/translate/index.vue index 84db2194..2d560b58 100644 --- a/web/src/pages/Doc/en/translate/index.vue +++ b/web/src/pages/Doc/en/translate/index.vue @@ -1,7 +1,7 @@