mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-17 06:32:51 +00:00
perf: iOS打开键盘时看不见通知的情况
This commit is contained in:
parent
aa666a9662
commit
a142f52113
@ -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)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user