diff --git a/packages/amis-editor/src/plugin/Form/InputImage.tsx b/packages/amis-editor/src/plugin/Form/InputImage.tsx index c04a7f62d..5a9ef9a96 100644 --- a/packages/amis-editor/src/plugin/Form/InputImage.tsx +++ b/packages/amis-editor/src/plugin/Form/InputImage.tsx @@ -41,6 +41,7 @@ export class ImageControlPlugin extends BasePlugin { } ] }; + notRenderFormZone = true; // 事件定义 events: RendererPluginEvent[] = [ @@ -123,7 +124,7 @@ export class ImageControlPlugin extends BasePlugin { } ]; - panelTitle = '图片上传'; + panelJustify = true; panelBodyCreator = (context: BaseEventContext) => { diff --git a/packages/amis-editor/src/plugin/Timeline.tsx b/packages/amis-editor/src/plugin/Timeline.tsx index 95d1bf4f5..d7d8cb933 100644 --- a/packages/amis-editor/src/plugin/Timeline.tsx +++ b/packages/amis-editor/src/plugin/Timeline.tsx @@ -1,11 +1,10 @@ import React from 'react'; -import {getEventControlConfig} from '../util'; +import {getEventControlConfig} from '../renderer/event-control/helper'; import {tipedLabel} from '../component/BaseControl'; import { registerEditorPlugin, getSchemaTpl } from 'amis-editor-core'; -import { RendererEvent } from 'amis-editor-comp/dist/renderers/event-action'; import {BasePlugin, BaseEventContext} from 'amis-editor-core'; export class TimelinePlugin extends BasePlugin { @@ -33,7 +32,7 @@ export class TimelinePlugin extends BasePlugin { }; // TODO 事件定义 - events: RendererEvent[] = []; + // events = []; panelTitle = '时间轴'; panelJustify = true;