-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
使用外部引入后,第一次进入时model无法关闭,刷新之后正常 #2595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Modal的显示隐藏都是由visible控制或者Modal.methods提供的方法比如success, destroy控制 |
对不起,Modal第一次进入确实没有响应关闭我设置的事件,关键是没有任何响应,刷新之后Modal正常关闭,我认为是内部出现了问题 |
@Clors1997 提供一下code在codesandbox中 |
|
感谢,修改vue版本后使用正常,vue2.5.2 =》 vue2.6.10。奇怪的是一样的版本使用vendor引入不会出现该bug,ant外部引入有vue版本限制? |
@Clors1997 没有限制. 解决了就把这个issue关闭 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
1.6.4
Environment
[email protected],chrome
Reproduction link
https://www.antdv.com/components/modal-cn/#components-modal-demo-information-modal-dialog
Steps to reproduce
index.html
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/[email protected]/moment.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/antd.min.js"></script>base.conf
externals: {
vue: 'Vue',
'moment': 'moment',
'ant-design-vue': "antd"
},
使用时第一次进入页面无法关闭modal,无论是右上角还是阴影,@cancel编写正确,
刷新之后正常关闭
What is expected?
使用时第一次进入页面能正常关闭modal
What is actually happening?
使用时第一次进入页面无法关闭modal
The text was updated successfully, but these errors were encountered: