refactor: calendar:configureActions

This commit is contained in:
Zeke Zhang 2024-03-07 19:27:53 +08:00
parent d697178f1d
commit 6a9addf518
4 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ test.describe('ReadPrettyFormActionInitializers & CalendarFormActionInitializers
await mockRecord('general', { singleLineText: 'test' });
await nocoPage.goto();
await page.getByTitle('test').click();
await page.getByLabel('schema-initializer-ActionBar-actionInitializers:calendarForm-general').hover();
await page.getByLabel('schema-initializer-ActionBar-calendar:configureActionsForm-general').hover();
await page.getByRole('menuitem', { name: 'Print' }).click();
await page.getByLabel('action-Action-Print-print-general-form').click();
});

View File

@ -441,7 +441,7 @@ export const oneCalenderWithViewAction: PageConfig = {
type: 'void',
version: '2.0',
'x-component': 'CalendarV2.ActionBar',
'x-initializer': 'actionInitializers:calendar',
'x-initializer': 'calendar:configureActions',
'x-component-props': {
style: {
marginBottom: 24,

View File

@ -94,7 +94,7 @@ export const calendarActionInitializers = new CompatibleSchemaInitializer(
{
title: generateNTemplate('Configure actions'),
icon: 'SettingOutlined',
name: 'actionInitializers:calendar',
name: 'calendar:configureActions',
style: { marginLeft: 8 },
items: [
{

View File

@ -41,7 +41,7 @@ export const createCalendarBlockSchema = (options) => {
marginBottom: 24,
},
},
'x-initializer': 'actionInitializers:calendar',
'x-initializer': 'calendar:configureActions',
properties: {},
},
event: {