mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
perf: 优化app等比显示
This commit is contained in:
parent
bc25f5dfdf
commit
d553f77533
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user