mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 14:26:36 +00:00
refactor: assignFieldValuesForm:configureFields
This commit is contained in:
parent
eff813a184
commit
e20be2670e
@ -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(
|
||||
|
@ -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")}}',
|
||||
|
@ -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();
|
||||
|
@ -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: {},
|
||||
},
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user