@steedos-widgets/amis-lib 1.3.4-beta.13 → 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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +4 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +3 -10
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/fields/lookup.d.ts +0 -24
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -6344,7 +6344,7 @@ async function lookupToAmisSelect(field, readonly, ctx){
|
|
|
6344
6344
|
disabledOn: `${readonly} || ( (this._master && (this._master.relatedKey ==='${field.name}')) || ((this.relatedKey ==='${field.name}') && (${field.multiple} != true)) )`,
|
|
6345
6345
|
// labelField: labelField,
|
|
6346
6346
|
// valueField: valueField,
|
|
6347
|
-
source: apiInfo,
|
|
6347
|
+
// source: apiInfo,
|
|
6348
6348
|
autoComplete: apiInfo,
|
|
6349
6349
|
searchable: true,
|
|
6350
6350
|
};
|
|
@@ -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":
|
|
10432
|
+
// "script": `setTimeout(function(){doAction({'actionType': 'setValue','componentId': '${formSchema.id}','args': {'value': {'sort_no': 879}}})}, 300)`
|
|
10432
10433
|
// },
|
|
10433
10434
|
// {
|
|
10434
10435
|
// "args": {},
|