perf: 优化app等比显示

This commit is contained in:
kuaifan 2024-03-13 11:34:27 +09:00
parent bc25f5dfdf
commit d553f77533
2 changed files with 10 additions and 9 deletions

View File

@ -232,6 +232,12 @@ export default {
this.$store.state.formLabelPosition = windowWidth > 576 ? 'right' : 'top' this.$store.state.formLabelPosition = windowWidth > 576 ? 'right' : 'top'
this.$store.state.formLabelWidth = windowWidth > 576 ? 'auto' : '' this.$store.state.formLabelWidth = windowWidth > 576 ? 'auto' : ''
$A.eeuiAppSendMessage({
action: 'windowSize',
width: windowWidth,
height: windowHeight,
});
}, },
windowScrollListener() { windowScrollListener() {
@ -317,11 +323,6 @@ export default {
} else { } else {
this.autoTheme() this.autoTheme()
} }
$A.eeuiAppSendMessage({
action: 'outerSize',
outerWidth: window.outerWidth,
outerHeight: window.outerHeight,
});
} }
// //
window.__onCreateTarget = (url) => { window.__onCreateTarget = (url) => {
@ -400,9 +401,9 @@ export default {
} }
// //
$A.eeuiAppSendMessage({ $A.eeuiAppSendMessage({
action: 'outerSize', action: 'windowSize',
outerWidth: window.outerWidth, width: this.windowWidth,
outerHeight: window.outerHeight, height: this.windowHeight,
}); });
// //
$A.eeuiAppSetHapticBackEnabled(false) $A.eeuiAppSetHapticBackEnabled(false)

@ -1 +1 @@
Subproject commit e02b6760cf3db26c77fb2b8db16446be5feef638 Subproject commit a4db4bd839defbcb90aed24346694c1888456188