fix: modal animation

pull/1886/head
tangjinzhou 2020-03-15 13:40:58 +08:00
parent b0296407cf
commit 9e33ed9db1
1 changed files with 2 additions and 5 deletions

View File

@ -33,7 +33,7 @@ const getClickPosition = e => {
//
if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
addEventListener(document.documentElement, 'click', getClickPosition);
addEventListener(document.documentElement, 'click', getClickPosition, true);
}
function noop() {}
@ -113,10 +113,7 @@ export default {
},
watch: {
visible(val) {
// getClickPosition render render
setTimeout(() => {
this.sVisible = val;
});
},
},
inject: {