@steedos-widgets/amis-lib 6.3.0-beta.20 → 6.3.0-beta.22

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;
@@ -14159,7 +14161,7 @@ function uuidv4() {
14159
14161
  * @Author: 殷亮辉 yinlianghui@hotoa.com
14160
14162
  * @Date: 2023-11-15 09:50:22
14161
14163
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
14162
- * @LastEditTime: 2024-03-02 16:07:17
14164
+ * @LastEditTime: 2024-06-11 15:38:16
14163
14165
  */
14164
14166
 
14165
14167
  /**
@@ -15229,6 +15231,7 @@ async function getButtonActions(props, mode) {
15229
15231
  "__parentForm": mode == "new" ? "$$" : parentFormData,
15230
15232
  "_master": "${_master}",
15231
15233
  "global": "${global}",
15234
+ "context": "${context}",
15232
15235
  "uiSchema": "${uiSchema}",
15233
15236
  "index": "${index}",//amis组件自带行索引,在节点嵌套情况下,当前节点如果是children属性下的子节点时,这里的index是当前节点在children中的索引,而不是外层父节点的index
15234
15237
  "parent": "${__super.parent}",//amis组件自带父节点数据域数据,即节点嵌套情况下,当前节点为某个节点(比如A节点)的children属性下的子节点时,当前节点的父节点(即A节点)的数据域数据
@@ -15353,6 +15356,7 @@ async function getButtonActions(props, mode) {
15353
15356
  "__parentForm": parentFormData,
15354
15357
  "_master": "${_master}",
15355
15358
  "global": "${global}",
15359
+ "context": "${context}",
15356
15360
  "uiSchema": "${uiSchema}",
15357
15361
  "index": "${index}",
15358
15362
  "parent": "${__super.parent}",//amis组件自带父节点数据域数据,即节点嵌套情况下,当前节点为某个节点(比如A节点)的children属性下的子节点时,当前节点的父节点(即A节点)的数据域数据