@steedos-widgets/amis-lib 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.
package/dist/index.esm.js CHANGED
@@ -1024,12 +1024,15 @@ async function getFindQuery(object, recordId, fields, options){
1024
1024
  // return item.replace(/^{/,"").replace(/}$/,"");
1025
1025
  // }).join(",")) : "";
1026
1026
 
1027
+ const fieldsTemplate = `${await getFieldsTemplate(fields, options.expand)}${treeFields}${cfsFields}`;
1028
+
1027
1029
  return {
1028
1030
  orderBy: "${orderBy}",
1029
1031
  orderDir: "${orderDir}",
1030
1032
  pageNo: "${page}",
1031
1033
  pageSize: "${perPage}",
1032
- query: `{${alias}:${object.name}${queryOptions}{${await getFieldsTemplate(fields, options.expand)}${treeFields}${cfsFields}}${countQuery}}`
1034
+ queryFields: fieldsTemplate,
1035
+ query: `{${alias}:${object.name}${queryOptions}{${fieldsTemplate}}${countQuery}}`
1033
1036
  }
1034
1037
  }
1035
1038
 
@@ -11158,6 +11161,20 @@ async function lookupToAmisPicker(field, readonly, ctx){
11158
11161
  );
11159
11162
  }
11160
11163
  });
11164
+ _$1.each(listView.extra_columns || [], function (column) {
11165
+ // Lookup弹出列表跟列表视图组件一样,支持配置列表视图extra_columns,且允许其中字段是hidden的,hidden的字段在uiSchema.fields中不存在
11166
+ if (_$1.isString(column)) {
11167
+ fieldsArr.push({
11168
+ extra: true,
11169
+ name: column
11170
+ });
11171
+ } else if (_$1.isObject(column)) {
11172
+ fieldsArr.push({
11173
+ extra: true,
11174
+ name: column.field
11175
+ });
11176
+ }
11177
+ });
11161
11178
  }else {
11162
11179
  _$1.each(refObjectConfig.fields, (field, field_name)=>{
11163
11180
  if(field_name != '_id' && !field.hidden){