mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-06 20:42:57 +08:00
@@ -102,7 +102,7 @@
|
|||||||
<div class="sort-dropdown">
|
<div class="sort-dropdown">
|
||||||
<button class="sort-button" :class="{ active: sortDropdownOpen }" @click="toggleSortDropdown($event)">
|
<button class="sort-button" :class="{ active: sortDropdownOpen }" @click="toggleSortDropdown($event)">
|
||||||
<SortAscIcon :size="14" />
|
<SortAscIcon :size="14" />
|
||||||
{{ t('pages.gallery.sort') }}
|
{{ t(`pages.gallery.sortBy.${currentSortField}`) }}
|
||||||
<ChevronDownIcon :size="14" />
|
<ChevronDownIcon :size="14" />
|
||||||
</button>
|
</button>
|
||||||
<div v-show="sortDropdownOpen" class="sort-options">
|
<div v-show="sortDropdownOpen" class="sort-options">
|
||||||
@@ -565,6 +565,7 @@ const sortDropdownOpen = ref(false)
|
|||||||
const showFormatInfo = ref(false)
|
const showFormatInfo = ref(false)
|
||||||
const viewMode = ref<'list' | 'grid'>('grid')
|
const viewMode = ref<'list' | 'grid'>('grid')
|
||||||
const componentKey = ref(0)
|
const componentKey = ref(0)
|
||||||
|
const currentSortField = ref<'name' | 'time' | 'ext' | 'check'>('name')
|
||||||
const itemHeight = 300
|
const itemHeight = 300
|
||||||
const gridBreakpoints = [
|
const gridBreakpoints = [
|
||||||
{ min: 0, cols: 1 },
|
{ min: 0, cols: 1 },
|
||||||
@@ -1269,13 +1270,13 @@ async function multiCopy() {
|
|||||||
await $$db.updateById(item.id, {
|
await $$db.updateById(item.id, {
|
||||||
shortUrl: result[1]
|
shortUrl: result[1]
|
||||||
})
|
})
|
||||||
|
updateGallery()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.electron.clipboard.writeText(copyString.join('\n'))
|
window.electron.clipboard.writeText(copyString.join('\n'))
|
||||||
clearChoosedList()
|
clearChoosedList()
|
||||||
message.success(t('pages.gallery.copyLinkSucceed'))
|
message.success(t('pages.gallery.copyLinkSucceed'))
|
||||||
updateGallery()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1299,6 +1300,7 @@ function handleUseShortUrlChange(event: Event) {
|
|||||||
|
|
||||||
function sortFile(type: 'name' | 'time' | 'ext' | 'check') {
|
function sortFile(type: 'name' | 'time' | 'ext' | 'check') {
|
||||||
sortDropdownOpen.value = false
|
sortDropdownOpen.value = false
|
||||||
|
currentSortField.value = type
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'name':
|
case 'name':
|
||||||
fileSortNameReverse.value = !fileSortNameReverse.value
|
fileSortNameReverse.value = !fileSortNameReverse.value
|
||||||
|
|||||||
Reference in New Issue
Block a user