@steedos-widgets/amis-lib 6.3.0-beta.19 → 6.3.0-beta.21

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
@@ -9540,6 +9540,8 @@ async function getObjectCRUD(objectSchema, fields, options){
9540
9540
  //将_display放入crud的columns的倒数第二列中(最后一列会影响固定列),可以通过setvalue修改行内数据域的_display,而不影响上层items的_display,用于批量编辑
9541
9541
  body.columns.splice(body.columns.length -1 , 0, {name: '_display',type: 'static', width: 1, placeholder: "",id: objectSchema.name + "_display_${_index}", tpl: "${''}"});
9542
9542
  }
9543
+ // 去除数组中的异常值,如null,undefined等
9544
+ body.columns = ___default.compact(body.columns);
9543
9545
 
9544
9546
  if (defaults) {
9545
9547
  const headerSchema = defaults.headerSchema;