From 091bfc9dee3fdf3a5b420b89ebe46c22b9d6d19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Fri, 2 Sep 2022 09:30:29 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(component):=20=E5=8F=91=E5=B8=83=201.?= =?UTF-8?q?4.8=20=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/package.json | 2 +- .../component/src/component/scroll/index.vue | 19 +++++++++++-------- .../src/document/zh-CN/guide/changelog.md | 13 +++++++++++++ 3 files changed, 25 insertions(+), 9 deletions(-) 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 @@