@steedos-widgets/sortable 3.6.9 → 3.6.11-beta.1

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.
@@ -54396,12 +54396,15 @@ async function getFindQuery(object, recordId, fields, options){
54396
54396
  // return item.replace(/^{/,"").replace(/}$/,"");
54397
54397
  // }).join(",")) : "";
54398
54398
 
54399
+ const fieldsTemplate = `${await getFieldsTemplate(fields, options.expand)}${treeFields}${cfsFields}`;
54400
+
54399
54401
  return {
54400
54402
  orderBy: "${orderBy}",
54401
54403
  orderDir: "${orderDir}",
54402
54404
  pageNo: "${page}",
54403
54405
  pageSize: "${perPage}",
54404
- query: `{${alias}:${object.name}${queryOptions}{${await getFieldsTemplate(fields, options.expand)}${treeFields}${cfsFields}}${countQuery}}`
54406
+ queryFields: fieldsTemplate,
54407
+ query: `{${alias}:${object.name}${queryOptions}{${fieldsTemplate}}${countQuery}}`
54405
54408
  }
54406
54409
  }
54407
54410
 
@@ -59493,6 +59496,20 @@ async function lookupToAmisPicker(field, readonly, ctx){
59493
59496
  );
59494
59497
  }
59495
59498
  });
59499
+ lodash.exports.each(listView.extra_columns || [], function (column) {
59500
+ // Lookup弹出列表跟列表视图组件一样,支持配置列表视图extra_columns,且允许其中字段是hidden的,hidden的字段在uiSchema.fields中不存在
59501
+ if (lodash.exports.isString(column)) {
59502
+ fieldsArr.push({
59503
+ extra: true,
59504
+ name: column
59505
+ });
59506
+ } else if (lodash.exports.isObject(column)) {
59507
+ fieldsArr.push({
59508
+ extra: true,
59509
+ name: column.field
59510
+ });
59511
+ }
59512
+ });
59496
59513
  }else {
59497
59514
  lodash.exports.each(refObjectConfig.fields, (field, field_name)=>{
59498
59515
  if(field_name != '_id' && !field.hidden){