@steedos-widgets/amis-object 3.6.9 → 3.6.10

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.
@@ -4205,12 +4205,15 @@ async function getFindQuery(object, recordId, fields, options){
4205
4205
  // return item.replace(/^{/,"").replace(/}$/,"");
4206
4206
  // }).join(",")) : "";
4207
4207
 
4208
+ const fieldsTemplate = `${await getFieldsTemplate(fields, options.expand)}${treeFields}${cfsFields}`;
4209
+
4208
4210
  return {
4209
4211
  orderBy: "${orderBy}",
4210
4212
  orderDir: "${orderDir}",
4211
4213
  pageNo: "${page}",
4212
4214
  pageSize: "${perPage}",
4213
- query: `{${alias}:${object.name}${queryOptions}{${await getFieldsTemplate(fields, options.expand)}${treeFields}${cfsFields}}${countQuery}}`
4215
+ queryFields: fieldsTemplate,
4216
+ query: `{${alias}:${object.name}${queryOptions}{${fieldsTemplate}}${countQuery}}`
4214
4217
  }
4215
4218
  }
4216
4219
 
@@ -14339,6 +14342,20 @@ async function lookupToAmisPicker(field, readonly, ctx){
14339
14342
  );
14340
14343
  }
14341
14344
  });
14345
+ _$1__namespace.each(listView.extra_columns || [], function (column) {
14346
+ // Lookup弹出列表跟列表视图组件一样,支持配置列表视图extra_columns,且允许其中字段是hidden的,hidden的字段在uiSchema.fields中不存在
14347
+ if (_$1__namespace.isString(column)) {
14348
+ fieldsArr.push({
14349
+ extra: true,
14350
+ name: column
14351
+ });
14352
+ } else if (_$1__namespace.isObject(column)) {
14353
+ fieldsArr.push({
14354
+ extra: true,
14355
+ name: column.field
14356
+ });
14357
+ }
14358
+ });
14342
14359
  }else {
14343
14360
  _$1__namespace.each(refObjectConfig.fields, (field, field_name)=>{
14344
14361
  if(field_name != '_id' && !field.hidden){