From 9b8b45630dcdccfaecf0c8b4d6647431fa562137 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Mon, 13 Jan 2025 16:30:14 +0800 Subject: [PATCH] =?UTF-8?q?refactor(x-ios):=20uniPage=20=E4=B8=8A=E7=9A=84?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E6=94=B9=E4=B8=BA=20framework=20=E9=80=9A?= =?UTF-8?q?=E8=BF=87=20prototype=20=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/x/framework/page/setup.ts | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/packages/uni-app-plus/src/x/framework/page/setup.ts b/packages/uni-app-plus/src/x/framework/page/setup.ts index 4dc5011c0c5..a1f2a93f524 100644 --- a/packages/uni-app-plus/src/x/framework/page/setup.ts +++ b/packages/uni-app-plus/src/x/framework/page/setup.ts @@ -82,32 +82,6 @@ export function setupXPage( }) uniPage.vm = pageVm uniPage.$vm = pageVm - uniPage.getParentPage = () => { - // @ts-expect-error - const parentPage = uniPage.getParentPageByJS() - return parentPage || null - } - - uniPage.getPageStyle = (): UTSJSONObject => { - // @ts-expect-error - const pageStyle = uniPage.getPageStyleByJS() - return new UTSJSONObject(pageStyle) - } - uniPage.$getPageStyle = (): UTSJSONObject => { - return uniPage.getPageStyle() - } - - uniPage.setPageStyle = (styles: UTSJSONObject) => { - // @ts-expect-error - uniPage.setPageStyleByJS(styles) - } - uniPage.$setPageStyle = (styles: UTSJSONObject) => { - uniPage.setPageStyle(styles) - } - - uniPage.getAndroidView = () => null - uniPage.getIOSView = () => null - uniPage.getHTMLElement = () => null if (getPage$BasePage(pageVm).openType !== OPEN_DIALOG_PAGE) { addCurrentPageWithInitScope(