@steedos-widgets/amis-lib 6.3.0-beta.21 → 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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +3 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -1032,7 +1032,7 @@ sectionFieldsVisibleOn=___namespace.map(___namespace.compact(___namespace.map(fi
|
|
|
1032
1032
|
* @Author: 殷亮辉 yinlianghui@hotoa.com
|
|
1033
1033
|
* @Date: 2023-11-15 09:50:22
|
|
1034
1034
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
1035
|
-
* @LastEditTime: 2024-
|
|
1035
|
+
* @LastEditTime: 2024-06-11 15:38:16
|
|
1036
1036
|
*/ /**
|
|
1037
1037
|
* 子表组件字段值中每行数据补上字段值为空的的字段值,把值统一设置为空字符串,是为了解决amis amis 3.6/6.0 input-table组件bug:行中字段值为空时会显示为父作用域中的同名变量值,见:https://github.com/baidu/amis/issues/9520
|
|
1038
1038
|
* amis #9520修正后此函数及相关代码可以移除
|
|
@@ -1253,7 +1253,7 @@ dialogButtons=[{"type":"button","label":"新增","tooltip":"保存并新增一
|
|
|
1253
1253
|
// 映射到中间变量__parentForm而不是直接用&展开映射是为了避免表单中字段名与作用域中变量重名
|
|
1254
1254
|
// "__parentForm": "${__super.__super || {}}",
|
|
1255
1255
|
// "__parentForm": mode == "new" ? "$$" : "${__super.__super || {}}",
|
|
1256
|
-
"__parentForm":mode=="new"?"$$":parentFormData,"_master":"${_master}","global":"${global}","uiSchema":"${uiSchema}","index":"${index}",//amis组件自带行索引,在节点嵌套情况下,当前节点如果是children属性下的子节点时,这里的index是当前节点在children中的索引,而不是外层父节点的index
|
|
1256
|
+
"__parentForm":mode=="new"?"$$":parentFormData,"_master":"${_master}","global":"${global}","context":"${context}","uiSchema":"${uiSchema}","index":"${index}",//amis组件自带行索引,在节点嵌套情况下,当前节点如果是children属性下的子节点时,这里的index是当前节点在children中的索引,而不是外层父节点的index
|
|
1257
1257
|
"parent":"${__super.parent}",//amis组件自带父节点数据域数据,即节点嵌套情况下,当前节点为某个节点(比如A节点)的children属性下的子节点时,当前节点的父节点(即A节点)的数据域数据
|
|
1258
1258
|
// "__tableItems": `\${${props.name}}`
|
|
1259
1259
|
// 为了解决"弹出的dialog窗口中子表组件会影响页面布局界面中父作用域字段值",比如设计字段布局微页面中的设置分组功能,弹出的就是子表dialog
|
|
@@ -1304,7 +1304,7 @@ if(props.enableDialog===false){actions=[{"actionType":"custom","script":"\n
|
|
|
1304
1304
|
// 换成从__super来映射上级表单数据是因为对象列表视图界面中每行下拉菜单中的编辑按钮弹出的表单中的子表所在作用域中没有record变量
|
|
1305
1305
|
// 映射到中间变量__parentForm而不是直接用&展开映射是为了避免表单中字段名与作用域中变量重名
|
|
1306
1306
|
// "__parentForm": "${__super.__super || {}}",
|
|
1307
|
-
"__parentForm":parentFormData,"_master":"${_master}","global":"${global}","uiSchema":"${uiSchema}","index":"${index}","parent":"${__super.parent}",//amis组件自带父节点数据域数据,即节点嵌套情况下,当前节点为某个节点(比如A节点)的children属性下的子节点时,当前节点的父节点(即A节点)的数据域数据
|
|
1307
|
+
"__parentForm":parentFormData,"_master":"${_master}","global":"${global}","context":"${context}","uiSchema":"${uiSchema}","index":"${index}","parent":"${__super.parent}",//amis组件自带父节点数据域数据,即节点嵌套情况下,当前节点为某个节点(比如A节点)的children属性下的子节点时,当前节点的父节点(即A节点)的数据域数据
|
|
1308
1308
|
// "__tableItems": `\${${props.name}}`
|
|
1309
1309
|
// 为了解决"弹出的dialog窗口中子表组件会影响页面布局界面中父作用域字段值",比如设计字段布局微页面中的设置分组功能,弹出的就是子表dialog
|
|
1310
1310
|
// 所以这里使用json|toJson转一次,断掉event.data.__tableItems与上层任用域中props.name的联系
|