Skip to content

Commit

Permalink
chore: build
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyuWang committed Jan 13, 2025
1 parent 9b8b456 commit c0ecc64
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 41 deletions.
33 changes: 4 additions & 29 deletions packages/uni-app-plus/dist/uni.x.runtime.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -796,26 +796,6 @@ function setupXPage(instance, pageInstance, pageVm, pageId, pagePath) {
});
uniPage.vm = pageVm;
uniPage.$vm = pageVm;
uniPage.getParentPage = () => {
var parentPage = uniPage.getParentPageByJS();
return parentPage || null;
};
uniPage.getPageStyle = () => {
var pageStyle = uniPage.getPageStyleByJS();
return new UTSJSONObject(pageStyle);
};
uniPage.$getPageStyle = () => {
return uniPage.getPageStyle();
};
uniPage.setPageStyle = (styles2) => {
uniPage.setPageStyleByJS(styles2);
};
uniPage.$setPageStyle = (styles2) => {
uniPage.setPageStyle(styles2);
};
uniPage.getAndroidView = () => null;
uniPage.getIOSView = () => null;
uniPage.getHTMLElement = () => null;
if (getPage$BasePage(pageVm).openType !== OPEN_DIALOG_PAGE) {
addCurrentPageWithInitScope(pageId, pageVm, pageInstance);
}
Expand Down Expand Up @@ -1063,7 +1043,10 @@ var $off = /* @__PURE__ */ defineSyncApi(API_OFF, (name, callback) => {
name = name ? [name] : [];
name.forEach((n) => {
eventBus.off(n, callback);
if (typeof __uniappx__nativeEventBus !== "undefined") {
if (
// @ts-expect-error
typeof __uniappx__nativeEventBus !== "undefined"
) {
__uniappx__nativeEventBus.off(n, callback);
}
});
Expand Down Expand Up @@ -6280,10 +6263,6 @@ const _sfc_main$1 = {
uni.$off(this.readyEventName, null);
uni.$off(this.successEventName, null);
uni.$off(this.failEventName, null);
__uniappx__nativeEventBus.off(this.optionsEventName, null);
__uniappx__nativeEventBus.off(this.readyEventName, null);
__uniappx__nativeEventBus.off(this.successEventName, null);
__uniappx__nativeEventBus.off(this.failEventName, null);
},
methods: {
closeActionSheet() {
Expand Down Expand Up @@ -6723,10 +6702,6 @@ const _sfc_main = {
uni.$off(this.readyEventName, null);
uni.$off(this.successEventName, null);
uni.$off(this.failEventName, null);
__uniappx__nativeEventBus.off(this.optionsEventName, null);
__uniappx__nativeEventBus.off(this.readyEventName, null);
__uniappx__nativeEventBus.off(this.successEventName, null);
__uniappx__nativeEventBus.off(this.failEventName, null);
},
onResize() {
this.getSystemInfo();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,6 @@
uni.$off(this.readyEventName, null)
uni.$off(this.successEventName, null)
uni.$off(this.failEventName, null)
// #ifdef APP-IOS
__uniappx__nativeEventBus.off(this.optionsEventName, null)
__uniappx__nativeEventBus.off(this.readyEventName, null)
__uniappx__nativeEventBus.off(this.successEventName, null)
__uniappx__nativeEventBus.off(this.failEventName, null)
// #endif
// #ifdef WEB
window.removeEventListener('resize', this.fixSize)
// #endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,6 @@
uni.$off(this.readyEventName, null);
uni.$off(this.successEventName, null);
uni.$off(this.failEventName, null);
// #ifdef APP-IOS
__uniappx__nativeEventBus.off(this.optionsEventName, null)
__uniappx__nativeEventBus.off(this.readyEventName, null)
__uniappx__nativeEventBus.off(this.successEventName, null)
__uniappx__nativeEventBus.off(this.failEventName, null)
// #endif
},
onResize() {
this.getSystemInfo();
Expand Down

0 comments on commit c0ecc64

Please sign in to comment.