@steedos-widgets/amis-lib 1.3.4-beta.8 → 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
@@ -5951,10 +5951,13 @@ async function lookupToAmisPicker(field, readonly, ctx){
5951
5951
  const op = api.data.$self.op;
5952
5952
  if(!_.isEmpty(op)){
5953
5953
  // op不为空,表示处于字段初始编辑状态,不是点击后出现弹窗状态。
5954
+ // 这里不可以用_.pick函数让payload只返回labelField和valueField,因为字段上配置的amis autoFill功能可能依赖了其他字段
5955
+ /*
5954
5956
  const rows = _.map(payload.data.rows, (item)=>{
5955
5957
  return _.pick(item, ["${referenceTo.labelField.name}", "${referenceTo.valueField.name}"]);
5956
5958
  })
5957
5959
  payload.data.rows = rows;
5960
+ */
5958
5961
  return payload;
5959
5962
  }
5960
5963
  if(enable_tree){