fix: modal animation

pull/1886/head
tangjinzhou 5 years ago
parent b0296407cf
commit 9e33ed9db1

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

Loading…
Cancel
Save