From 7b7ccd9741554553fd9a9d96dc479c1b0554ba0f Mon Sep 17 00:00:00 2001 From: lyk Date: Mon, 29 May 2023 10:56:07 +0800 Subject: [PATCH] =?UTF-8?q?fix=20this.$el=E8=A2=AB=E9=94=80=E6=AF=81?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E5=90=8E=E7=BB=A7=E7=BB=AD=E7=9B=91=E5=90=AC?= =?UTF-8?q?resize=20(#396)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/item.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/item.js b/src/item.js index a171fc9..f7ee1f1 100644 --- a/src/item.js +++ b/src/item.js @@ -22,7 +22,8 @@ const Wrapper = { // since componet will be reused, so disptach when updated updated () { - this.dispatchSizeChange() + // this.dispatchSizeChange() + this.resizeObserver.observe(this.$el) }, beforeDestroy () {