ボタンクリックイベント対応

This commit is contained in:
2024-03-01 22:47:37 +09:00
parent 72608a8ffd
commit 03904a4e35
19 changed files with 676 additions and 1419 deletions

View File

@@ -31,7 +31,7 @@ export class ErrorShowAction implements IAction {
* @returns
*/
async process(actionNode: IActionNode, event: any, context: IContext): Promise<IActionResult> { //异步处理某函数下的xx属性
let result = { //定义一个能否继续往下实行的开关
let result = {
canNext: true,
result: false
};
@@ -40,10 +40,10 @@ export class ErrorShowAction implements IAction {
if (!('message' in actionNode.ActionValue) && !('condition' in actionNode.ActionValue)) { //如果message以及condition两者都不存在的情况下return
return result
}
this.props = actionNode.ActionValue as IErrorShowProps; //将TS的action.actionvalue as转换为interface需要且定义的js部分
this.props = actionNode.ActionValue as IErrorShowProps;
const conditionResult = this.getConditionResult(context);
if (conditionResult) {
event.error = this.props.message
event.error = this.props.message;
} else {
result = {
canNext: false,