amis-saas-7247 [Bug] 测试:【组件】支持事件的组件下添加弹窗动作配置,属性默认配置属性未开启;

Change-Id: I960c44d526b2c86e600d452b9fe2e021f6b58dbf
This commit is contained in:
jiatianqi 2022-09-25 15:44:55 +08:00
parent 43cacd93b1
commit 7ade25e19f
3 changed files with 16 additions and 5 deletions

View File

@ -147,7 +147,10 @@ export class ActionPlugin extends BasePlugin {
name: 'dialog',
pipeIn: defaultValue({
title: '弹框标题',
body: '<p>对,你刚刚点击了</p>'
body: '<p>对,你刚刚点击了</p>',
showCloseButton: true,
showErrorMsg: true,
showLoading: true
}),
asFormItem: true,
children: ({value, onChange, data}: any) =>

View File

@ -181,7 +181,10 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
required: true,
pipeIn: defaultValue({
title: '弹框标题',
body: '<p>对,你刚刚点击了</p>'
body: '<p>对,你刚刚点击了</p>',
showCloseButton: true,
showErrorMsg: true,
showLoading: true
}),
asFormItem: true,
visibleOn: 'data.groupType === "dialog"',

View File

@ -437,8 +437,10 @@ export const getEventLabel = (events: RendererPluginEvent[], name: string) =>
export const getEventDesc = (events: RendererPluginEvent[], name: string) =>
events.find(item => item.eventName === name)?.description;
export const getEventStrongDesc = (events: RendererPluginEvent[], name: string) =>
events.find(item => item.eventName === name)?.strongDesc;
export const getEventStrongDesc = (
events: RendererPluginEvent[],
name: string
) => events.find(item => item.eventName === name)?.strongDesc;
// 判断插件动作中是否存在指定动作
export const hasActionType = (
@ -742,7 +744,10 @@ export const getOldActionSchema = (
name: 'dialog',
pipeIn: defaultValue({
title: '弹框标题',
body: '<p>对,你刚刚点击了</p>'
body: '<p>对,你刚刚点击了</p>',
showCloseButton: true,
showErrorMsg: true,
showLoading: true
}),
asFormItem: true,
children: ({value, onChange, data}: any) =>