mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 03:58:05 +08:00
fix: modal animation
This commit is contained in:
parent
b0296407cf
commit
9e33ed9db1
@ -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…
Reference in New Issue
Block a user