@steedos-widgets/amis-lib 1.3.4-beta.7 → 1.3.4-beta.9

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
@@ -5340,10 +5340,11 @@ function getObjectHeaderToolbar(mainObject, fields, formFactor, {
5340
5340
  // "filter-toggler",
5341
5341
  ...(headerToolbarItems || []),
5342
5342
  "bulkActions",
5343
- {
5344
- "type": "columns-toggler",
5345
- "className": "hidden"
5346
- },
5343
+ // 不能放开crud columns-toggler否则crud card模式会报错
5344
+ // {
5345
+ // "type": "columns-toggler",
5346
+ // "className": "hidden"
5347
+ // },
5347
5348
  ...toolbars,
5348
5349
  // {
5349
5350
  // "type": "columns-toggler",
@@ -5950,10 +5951,13 @@ async function lookupToAmisPicker(field, readonly, ctx){
5950
5951
  const op = api.data.$self.op;
5951
5952
  if(!_.isEmpty(op)){
5952
5953
  // op不为空,表示处于字段初始编辑状态,不是点击后出现弹窗状态。
5954
+ // 这里不可以用_.pick函数让payload只返回labelField和valueField,因为字段上配置的amis autoFill功能可能依赖了其他字段
5955
+ /*
5953
5956
  const rows = _.map(payload.data.rows, (item)=>{
5954
5957
  return _.pick(item, ["${referenceTo.labelField.name}", "${referenceTo.valueField.name}"]);
5955
5958
  })
5956
5959
  payload.data.rows = rows;
5960
+ */
5957
5961
  return payload;
5958
5962
  }
5959
5963
  if(enable_tree){