From c0b8fa27ec440a24ac9e15c2efb51b5141d68027 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Sun, 18 Feb 2024 14:14:18 +0800 Subject: [PATCH] fix: detail block should not support pageSizeChanger (#3515) * fix: detail block should not support pageSizeChanger * style: delete collection --- packages/core/client/src/block-provider/hooks/index.ts | 1 + .../Configuration/DeleteCollectionAction.tsx | 7 +++++-- packages/core/client/src/locale/en_US.json | 1 + packages/core/client/src/locale/ja_JP.json | 1 + packages/core/client/src/locale/zh-CN.json | 1 + 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/core/client/src/block-provider/hooks/index.ts b/packages/core/client/src/block-provider/hooks/index.ts index 5122f6928..c59fe7ddb 100644 --- a/packages/core/client/src/block-provider/hooks/index.ts +++ b/packages/core/client/src/block-provider/hooks/index.ts @@ -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 }); diff --git a/packages/core/client/src/collection-manager/Configuration/DeleteCollectionAction.tsx b/packages/core/client/src/collection-manager/Configuration/DeleteCollectionAction.tsx index b3e7a04f8..aace9da24 100644 --- a/packages/core/client/src/collection-manager/Configuration/DeleteCollectionAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/DeleteCollectionAction.tsx @@ -92,7 +92,7 @@ export const DeleteCollectionAction = (props) => { return ( - {t('Delete record')} + {t('Delete collection')} ); }; @@ -119,7 +119,7 @@ export const DeleteCollectionAction = (props) => { 'x-component': 'Action.Modal', 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', + }, }, }, }, diff --git a/packages/core/client/src/locale/en_US.json b/packages/core/client/src/locale/en_US.json index 595e78cbc..c66d8ba0d 100644 --- a/packages/core/client/src/locale/en_US.json +++ b/packages/core/client/src/locale/en_US.json @@ -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", diff --git a/packages/core/client/src/locale/ja_JP.json b/packages/core/client/src/locale/ja_JP.json index aed9a31ac..d075301d0 100644 --- a/packages/core/client/src/locale/ja_JP.json +++ b/packages/core/client/src/locale/ja_JP.json @@ -171,6 +171,7 @@ "Before change": "変更前", "After change": "変更後", "Delete record": "レコード削除", + "Delete collection":"データテーブルの削除", "Create collection": "コレクションの作成", "Collection display name": "コレクション名", "Collection name": "コレクション識別子", diff --git a/packages/core/client/src/locale/zh-CN.json b/packages/core/client/src/locale/zh-CN.json index 81f7e0eb4..465dd102e 100644 --- a/packages/core/client/src/locale/zh-CN.json +++ b/packages/core/client/src/locale/zh-CN.json @@ -210,6 +210,7 @@ "Before change": "变更前", "After change": "变更后", "Delete record": "删除数据", + "Delete collection":"删除数据表", "Create collection": "创建数据表", "Collection display name": "数据表名称", "Collection name": "数据表标识",