ボタンクリックイベント対応
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user