Feature(custom): add build in alist support and fix gallery bug

ISSUES CLOSED: #218
This commit is contained in:
Kuingsmile
2024-07-03 20:56:49 +08:00
parent 00393995b0
commit 875d034f4e
4 changed files with 81 additions and 2 deletions

View File

@@ -431,6 +431,7 @@ function handleDetectShiftKey(event: KeyboardEvent) {
const filterList = computed(() => {
return getGallery()
})
console.log(filterList)
const isAllSelected = computed(() => {
const values = Object.values(choosedList)
@@ -474,7 +475,7 @@ function getGallery(): IGalleryItem[] {
.map(item => {
return {
...item,
src: item.imgUrl || '',
src: item.galleryPath || item.imgUrl || '',
key: item.id || `${Date.now()}`,
intro: item.fileName || ''
}
@@ -483,7 +484,7 @@ function getGallery(): IGalleryItem[] {
return images.value.map(item => {
return {
...item,
src: item.imgUrl || '',
src: item.galleryPath || item.imgUrl || '',
key: item.id || `${Date.now()}`,
intro: item.fileName || ''
}