@form-create/element-ui 3.1.27 → 3.1.28
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 +29 -7
- package/dist/form-create.esm.min.js +2 -2
- package/dist/form-create.js +29 -7
- package/dist/form-create.min.js +2 -2
- package/package.json +3 -3
- package/src/core/manager.js +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@form-create/element-ui",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.28",
|
|
4
4
|
"description": "element-ui动态表单|form-create is a form generation component that can generate dynamic rendering, data collection, verification and submission functions through JSON. Supports 5 UI frameworks, and supports the generation of any Vue components. Built-in 20 kinds of commonly used form components and custom components, no matter how complex forms can be easily handled.",
|
|
5
5
|
"main": "./dist/form-create.min.js",
|
|
6
6
|
"module": "./dist/form-create.esm.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@form-create/component-elm-tree": "^3.1.24",
|
|
54
54
|
"@form-create/component-elm-upload": "^3.1.26",
|
|
55
55
|
"@form-create/component-subform": "^3.1.5",
|
|
56
|
-
"@form-create/core": "^3.1.
|
|
56
|
+
"@form-create/core": "^3.1.28",
|
|
57
57
|
"@form-create/utils": "^3.1.23"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"esm"
|
|
88
88
|
]
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "85327d7db4736928046bc2a8ec3d77038b7f3d0b"
|
|
91
91
|
}
|
package/src/core/manager.js
CHANGED
|
@@ -134,7 +134,7 @@ export default {
|
|
|
134
134
|
key: `${uni}fi`,
|
|
135
135
|
ref: ctx.wrapRef,
|
|
136
136
|
type: 'formItem',
|
|
137
|
-
}]), {default: () => children, ...(isTitle ? {label: () => this.makeInfo(rule, uni)} : {})});
|
|
137
|
+
}]), {default: () => children, ...(isTitle ? {label: () => this.makeInfo(rule, uni, ctx)} : {})});
|
|
138
138
|
return (inline === true || isFalse(_col) || isFalse(col.show)) ? item : this.makeCol(rule, uni, [item]);
|
|
139
139
|
},
|
|
140
140
|
isTitle(rule) {
|
|
@@ -142,12 +142,13 @@ export default {
|
|
|
142
142
|
const title = rule.title;
|
|
143
143
|
return !((!title.title && !title.native) || isFalse(title.show))
|
|
144
144
|
},
|
|
145
|
-
makeInfo(rule, uni) {
|
|
145
|
+
makeInfo(rule, uni, ctx) {
|
|
146
146
|
const titleProp = {...rule.title};
|
|
147
147
|
const infoProp = {...rule.info};
|
|
148
148
|
const isTip = isTooltip(infoProp);
|
|
149
149
|
const form = this.options.form;
|
|
150
|
-
const
|
|
150
|
+
const titleSlot = this.getSlot('title');
|
|
151
|
+
const children = [titleSlot ? titleSlot({title: titleProp.title || '', rule: ctx.rule, options: this.options}) : ((titleProp.title || '') + (form.labelSuffix || form['label-suffix'] || ''))];
|
|
151
152
|
|
|
152
153
|
if (!isFalse(infoProp.show) && (infoProp.info || infoProp.native) && !isFalse(infoProp.icon)) {
|
|
153
154
|
const prop = {
|