diff --git a/package/component/package.json b/package/component/package.json index 27730a44..70e92439 100644 --- a/package/component/package.json +++ b/package/component/package.json @@ -1,6 +1,6 @@ { "name": "@layui/layui-vue", - "version": "1.4.7", + "version": "1.4.8", "author": "就眠儀式", "license": "MIT", "description": "a component library for Vue 3 base on layui-vue", diff --git a/package/component/src/component/scroll/index.vue b/package/component/src/component/scroll/index.vue index 06bdcfa2..949f426b 100644 --- a/package/component/src/component/scroll/index.vue +++ b/package/component/src/component/scroll/index.vue @@ -101,16 +101,19 @@ const monitorWindow = function () { //监听内容元素尺寸变化 const monitorScrollBar = function () { // @ts-ignore - let MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; - const observer : any = new MutationObserver(mutations => { - initScrollListner(); - }) + let MutationObserver = + window.MutationObserver || + window.WebKitMutationObserver || + window.MozMutationObserver; + const observer: any = new MutationObserver((mutations) => { + initScrollListner(); + }); observer.observe(scrollRef.value, { - attributes: true, - childList: true, - subtree: true - }) + attributes: true, + childList: true, + subtree: true, + }); }; // 初始化延迟监听滚动条 diff --git a/package/document-component/src/document/zh-CN/guide/changelog.md b/package/document-component/src/document/zh-CN/guide/changelog.md index fc2c7a2d..3fb41b46 100644 --- a/package/document-component/src/document/zh-CN/guide/changelog.md +++ b/package/document-component/src/document/zh-CN/guide/changelog.md @@ -11,6 +11,19 @@