@form-create/element-ui 3.2.25 → 3.2.27
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/form-create.esm.js +46 -16
- package/dist/form-create.esm.min.js +2 -2
- package/dist/form-create.js +46 -16
- package/dist/form-create.min.js +2 -2
- package/package.json +4 -4
- package/src/core/manager.js +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@form-create/element-ui",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.27",
|
|
4
4
|
"description": "Element Plus版本低代码表单|FormCreate 是一个可以通过 JSON 生成具有动态渲染、数据收集、验证和提交功能的低代码表单生成组件。支持6个UI框架,适配移动端,并且支持生成任何 Vue 组件。内置20种常用表单组件和自定义组件,再复杂的表单都可以轻松搞定。",
|
|
5
5
|
"main": "./dist/form-create.min.js",
|
|
6
6
|
"module": "./dist/form-create.esm.js",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"@form-create/component-elm-radio": "^3.2.23",
|
|
53
53
|
"@form-create/component-elm-select": "^3.2.23",
|
|
54
54
|
"@form-create/component-elm-tree": "^3.2.23",
|
|
55
|
-
"@form-create/component-elm-upload": "^3.2.
|
|
55
|
+
"@form-create/component-elm-upload": "^3.2.26",
|
|
56
56
|
"@form-create/component-subform": "^3.1.34",
|
|
57
|
-
"@form-create/core": "^3.2.
|
|
57
|
+
"@form-create/core": "^3.2.27",
|
|
58
58
|
"@form-create/utils": "^3.2.23"
|
|
59
59
|
},
|
|
60
60
|
"publishConfig": {
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"esm"
|
|
89
89
|
]
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "ebd5f5002564b7570fa101d9b910347496ceb763"
|
|
92
92
|
}
|
package/src/core/manager.js
CHANGED
|
@@ -58,6 +58,12 @@ export default {
|
|
|
58
58
|
fItem.clearValidate();
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
|
+
fieldChange(ctx, value, formValue, setFlag) {
|
|
62
|
+
if (!setFlag) {
|
|
63
|
+
this.vm.refs[ctx.wrapRef]?.validate('change')?.catch(() => {
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
},
|
|
61
67
|
tidyOptions(options) {
|
|
62
68
|
['submitBtn', 'resetBtn', 'row', 'info', 'wrap', 'col', 'title'].forEach(name => {
|
|
63
69
|
tidyBool(options, name);
|
|
@@ -121,6 +127,8 @@ export default {
|
|
|
121
127
|
const isTitle = this.isTitle(rule) && rule.wrap.title !== false;
|
|
122
128
|
const labelWidth = (!col.labelWidth && !isTitle) ? 0 : col.labelWidth;
|
|
123
129
|
const {inline, col: _col} = this.rule.props;
|
|
130
|
+
const cls = rule.wrap.class;
|
|
131
|
+
delete rule.wrap.class;
|
|
124
132
|
delete rule.wrap.title;
|
|
125
133
|
const item = isFalse(rule.wrap.show) ? children : this.$r(mergeProps([rule.wrap, {
|
|
126
134
|
props: {
|
|
@@ -130,7 +138,7 @@ export default {
|
|
|
130
138
|
prop: ctx.id,
|
|
131
139
|
rules: ctx.injectValidate(),
|
|
132
140
|
},
|
|
133
|
-
class: this.$render.mergeClass(rule.className, 'fc-form-item'),
|
|
141
|
+
class: this.$render.mergeClass(cls || rule.className, 'fc-form-item'),
|
|
134
142
|
key: `${uni}fi`,
|
|
135
143
|
ref: ctx.wrapRef,
|
|
136
144
|
type: 'formItem',
|