Skip to content

使用外部引入后,第一次进入时model无法关闭,刷新之后正常 #2595

@Clors1997

Description

@Clors1997
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.6.4

Environment

vue@2.5.2,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/vue@2.5.2/dist/vue.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/moment@2.27.0/moment.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/ant-design-vue@1.6.4/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions