From e20be2670e40be2e778155d4666a4be85be8a460 Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Thu, 7 Mar 2024 19:00:29 +0800 Subject: [PATCH] refactor: assignFieldValuesForm:configureFields --- .../client/src/schema-component/antd/action/Action.Designer.tsx | 2 +- .../schema-initializer/buttons/CustomFormItemInitializers.tsx | 2 +- .../src/client/__e2e__/schemaSettings.test.ts | 2 +- .../src/client/instruction/SchemaConfig.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx b/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx index e0535e3ceb..b20070c312 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx @@ -139,7 +139,7 @@ export function AssignedFieldValues() { type: 'void', 'x-uid': uid(), 'x-component': 'Grid', - 'x-initializer': 'fieldInitializers:customFormItem', + 'x-initializer': 'assignFieldValuesForm:configureFields', }; const tips = { 'customize:update': t( diff --git a/packages/core/client/src/schema-initializer/buttons/CustomFormItemInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/CustomFormItemInitializers.tsx index 2497454b8c..e224dd8726 100644 --- a/packages/core/client/src/schema-initializer/buttons/CustomFormItemInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/CustomFormItemInitializers.tsx @@ -48,7 +48,7 @@ export const customFormItemInitializers_deprecated = new CompatibleSchemaInitial export const customFormItemInitializers = new CompatibleSchemaInitializer( { - name: 'fieldInitializers:customFormItem', + name: 'assignFieldValuesForm:configureFields', wrap: gridRowColWrap, icon: 'SettingOutlined', title: '{{t("Configure fields")}}', diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaSettings.test.ts index 8060f19f2b..af5097940d 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaSettings.test.ts @@ -18,7 +18,7 @@ test.describe('data will be updated && Assign field values && after successful s await page.getByRole('option', { name: 'All' }).click(); //字段赋值 await page.getByRole('menuitem', { name: 'Assign field values' }).click(); - await page.getByLabel('schema-initializer-Grid-fieldInitializers:customFormItem-general').click(); + await page.getByLabel('schema-initializer-Grid-assignFieldValuesForm:configureFields-general').click(); await page.getByRole('menuitem', { name: 'Single select' }).click(); await page.getByTestId('select-single').click(); await page.getByText('option3').click(); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/SchemaConfig.tsx b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/SchemaConfig.tsx index 081cd857f6..96fa9d6b65 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/SchemaConfig.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/SchemaConfig.tsx @@ -268,7 +268,7 @@ function AssignedFieldValues() { fieldSchema?.['x-action-settings']?.assignedValues?.schema ?? { type: 'void', 'x-component': 'Grid', - 'x-initializer': 'fieldInitializers:customFormItem', + 'x-initializer': 'assignFieldValuesForm:configureFields', properties: {}, }, );