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, current: ctx.service?.data?.meta?.page || 1,
total: count, total: count,
pageSize: 1, pageSize: 1,
showSizeChanger: false,
async onChange(page) { async onChange(page) {
const params = ctx.service?.params?.[0]; const params = ctx.service?.params?.[0];
ctx.service.run({ ...params, page }); ctx.service.run({ ...params, page });

View File

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

View File

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

View File

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

View File

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