@longhongguo/form-create-ant-design-vue 3.2.96 → 3.2.97
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longhongguo/form-create-ant-design-vue",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.97",
|
|
4
4
|
"description": "AntDesignVue版本低代码表单|FormCreate 是一个可以通过 JSON 生成具有动态渲染、数据收集、验证和提交功能的低代码表单生成组件。支持6个UI框架,适配移动端,并且支持生成任何 Vue 组件。内置20种常用表单组件和自定义组件,再复杂的表单都可以轻松搞定。",
|
|
5
5
|
"main": "./dist/form-create.min.js",
|
|
6
6
|
"module": "./dist/form-create.esm.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@form-create/core": "^3.2.33",
|
|
56
56
|
"@form-create/utils": "^3.2.31",
|
|
57
57
|
"@longhongguo/component-antdv-upload": "^3.2.41",
|
|
58
|
-
"@longhongguo/form-create-core": "
|
|
58
|
+
"@longhongguo/form-create-core": "^3.2.56",
|
|
59
59
|
"moment": "^2.30.1"
|
|
60
60
|
},
|
|
61
61
|
"publishConfig": {
|
package/src/parsers/text.js
CHANGED
|
@@ -216,16 +216,8 @@ export default {
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
// 确保 children 存在(如果没有设置,默认为空数组)
|
|
219
|
-
// 重要:始终创建新的数组,确保每个 text 组件都有独立的 children 数组引用
|
|
220
|
-
// 这样可以避免多个 text 组件绑定同一个字段时共享同一个数组引用
|
|
221
219
|
if (!ctx.rule.children) {
|
|
222
220
|
ctx.rule.children = []
|
|
223
|
-
} else if (Array.isArray(ctx.rule.children)) {
|
|
224
|
-
// 如果 children 已存在,创建一个新的数组副本,避免多个组件共享同一个数组引用
|
|
225
|
-
ctx.rule.children = [...ctx.rule.children]
|
|
226
|
-
} else {
|
|
227
|
-
// 如果不是数组,转换为数组
|
|
228
|
-
ctx.rule.children = [ctx.rule.children]
|
|
229
221
|
}
|
|
230
222
|
|
|
231
223
|
// 对于动态绑定的情况,初始化时设置一个占位符,确保组件能被渲染
|