mirror of
https://github.com/rustfs/console.git
synced 2026-09-19 09:52:25 +08:00
pref : Display style optimization
This commit is contained in:
@@ -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),
|
||||
},
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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": "最后修改时间"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user