mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-15 09:21:13 +08:00
amis-saas-7247 [Bug] 测试:【组件】支持事件的组件下添加弹窗动作配置,属性默认配置属性未开启;
Change-Id: I960c44d526b2c86e600d452b9fe2e021f6b58dbf
This commit is contained in:
parent
43cacd93b1
commit
7ade25e19f
@ -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) =>
|
||||
|
@ -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"',
|
||||
|
@ -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) =>
|
||||
|
Loading…
Reference in New Issue
Block a user