From 2b22970339540b9eb813ecfde0f165532105334c Mon Sep 17 00:00:00 2001 From: lvxiaojiao Date: Mon, 1 Jul 2024 15:52:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=8A=A8=E4=BD=9C=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=9D=A2=E6=9D=BFreload=E5=8A=A8=E4=BD=9C=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E9=80=89=E6=8B=A9crud2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-editor/src/plugin/CRUD2/BaseCRUD.tsx | 5 +++++ packages/amis-editor/src/renderer/event-control/helper.tsx | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/amis-editor/src/plugin/CRUD2/BaseCRUD.tsx b/packages/amis-editor/src/plugin/CRUD2/BaseCRUD.tsx index bccd44aff..d73d2ce44 100644 --- a/packages/amis-editor/src/plugin/CRUD2/BaseCRUD.tsx +++ b/packages/amis-editor/src/plugin/CRUD2/BaseCRUD.tsx @@ -153,6 +153,11 @@ export class BaseCRUDPlugin extends BasePlugin { actionLabel: '停止自动刷新', description: '停止自动刷新' }, + { + actionType: 'reload', + actionLabel: '重新加载', + description: '触发组件数据刷新并重新渲染' + }, ...(actions || []) ], 'actionType' diff --git a/packages/amis-editor/src/renderer/event-control/helper.tsx b/packages/amis-editor/src/renderer/event-control/helper.tsx index e26b74468..cefe1d81c 100644 --- a/packages/amis-editor/src/renderer/event-control/helper.tsx +++ b/packages/amis-editor/src/renderer/event-control/helper.tsx @@ -73,7 +73,8 @@ export const DATA_CONTAINER = [ 'crud', 'page', 'app', - 'chart' + 'chart', + 'crud2' ]; const MSG_TYPES: {[key: string]: string} = {