refactor: assignFieldValuesForm:configureFields

This commit is contained in:
Zeke Zhang 2024-03-07 19:00:29 +08:00
parent eff813a184
commit e20be2670e
4 changed files with 4 additions and 4 deletions

View File

@ -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(

View File

@ -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")}}',

View File

@ -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();

View File

@ -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: {},
},
);