Skip to content

Commit

Permalink
#304 删除子表子表记录时,同时抛出主表记录的 change 事件
Browse files Browse the repository at this point in the history
  • Loading branch information
yinlianghui committed Mar 25, 2023
1 parent 1b96731 commit ffb730e
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* @Author: 殷亮辉 yinlianghui@hotoa.com
* @Date: 2023-03-22 09:31:21
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
* @LastEditTime: 2023-03-25 22:41:27
*/
export const getSchema = (uiSchema)=>{
return {
"type": "service",
Expand Down Expand Up @@ -48,6 +54,16 @@ export const getSchema = (uiSchema)=>{
"objectName": `${uiSchema.name}`,
"__deletedRecord": true
}
},
{
"actionType": "broadcast",
"args": {
"eventName": "@data.changed.${masterObjectName}"
},
"data": {
"objectName": "${masterObjectName}"
},
"expression": "${masterObjectName}"
}
]
}
Expand Down

0 comments on commit ffb730e

Please sign in to comment.