Browse Source

fix: modal animation

pull/1886/head
tangjinzhou 5 years ago
parent
commit
9e33ed9db1
  1. 7
      components/modal/Modal.jsx

7
components/modal/Modal.jsx

@ -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: {

Loading…
Cancel
Save