@steedos-widgets/amis-lib 1.3.4-beta.14 → 1.3.4-beta.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -10356,7 +10356,7 @@ const getFormFields = (objectSchema, formProps)=>{
10356
10356
  };
10357
10357
 
10358
10358
  async function getObjectForm(objectSchema, ctx){
10359
- const { recordId, formFactor, layout = formFactor === 'SMALL' ? 'normal' : "normal", labelAlign, tabId, appId, defaults } = ctx;
10359
+ const { recordId, formFactor, layout = formFactor === 'SMALL' ? 'normal' : "normal", labelAlign, tabId, appId, defaults, submitSuccActions = [] } = ctx;
10360
10360
  const fields = ___default.values(objectSchema.fields);
10361
10361
  const formFields = getFormFields(objectSchema, ctx);
10362
10362
  const formSchema = defaults && defaults.formSchema || {};
@@ -10426,9 +10426,10 @@ async function getObjectForm(objectSchema, ctx){
10426
10426
  },
10427
10427
  "expression": `\${_master.objectName != '${objectSchema.name}' && _master.objectName}`
10428
10428
  },
10429
+ ...submitSuccActions,
10429
10430
  // {
10430
10431
  // "actionType": "custom",
10431
- // "script": "debugger;"
10432
+ // "script": `setTimeout(function(){doAction({'actionType': 'setValue','componentId': '${formSchema.id}','args': {'value': {'sort_no': 879}}})}, 300)`
10432
10433
  // },
10433
10434
  // {
10434
10435
  // "args": {},