Skip to content

Commit

Permalink
🔨修复图片点击关闭问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin-Jiang committed Mar 11, 2024
1 parent 336a873 commit 17def51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,10 @@ declare module 'vue' {
ImageViewer: typeof import('./src/components/ImageViewer/ImageViewer.vue')['default']
MessageContent: typeof import('./src/components/MessageContent.vue')['default']
NA: typeof import('naive-ui')['NA']
NAlert: typeof import('naive-ui')['NAlert']
NBadge: typeof import('naive-ui')['NBadge']
NButton: typeof import('naive-ui')['NButton']
NCard: typeof import('naive-ui')['NCard']
NCarousel: typeof import('naive-ui')['NCarousel']
NCollapse: typeof import('naive-ui')['NCollapse']
NCollapseItem: typeof import('naive-ui')['NCollapseItem']
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
NDivider: typeof import('naive-ui')['NDivider']
NDrawer: typeof import('naive-ui')['NDrawer']
Expand All @@ -32,9 +29,6 @@ declare module 'vue' {
NElement: typeof import('naive-ui')['NElement']
NEllipsis: typeof import('naive-ui')['NEllipsis']
NEmpty: typeof import('naive-ui')['NEmpty']
NForm: typeof import('naive-ui')['NForm']
NFormItem: typeof import('naive-ui')['NFormItem']
NFormItemGi: typeof import('naive-ui')['NFormItemGi']
NGi: typeof import('naive-ui')['NGi']
NGlobalStyle: typeof import('naive-ui')['NGlobalStyle']
NGrid: typeof import('naive-ui')['NGrid']
Expand All @@ -52,7 +46,6 @@ declare module 'vue' {
NModal: typeof import('naive-ui')['NModal']
NPopconfirm: typeof import('naive-ui')['NPopconfirm']
NRadio: typeof import('naive-ui')['NRadio']
NRadioButton: typeof import('naive-ui')['NRadioButton']
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
NRate: typeof import('naive-ui')['NRate']
NScrollbar: typeof import('naive-ui')['NScrollbar']
Expand Down
2 changes: 1 addition & 1 deletion src/components/ImageViewer/ImageModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ onUpdated(() => {
<Transition :name="animation" mode="out-in">
<!-- @vue-ignore-error -->
<img :key="props.idx" :src="props.src" :style="[picStyle, transformStyle, loadingStyle]" draggable="false"
@error="() => { loadError = true; load = true }" @load="() => load = true" />
@error="() => { loadError = true; load = true }" @load="() => load = true" @click.stop/>
</Transition>
<n-empty v-if="loadError" description="加载不出来了啦" style="--n-text-color: #ffffff">
<template #icon>
Expand Down

0 comments on commit 17def51

Please sign in to comment.