perf: iOS打开键盘时看不见通知的情况

This commit is contained in:
Pang 2024-01-18 18:36:09 +08:00
parent aa666a9662
commit a142f52113

View File

@ -3,6 +3,7 @@
<div <div
class="mobile-notification" class="mobile-notification"
:class="{show}" :class="{show}"
:style="notifyStyle"
@click.stop="onClick" @click.stop="onClick"
@touchstart="onTouchstart" @touchstart="onTouchstart"
@touchmove="onTouchmove"> @touchmove="onTouchmove">
@ -35,6 +36,14 @@ export default {
this.show = false; this.show = false;
}, },
computed: {
notifyStyle() {
return {
marginTop: this.$store.state.windowScrollY + 'px',
};
},
},
methods: { methods: {
open(config) { open(config) {
if (!$A.isJson(config)) { if (!$A.isJson(config)) {