[amis-saas-6670]&[amis-saas-6510]:关闭弹窗不需要选择类型

Change-Id: I0c6b79532985755a95710bb70013dc40d5e1a607
This commit is contained in:
hsm-lv 2022-09-08 21:18:20 +08:00
parent 979e3509d3
commit 73ee4ea37a
2 changed files with 26 additions and 36 deletions

View File

@ -115,16 +115,6 @@ export class TimelinePlugin extends BasePlugin {
]
}
])
},
{
title: '事件',
className: 'p-none',
body: [
getSchemaTpl('eventControl',{
name: 'onEvent',
...getEventControlConfig(this.manager, context)
})
]
}
]);
}

View File

@ -237,32 +237,32 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
actionLabel: '关闭弹窗',
actionType: 'closeDialog',
description: '关闭当前弹窗', // 或者关闭指定弹窗
schema: getArgsWrapper({
type: 'wrapper',
className: 'p-none',
body: [
{
type: 'radios',
label: '类型',
name: 'groupType',
mode: 'horizontal',
value: 'closeDialog',
required: true,
pipeIn: defaultValue('closeDialog'),
options: [
{
label: '弹窗',
value: 'closeDialog'
},
{
label: '抽屉',
value: 'closeDrawer'
}
],
visibleOn: 'data.actionType === "closeDialog"'
}
]
})
// schema: getArgsWrapper({
// type: 'wrapper',
// className: 'p-none',
// body: [
// {
// type: 'radios',
// label: '类型',
// name: 'groupType',
// mode: 'horizontal',
// value: 'closeDialog',
// required: true,
// pipeIn: defaultValue('closeDialog'),
// options: [
// {
// label: '弹窗',
// value: 'closeDialog'
// },
// {
// label: '抽屉',
// value: 'closeDrawer'
// }
// ],
// visibleOn: 'data.actionType === "closeDialog"'
// }
// ]
// })
},
// 暂时下掉,看后面具体设计
// {