From b0d31df615a042c041388c379b321d441871623b Mon Sep 17 00:00:00 2001 From: hsm-lv Date: Wed, 26 Oct 2022 15:57:58 +0800 Subject: [PATCH] =?UTF-8?q?[amis-saas-7150]:=E8=A1=A5=E5=85=85=E6=8A=BD?= =?UTF-8?q?=E5=B1=89=E4=BA=8B=E4=BB=B6=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I33c9cb924b542cd2a2fcc3ddbf5eed95ee10675d --- packages/amis-editor/src/plugin/Drawer.tsx | 26 ++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/packages/amis-editor/src/plugin/Drawer.tsx b/packages/amis-editor/src/plugin/Drawer.tsx index d89768859..162de50dc 100644 --- a/packages/amis-editor/src/plugin/Drawer.tsx +++ b/packages/amis-editor/src/plugin/Drawer.tsx @@ -57,12 +57,34 @@ export class DrawerPlugin extends BasePlugin { { eventName: 'confirm', eventLabel: '确认', - description: '点击抽屉确认按钮时触发' + description: '点击抽屉确认按钮时触发', + dataSchema: [ + { + type: 'object', + properties: { + 'event.data': { + type: 'object', + title: '抽屉数据' + } + } + } + ] }, { eventName: 'cancel', eventLabel: '取消', - description: '点击抽屉取消按钮时触发' + description: '点击抽屉取消按钮时触发', + dataSchema: [ + { + type: 'object', + properties: { + 'event.data': { + type: 'object', + title: '抽屉数据' + } + } + } + ] } ];