From 148c7128ab77b63f7250bd0d97dd79a684640556 Mon Sep 17 00:00:00 2001 From: shutao Date: Tue, 23 Jan 2024 20:21:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B1=E4=BA=8E=E9=A1=B5=E9=9D=A2=E9=A6=96?= =?UTF-8?q?=E6=AC=A1=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=86=8D=E8=A7=A6=E5=8F=91?= =?UTF-8?q?onResize=20=EF=BC=8C=E6=9A=82=E6=97=B6=E5=B1=8F=E8=94=BD?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E5=9C=A8onResize=E7=9B=B8=E5=85=B3=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/nodes-info/nodes-info.test.js | 4 ++-- pages/API/nodes-info/nodes-info.uvue | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/API/nodes-info/nodes-info.test.js b/pages/API/nodes-info/nodes-info.test.js index b86f9854..6db2b999 100644 --- a/pages/API/nodes-info/nodes-info.test.js +++ b/pages/API/nodes-info/nodes-info.test.js @@ -47,10 +47,10 @@ describe('nodes-info', () => { // #ifdef APP //检测onResize获取BoundingClientRect信息是否有效 - it('check_resizeRectValid', async () => { + /* it('check_resizeRectValid', async () => { const resizeRectValid = await page.data('resizeRectValid') expect(resizeRectValid).toBe(true) - }) + }) */ // #endif }) diff --git a/pages/API/nodes-info/nodes-info.uvue b/pages/API/nodes-info/nodes-info.uvue index e0a092c0..299d8e15 100644 --- a/pages/API/nodes-info/nodes-info.uvue +++ b/pages/API/nodes-info/nodes-info.uvue @@ -54,18 +54,18 @@ title: 'createSelectorQuery', nodeInfoList: [] as NodeInfoType[], //供自动化测试使用 - resizeRectValid: false + // resizeRectValid: false } }, onResize() { //供自动化测试使用 - var rect12Element = uni.getElementById("rect-1-2") + /* var rect12Element = uni.getElementById("rect-1-2") if(rect12Element != null) { var domRect = rect12Element.getBoundingClientRect() if(domRect.width > 100) { this.resizeRectValid = true } - } + } */ }, methods: { getNodeInfo() { -- GitLab