@steedos-widgets/amis-lib 1.1.12 → 1.1.13
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 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +4 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _$1 from 'lodash';
|
|
2
|
-
import ___default, { isEmpty, isArray, each, find, endsWith, cloneDeep, includes, get, map, keys, sortBy, compact, toArray, mergeWith, isBoolean, omitBy, isNil, isString, union, slice, defaultsDeep as defaultsDeep$1, isObject as isObject$1,
|
|
2
|
+
import ___default, { isEmpty, isArray, each, find, endsWith, cloneDeep, includes, get, map, keys, sortBy, compact, toArray, mergeWith, isBoolean, omitBy, isNil, isString, union, has, slice, defaultsDeep as defaultsDeep$1, isObject as isObject$1, filter, startsWith } from 'lodash';
|
|
3
3
|
import { Router as Router$1, getSteedosAuth as getSteedosAuth$1, lookupToAmis as lookupToAmis$1, fetchAPI as fetchAPI$1 } from '@steedos-widgets/amis-lib';
|
|
4
4
|
import isPlainObject from 'lodash/isPlainObject';
|
|
5
5
|
|
|
@@ -7314,7 +7314,7 @@ const getRecordPermissions = async (objectName, recordId)=>{
|
|
|
7314
7314
|
* @Author: baozhoutao@steedos.com
|
|
7315
7315
|
* @Date: 2022-07-05 15:55:39
|
|
7316
7316
|
* @LastEditors: Please set LastEditors
|
|
7317
|
-
* @LastEditTime: 2023-04-
|
|
7317
|
+
* @LastEditTime: 2023-04-20 11:43:14
|
|
7318
7318
|
* @Description:
|
|
7319
7319
|
*/
|
|
7320
7320
|
|
|
@@ -7414,7 +7414,9 @@ async function getRecordDetailRelatedListSchema(objectName, recordId, relatedObj
|
|
|
7414
7414
|
const details = union(mainObjectUiSchema.details,mainObjectUiSchema.lookup_details) || [];
|
|
7415
7415
|
for (const detail of details) {
|
|
7416
7416
|
const arr = detail.split(".");
|
|
7417
|
-
mainRelated
|
|
7417
|
+
if(!has(mainRelated,arr[0])){
|
|
7418
|
+
mainRelated[arr[0]] = arr[1];
|
|
7419
|
+
}
|
|
7418
7420
|
}
|
|
7419
7421
|
}
|
|
7420
7422
|
}
|