From 9e34fd6174473a0c668e697a74f8e8729e247fe4 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Fri, 24 Nov 2023 13:45:03 +0800 Subject: [PATCH] Doc update --- index.html | 4 ++-- web/src/pages/Doc/zh/course23/index.md | 2 +- web/src/pages/Doc/zh/course23/index.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 27ae634b..61f69091 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ 思绪思维导图
\ No newline at end of file + } \ No newline at end of file diff --git a/web/src/pages/Doc/zh/course23/index.md b/web/src/pages/Doc/zh/course23/index.md index 372da613..98d41880 100644 --- a/web/src/pages/Doc/zh/course23/index.md +++ b/web/src/pages/Doc/zh/course23/index.md @@ -82,7 +82,7 @@ mindMap.scrollbar.setScrollBarWrapSize(width, height) 然后你需要监听`scrollbar_change`方法来获取滚动条大小和位置数据: ```js -mindMap.('scrollbar_change', this.updateScrollbar) +mindMap.on('scrollbar_change', this.updateScrollbar) // 根据事件返回的滚动条数据更新滚动条元素: { diff --git a/web/src/pages/Doc/zh/course23/index.vue b/web/src/pages/Doc/zh/course23/index.vue index 983ce4ea..5468083e 100644 --- a/web/src/pages/Doc/zh/course23/index.vue +++ b/web/src/pages/Doc/zh/course23/index.vue @@ -70,7 +70,7 @@ mindMap.scrollbar.setScrollBarWrapSize(width, height)

如果容器大小发生了改变需要再次调用该方法传递改变后的大小。

然后你需要监听scrollbar_change方法来获取滚动条大小和位置数据:

-
mindMap.('scrollbar_change', this.updateScrollbar)
+
mindMap.on('scrollbar_change', this.updateScrollbar)
 
 // 根据事件返回的滚动条数据更新滚动条元素:
 {