Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

fix: the attachment list image is not updated after paging #496

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Attachment/AttachmentSelectModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<span v-if="!isImage(item)" class="attachments-group-item-type">{{ item.suffix }}</span>
<span
v-else
:style="`background-image:url(${encodeURI(item.thumbPath)})`"
:style="{ backgroundImage: `url('${encodeURI(item.thumbPath)}')` }"
class="attachments-group-item-img"
loading="lazy"
/>
Expand Down
24 changes: 12 additions & 12 deletions src/views/attachment/AttachmentList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@
>
<template #renderItem="item, index">
<a-list-item
@mouseenter="$set(item, 'hover', true)"
@mouseleave="$set(item, 'hover', false)"
:key="index"
@click="handleItemClick(item)"
@mouseenter="$set(item, 'hover', true)"
@mouseleave="$set(item, 'hover', false)"
@contextmenu.prevent="handleContextMenu($event, item)"
>
<div
Expand All @@ -85,7 +85,7 @@
<span v-if="!isImage(item)" class="attachments-group-item-type">{{ item.suffix }}</span>
<span
v-else
:style="`background-image:url(${encodeURI(item.thumbPath)})`"
:style="{ backgroundImage: `url('${encodeURI(item.thumbPath)}')` }"
class="attachments-group-item-img"
loading="lazy"
/>
Expand All @@ -99,26 +99,26 @@
</a-card-meta>
<a-icon
v-show="!isItemSelect(item) && item.hover"
type="plus-circle"
theme="twoTone"
class="absolute top-1 right-2 font-bold cursor-pointer transition-all"
:style="{ fontSize: '18px', color: 'rgb(37 99 235)' }"
class="absolute top-1 right-2 font-bold cursor-pointer transition-all"
theme="twoTone"
type="plus-circle"
@click.stop="handleSelect(item)"
/>
<a-icon
v-show="isItemSelect(item)"
type="check-circle"
theme="twoTone"
class="absolute top-1 right-2 font-bold cursor-pointer transition-all"
:style="{ fontSize: '18px', color: 'rgb(37 99 235)' }"
class="absolute top-1 right-2 font-bold cursor-pointer transition-all"
theme="twoTone"
type="check-circle"
/>
<a-icon
v-show="item.hover && list.selected.length > 0"
type="profile"
theme="twoTone"
:style="{ fontSize: '18px' }"
class="absolute top-1 left-2 font-bold cursor-pointer transition-all"
theme="twoTone"
type="profile"
@click.stop="handleOpenDetail(item)"
:style="{ fontSize: '18px' }"
/>
</div>
</a-list-item>
Expand Down
2 changes: 1 addition & 1 deletion src/views/sheet/independent/PhotoList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
>
<div class="photo-thumb photos-group-item">
<span
:style="`background-image:url(${encodeURI(item.thumbnail)})`"
:style="{ backgroundImage: `url('${encodeURI(item.thumbnail)}')` }"
class="photos-group-item-img"
loading="lazy"
/>
Expand Down