fix: modal animation

This commit is contained in:
tangjinzhou 2020-03-15 13:40:58 +08:00
parent b0296407cf
commit 9e33ed9db1

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;
});
this.sVisible = val;
},
},
inject: {