Skip to content

Commit

Permalink
chore: 同步代码
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySoft committed Sep 8, 2024
1 parent b0eaa48 commit d191cfa
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/materials/utils/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,21 @@ const execAction = (node: any, params: any = {}) => {
handleNotifacation(node, data);
} else if (node.action.actionType === 'request' || node.action.actionType === 'download') {
handleRequest(node, data);
} else if (node.action.actionType === 'formReset') {
node.action.method = 'reset';
handleMethods(node, data);
} else if (node.action.actionType === 'formSubmit') {
node.action.method = 'submit';
handleMethods(node, data);
} else if (node.action.actionType === 'formValidate') {
node.action.method = 'validate';
handleMethods(node, data);
} else if (node.action.actionType === 'formAssignment') {
node.action.method = 'init';
handleMethods(node, data);
} else if (node.action.actionType === 'formGetValue') {
node.action.method = 'getFormData';
handleMethods(node, data);
} else if (['openModal', 'openDrawer'].includes(node.action.actionType)) {
handleOpenModal(node, data, 'open');
} else if (['closeModal', 'closeDrawer'].includes(node.action.actionType)) {
Expand Down

0 comments on commit d191cfa

Please sign in to comment.