From ffdcb1741737513dc0dbc7caad90f76e4b23f08d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E7=99=BB=E5=B1=B1?= Date: Tue, 15 Jul 2025 18:18:01 +0800 Subject: [PATCH] pref : Display style optimization --- components/object/versions.vue | 8 +++++--- i18n/locales/en-US.json | 5 ++++- i18n/locales/zh-CN.json | 5 ++++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/components/object/versions.vue b/components/object/versions.vue index a40dad1..aebfa83 100644 --- a/components/object/versions.vue +++ b/components/object/versions.vue @@ -19,6 +19,7 @@ import { useMessage } from 'naive-ui'; import { GetObjectCommand } from '@aws-sdk/client-s3'; import { getSignedUrl as _getSignedUrl } from '@aws-sdk/s3-request-presigner'; import dayjs from 'dayjs'; +import { NButton } from 'naive-ui'; const props = defineProps<{ bucketName: string; objectKey: string; visible: boolean }>(); const emit = defineEmits(['close', 'preview']); @@ -71,18 +72,19 @@ const columns = [ render(row: any) { return [ h( - 'n-button', + 'NButton', { size: 'small', - style: 'margin-right: 8px;', + style: 'margin-right: 8px;cursor: pointer;', onClick: () => previewVersion(row), }, t('Preview') ), h( - 'n-button', + 'NButton', { size: 'small', + style: 'cursor: pointer;', type: 'primary', onClick: () => downloadVersion(row), }, diff --git a/i18n/locales/en-US.json b/i18n/locales/en-US.json index 965918e..418a29b 100644 --- a/i18n/locales/en-US.json +++ b/i18n/locales/en-US.json @@ -552,5 +552,8 @@ "New user has been created": "New user has been created", "Export": "Export", "Login expired, please login again": "Login expired, please login again", - "Batch allocation policies": "Batch allocation policies" + "Batch allocation policies": "Batch allocation policies", + "Object Versions": "Object Versions", + "VersionId": "VersionId", + "LastModified": "LastModified" } diff --git a/i18n/locales/zh-CN.json b/i18n/locales/zh-CN.json index 022b9bd..f6b84c9 100644 --- a/i18n/locales/zh-CN.json +++ b/i18n/locales/zh-CN.json @@ -642,5 +642,8 @@ "Login expired, please login again": "登录信息已过期,请重新登录", "Batch allocation policies": "批量分配策略", "Add group members": "添加组成员", - "Search User Group": "搜索用户组" + "Search User Group": "搜索用户组", + "Object Versions": "对象版本", + "VersionId": "版本ID", + "LastModified": "最后修改时间" }