From 2476729d9aa585485b9ed99a3b32d77806afaa98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=A1=E9=A3=8E?= <18012261618@126.com> Date: Tue, 20 Jan 2026 13:57:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(grid-view):=20=E4=BF=AE=E6=94=B9mounted?= =?UTF-8?q?=E7=94=9F=E5=91=BD=E5=91=A8=E6=9C=9F=E9=92=A9=E5=AD=90=E4=BB=A5?= =?UTF-8?q?=E5=BC=82=E6=AD=A5=E7=AD=89=E5=BE=85DOM=E6=B8=B2=E6=9F=93?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mobile-ui/src-vusion/components/grid-view/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/mobile-ui/src-vusion/components/grid-view/index.vue b/libraries/mobile-ui/src-vusion/components/grid-view/index.vue index b0547af29..686e856f1 100644 --- a/libraries/mobile-ui/src-vusion/components/grid-view/index.vue +++ b/libraries/mobile-ui/src-vusion/components/grid-view/index.vue @@ -336,7 +336,7 @@ export default { } }, }, - mounted() { + async mounted() { if (this.$env && this.$env.VUE_APP_DESIGNER) { this.observerwh = new MutationObserver(this.pwd); this.observerwh.observe(this.$refs.body, { @@ -344,6 +344,9 @@ export default { }); } + // 等待DOM完全渲染后再计算宽度 + await this.$nextTick(); + if (this.iffall) { this.init(); } else {