mirror of https://gitee.com/xiaonuobase/snowy
【更新】关闭时销毁 Modal 里的子元素
【更新】关闭时销毁 Modal 里的子元素 Signed-off-by: bubu <8096927+bubu-space@user.noreply.gitee.com>pull/255/head
parent
6414fd7a91
commit
6539b501ee
|
@ -61,7 +61,7 @@
|
|||
</a-upload>
|
||||
|
||||
<!-- 文件预览 -->
|
||||
<a-modal :open="previewVisible" :title="previewTitle" :footer="null" @cancel="handleCancel">
|
||||
<a-modal :open="previewVisible" :title="previewTitle" :footer="null" :destroyOnClose="true" @cancel="handleCancel">
|
||||
<template v-if="props.uploadMode === 'image'">
|
||||
<img alt="example" style="width: 100%" :src="previewObj" />
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue