From 3e9a58e5f834b076848919f96fc0576a2c689b31 Mon Sep 17 00:00:00 2001 From: pianruijie Date: Fri, 23 Sep 2022 16:49:49 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8Ddialog=E3=80=81tr?= =?UTF-8?q?ansfer=E4=BA=8B=E4=BB=B6=E5=8F=98=E9=87=8F[amis-saas-7150]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I8506108ae46c539c352ac115a7361e08d88c9250 --- packages/amis-editor/src/plugin/Dialog.tsx | 26 ++++++++++++++++++++-- packages/amis-editor/src/plugin/Tabs.tsx | 2 +- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/packages/amis-editor/src/plugin/Dialog.tsx b/packages/amis-editor/src/plugin/Dialog.tsx index 09e8f8cec..6d70601a5 100644 --- a/packages/amis-editor/src/plugin/Dialog.tsx +++ b/packages/amis-editor/src/plugin/Dialog.tsx @@ -56,12 +56,34 @@ export class DialogPlugin 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: '弹窗数据' + } + } + } + ] } ]; diff --git a/packages/amis-editor/src/plugin/Tabs.tsx b/packages/amis-editor/src/plugin/Tabs.tsx index 1fe5d3499..812cba788 100644 --- a/packages/amis-editor/src/plugin/Tabs.tsx +++ b/packages/amis-editor/src/plugin/Tabs.tsx @@ -74,7 +74,7 @@ export class TabsPlugin extends BasePlugin { { type: 'object', properties: { - value: { + "event.data.value": { type: 'string', title: '选项卡索引' }