From 7556cc132bc419bf0ed08e85b076ac849bb8ed4d Mon Sep 17 00:00:00 2001 From: overtrue Date: Sat, 29 Nov 2025 23:47:42 +0800 Subject: [PATCH] style: fix prettier formatting in object list component --- components/object/list.vue | 71 +++++++++++++++++++++++++------------- 1 file changed, 47 insertions(+), 24 deletions(-) diff --git a/components/object/list.vue b/components/object/list.vue index 9786e1e..36ef206 100644 --- a/components/object/list.vue +++ b/components/object/list.vue @@ -22,7 +22,13 @@ {{ t('Upload File') }}/{{ t('Folder') }} - @@ -37,7 +43,12 @@ - +
- - + + @@ -209,8 +231,9 @@ const fetchObjects = async (): Promise => { } const asyncDataCacheKey = computed(() => { - return `objects-${bucketName.value}-${prefix.value}-${continuationToken.value || 'start'}-${searchTerm.value || 'all'}-${showDeleted.value ? 'withDeleted' : 'withoutDeleted' - }` + return `objects-${bucketName.value}-${prefix.value}-${continuationToken.value || 'start'}-${searchTerm.value || 'all'}-${ + showDeleted.value ? 'withDeleted' : 'withoutDeleted' + }` }) const displayKey = (key: string) => { @@ -296,14 +319,14 @@ const columns = computed[]>(() => { h('div', { class: 'flex items-center gap-2' }, [ row.original.type === 'object' ? h( - Button, - { - variant: 'outline', - size: 'sm', - onClick: () => downloadFile(row.original.Key), - }, - () => [h(Icon, { name: 'ri:download-cloud-2-line', class: 'size-4' }), h('span', t('Download'))] - ) + Button, + { + variant: 'outline', + size: 'sm', + onClick: () => downloadFile(row.original.Key), + }, + () => [h(Icon, { name: 'ri:download-cloud-2-line', class: 'size-4' }), h('span', t('Download'))] + ) : null, h( Button,