pref : Display style optimization

This commit is contained in:
马登山
2025-07-15 18:18:01 +08:00
parent 0448b84001
commit ffdcb17417
3 changed files with 13 additions and 5 deletions
+5 -3
View File
@@ -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),
},
+4 -1
View File
@@ -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"
}
+4 -1
View File
@@ -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": "最后修改时间"
}