Unverified Commit 21cd85f3 by 言肆 Committed by GitHub

Merge pull request #81 from zkwolf/zk-antd-pro

fix:  close popover modal, the loadding logo show and disappear
parents b545d796 e8365e8b
<template>
<a-popover
v-model="visible"
trigger="click"
placement="bottomRight"
:autoAdjustOverflow="true"
......@@ -50,19 +51,21 @@ export default {
name: 'HeaderNotice',
data () {
return {
loadding: false
loadding: false,
visible: false
}
},
methods: {
fetchNotice () {
if (this.loadding) {
if (!this.visible) {
this.loadding = true
setTimeout(() => {
this.loadding = false
}, 2000)
} else {
this.loadding = false
return
}
this.loadding = true
setTimeout(() => {
this.loadding = false
}, 2000)
this.visible = !this.visible
}
}
}
......@@ -82,4 +85,4 @@ export default {
vertical-align: initial;
}
}
</style>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment