From edbee87f31204e1129c9f8559ee1cb48732b3af7 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Wed, 27 Nov 2024 18:29:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor(dialogPage):=20=E8=A1=A5=E5=85=85?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/dialog-page/dialog-page.uvue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/API/dialog-page/dialog-page.uvue b/pages/API/dialog-page/dialog-page.uvue index d95c3d85..34b4a747 100644 --- a/pages/API/dialog-page/dialog-page.uvue +++ b/pages/API/dialog-page/dialog-page.uvue @@ -253,26 +253,31 @@ handleOpenAnimationType(e : RadioGroupChangeEvent) { this.openAnimationType = e.detail.value as OpenAnimationType }, + // 自动化测试 getDialogPage() : UniPage | null { const dialogPages = this.$page.getDialogPages() return dialogPages.length > 0 ? dialogPages[0] : null }, + // 自动化测试 dialogPageCheckGetDialogPages() : boolean { const dialogPage = this.getDialogPage()! const dialogPages = dialogPage.getDialogPages() const res = dialogPages.length == 0 return res }, + // 自动化测试 dialogPageGetPageStyle() : UTSJSONObject { const dialogPage = this.getDialogPage()! return dialogPage.getPageStyle() }, + // 自动化测试 dialogPageSetPageStyle() { const dialogPage = this.getDialogPage()! dialogPage.setPageStyle({ backgroundColorContent: 'red' }) }, + // 自动化测试 dialogPageCheckGetElementById() : boolean { const dialogPage = this.getDialogPage()! const element = dialogPage.getElementById('dialog1-go-next-page') @@ -286,18 +291,21 @@ // #endif return res }, + // 自动化测试 dialogCheckGetAndroidView() : boolean { const dialogPage = this.getDialogPage()! const androidView = dialogPage.getAndroidView() const res = androidView != null return res }, + // 自动化测试 dialogCheckGetIOSView() : boolean { const dialogPage = this.getDialogPage()! const IOSView = dialogPage.getIOSView() const res = IOSView != null return res }, + // 自动化测试 dialogCheckGetHTMLElement() : boolean { const dialogPage = this.getDialogPage()! const HTMLView = dialogPage.getHTMLElement() -- GitLab