fix: detail block should not support pageSizeChanger (#3515)

* fix: detail block should not support pageSizeChanger

* style: delete collection
This commit is contained in:
katherinehhh 2024-02-18 14:14:18 +08:00 committed by GitHub
parent 202edc8c15
commit c0b8fa27ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 9 additions and 2 deletions

View File

@ -985,6 +985,7 @@ export const useDetailsPaginationProps = () => {
current: ctx.service?.data?.meta?.page || 1,
total: count,
pageSize: 1,
showSizeChanger: false,
async onChange(page) {
const params = ctx.service?.params?.[0];
ctx.service.run({ ...params, page });

View File

@ -92,7 +92,7 @@ export const DeleteCollectionAction = (props) => {
return (
<span>
<ExclamationCircleFilled style={{ color: '#faad14', marginRight: '12px', fontSize: '22px' }} />
<span style={{ fontSize: '19px' }}>{t('Delete record')}</span>
<span style={{ fontSize: '19px' }}>{t('Delete collection')}</span>
</span>
);
};
@ -119,7 +119,7 @@ export const DeleteCollectionAction = (props) => {
'x-component': 'Action.Modal',
title: <Title />,
'x-component-props': {
width: 500,
width: 520,
getContainer: '{{ getContainer }}',
className: css`
.ant-modal-body {
@ -163,6 +163,9 @@ export const DeleteCollectionAction = (props) => {
'x-component-props': {
type: 'primary',
useAction: '{{ useDestroyCollectionAction }}',
style: {
marginLeft: '8px',
},
},
},
},

View File

@ -200,6 +200,7 @@
"Before change": "Before change",
"After change": "After change",
"Delete record": "Delete record",
"Delete collection":"Delete collection",
"Create collection": "Create collection",
"Collection display name": "Collection display name",
"Collection name": "Collection name",

View File

@ -171,6 +171,7 @@
"Before change": "変更前",
"After change": "変更後",
"Delete record": "レコード削除",
"Delete collection":"データテーブルの削除",
"Create collection": "コレクションの作成",
"Collection display name": "コレクション名",
"Collection name": "コレクション識別子",

View File

@ -210,6 +210,7 @@
"Before change": "变更前",
"After change": "变更后",
"Delete record": "删除数据",
"Delete collection":"删除数据表",
"Create collection": "创建数据表",
"Collection display name": "数据表名称",
"Collection name": "数据表标识",