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