Doc update

This commit is contained in:
wanglin2
2023-11-24 13:45:03 +08:00
parent 3b47d11b21
commit 9e34fd6174
3 changed files with 4 additions and 4 deletions

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?6450bdeb4871438bb6e4" rel="stylesheet"><link href="dist/css/app.css?6450bdeb4871438bb6e4" 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?8e8e1abc19a80fd778db" rel="stylesheet"><link href="dist/css/app.css?8e8e1abc19a80fd778db" 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?6450bdeb4871438bb6e4"></script><script src="dist/js/app.js?6450bdeb4871438bb6e4"></script></body></html>
}</script><script src="dist/js/chunk-vendors.js?8e8e1abc19a80fd778db"></script><script src="dist/js/app.js?8e8e1abc19a80fd778db"></script></body></html>

View File

@@ -82,7 +82,7 @@ mindMap.scrollbar.setScrollBarWrapSize(width, height)
然后你需要监听`scrollbar_change`方法来获取滚动条大小和位置数据:
```js
mindMap.('scrollbar_change', this.updateScrollbar)
mindMap.on('scrollbar_change', this.updateScrollbar)
// 根据事件返回的滚动条数据更新滚动条元素:
{

View File

@@ -70,7 +70,7 @@ mindMap.scrollbar.setScrollBarWrapSize(width, height)
</code></pre>
<p>如果容器大小发生了改变需要再次调用该方法传递改变后的大小</p>
<p>然后你需要监听<code>scrollbar_change</code>方法来获取滚动条大小和位置数据</p>
<pre class="hljs"><code>mindMap.(<span class="hljs-string">&#x27;scrollbar_change&#x27;</span>, <span class="hljs-built_in">this</span>.updateScrollbar)
<pre class="hljs"><code>mindMap.on(<span class="hljs-string">&#x27;scrollbar_change&#x27;</span>, <span class="hljs-built_in">this</span>.updateScrollbar)
<span class="hljs-comment">// 根据事件返回的滚动条数据更新滚动条元素:</span>
{