同步功能更新

This commit is contained in:
Yeomai committed 2026-10-18 16:50:55 +08:00
1 parent 21f0dc2830
commit 1d2d16e710
11 files changed
+268 -2

No files matched your search

@@ -14,11 +14,13 @@ const props = withDefaults(defineProps<{
loading?: boolean
showBatchDelete?: boolean
showBatchTags?: boolean
showBatchSync?: boolean
}>(), {
selectedCount: 0,
loading: false,
showBatchDelete: true,
showBatchTags: false,
showBatchSync: false,
tagIds: () => [],
tags: () => [],
tagMode: 'or',
@@ -37,6 +39,7 @@ const emit = defineEmits<{
'reset': []
'batch-delete': []
'batch-tags': []
'batch-sync': []
'manage-tags': []
}>()
@@ -155,6 +158,20 @@ function viewButtonClass(active: boolean) {
{{ t('stats.batchDelete') }}
</UButton>
<UButton
v-if="showBatchSync"
type="button"
icon="i-lucide-cloud-upload"
size="sm"
variant="outline"
color="neutral"
class="shrink-0"
:disabled="!selectedCount || loading"
@click="emit('batch-sync')"
>
{{ t('storage.backup.syncSelectedAction') }}
</UButton>
<div
class="inline-flex shrink-0 overflow-hidden rounded-md border border-default"
role="group"