We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b029640 commit 9e33ed9Copy full SHA for 9e33ed9
components/modal/Modal.jsx
@@ -33,7 +33,7 @@ const getClickPosition = e => {
33
34
// 只有点击事件支持从鼠标位置动画展开
35
if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
36
- addEventListener(document.documentElement, 'click', getClickPosition);
+ addEventListener(document.documentElement, 'click', getClickPosition, true);
37
}
38
39
function noop() {}
@@ -113,10 +113,7 @@ export default {
113
},
114
watch: {
115
visible(val) {
116
- // 点击位置动画 getClickPosition 在 render 后执行,需要延迟触发render
117
- setTimeout(() => {
118
- this.sVisible = val;
119
- });
+ this.sVisible = val;
120
121
122
inject: {
0 commit comments