From 0fe03c77ef9fbe112c7bb7fe47a4d45feffc195d Mon Sep 17 00:00:00 2001 From: jiatianqi Date: Thu, 11 Aug 2022 20:08:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8Dtimeline=20=E5=92=8C=20in?= =?UTF-8?q?put-image=20=E5=B0=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I33b97f4ef74bcd0b6f8c7ee5c544046c708b4632 --- packages/amis-editor/src/plugin/Form/InputImage.tsx | 3 ++- packages/amis-editor/src/plugin/Timeline.tsx | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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;