@steedos-widgets/amis-lib 6.3.12-beta.19 → 6.3.12-beta.20
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 +14 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +14 -19
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -6359,12 +6359,8 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
6359
6359
|
filterFormValues = AmisCore.evaluate(filterFormValues, data) || {};
|
|
6360
6360
|
}
|
|
6361
6361
|
if (_.isObject(filterFormValues) || !_.isEmpty(filterFormValues)){
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
});
|
|
6365
|
-
filterFormValues = _.mapKeys(filterFormValues, function(n,k){
|
|
6366
|
-
return "__searchable__" + k;
|
|
6367
|
-
})
|
|
6362
|
+
let fields = data.uiSchema && data.uiSchema.fields;
|
|
6363
|
+
filterFormValues = SteedosUI.getSearchFilterFormValues(filterFormValues, fields);
|
|
6368
6364
|
setData({ ...filterFormValues });
|
|
6369
6365
|
}
|
|
6370
6366
|
// looup字段过滤器不在本地缓存记住过滤条件,所以初始始终隐藏过滤器
|
|
@@ -12076,7 +12072,7 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
12076
12072
|
}
|
|
12077
12073
|
const selfData = JSON.parse(JSON.stringify(api.data.$self));
|
|
12078
12074
|
${listviewFilter && !ctx.inFilterForm ? `var filters = ${JSON.stringify(listviewFilter)};` : 'var filters = [];'}
|
|
12079
|
-
var pageSize = api.data.pageSize || 10;
|
|
12075
|
+
var pageSize = 500;//api.data.pageSize || 10;
|
|
12080
12076
|
var pageNo = api.data.pageNo || 1;
|
|
12081
12077
|
var skip = (pageNo - 1) * pageSize;
|
|
12082
12078
|
var orderBy = api.data.orderBy || '';
|
|
@@ -12097,18 +12093,17 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
12097
12093
|
}
|
|
12098
12094
|
}
|
|
12099
12095
|
|
|
12100
|
-
let filterFormValues =
|
|
12101
|
-
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
|
|
12110
|
-
|
|
12111
|
-
})
|
|
12096
|
+
let filterFormValues = {};
|
|
12097
|
+
if (selfData.op !== 'loadOptions'){
|
|
12098
|
+
filterFormValues = ${_$1.isObject(filterFormValues) ? JSON.stringify(filterFormValues) : ('"' + filterFormValues + '"')} || {};
|
|
12099
|
+
const isAmisFormula = typeof filterFormValues === "string" && filterFormValues.indexOf("\${") > -1;
|
|
12100
|
+
if (isAmisFormula){
|
|
12101
|
+
filterFormValues = AmisCore.evaluate(filterFormValues, context) || {};
|
|
12102
|
+
}
|
|
12103
|
+
if (_.isObject(filterFormValues) || !_.isEmpty(filterFormValues)){
|
|
12104
|
+
let fields = api.data.$self.uiSchema && api.data.$self.uiSchema.fields;
|
|
12105
|
+
filterFormValues = SteedosUI.getSearchFilterFormValues(filterFormValues, fields);
|
|
12106
|
+
}
|
|
12112
12107
|
}
|
|
12113
12108
|
|
|
12114
12109
|
var searchableFilter = SteedosUI.getSearchFilter(Object.assign({}, { ...filterFormValues }, selfData)) || [];
|