@form-create/element-ui 2.5.12 → 2.5.16
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.js +133 -84
- package/dist/form-create.min.js +2 -2
- package/dist/form-create.min.js.map +1 -1
- package/package.json +12 -12
- package/src/core/manager.js +16 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@form-create/element-ui",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.16",
|
|
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 3 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.min.js",
|
|
@@ -43,27 +43,27 @@
|
|
|
43
43
|
},
|
|
44
44
|
"homepage": "http://www.form-create.com",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@form-create/component-elm-checkbox": "^2.5.
|
|
47
|
-
"@form-create/component-elm-frame": "^2.5.
|
|
48
|
-
"@form-create/component-elm-group": "^2.5.
|
|
49
|
-
"@form-create/component-elm-radio": "^2.5.
|
|
50
|
-
"@form-create/component-elm-select": "^2.5.
|
|
51
|
-
"@form-create/component-elm-tree": "^2.5.
|
|
52
|
-
"@form-create/component-elm-upload": "^2.5.
|
|
46
|
+
"@form-create/component-elm-checkbox": "^2.5.15",
|
|
47
|
+
"@form-create/component-elm-frame": "^2.5.15",
|
|
48
|
+
"@form-create/component-elm-group": "^2.5.15",
|
|
49
|
+
"@form-create/component-elm-radio": "^2.5.15",
|
|
50
|
+
"@form-create/component-elm-select": "^2.5.15",
|
|
51
|
+
"@form-create/component-elm-tree": "^2.5.15",
|
|
52
|
+
"@form-create/component-elm-upload": "^2.5.16",
|
|
53
53
|
"@form-create/component-subform": "^2.5.12",
|
|
54
|
-
"@form-create/core": "^2.5.
|
|
55
|
-
"@form-create/utils": "^2.5.
|
|
54
|
+
"@form-create/core": "^2.5.16",
|
|
55
|
+
"@form-create/utils": "^2.5.15"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@form-create/component-wangeditor": "^2.5.
|
|
61
|
+
"@form-create/component-wangeditor": "^2.5.15",
|
|
62
62
|
"@vue/cli-plugin-babel": "~4.5.0",
|
|
63
63
|
"@vue/cli-service": "^4.5.3",
|
|
64
64
|
"@vue/composition-api": "^1.0.0-beta.22",
|
|
65
65
|
"element-ui": "^2.13.2",
|
|
66
66
|
"v-jsoneditor": "^1.4.2"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "655942bfd9ed3ee241feebbaacda26aaeb728af5"
|
|
69
69
|
}
|
package/src/core/manager.js
CHANGED
|
@@ -132,7 +132,7 @@ export default {
|
|
|
132
132
|
return (inline === true || isFalse(_col) || isFalse(col.show)) ? item : this.makeCol(rule, uni, [item]);
|
|
133
133
|
},
|
|
134
134
|
isTitle(rule) {
|
|
135
|
-
if(this.options.form.title === false) return false;
|
|
135
|
+
if (this.options.form.title === false) return false;
|
|
136
136
|
const title = rule.title;
|
|
137
137
|
return !((!title.title && !title.native) || isFalse(title.show))
|
|
138
138
|
},
|
|
@@ -142,38 +142,33 @@ export default {
|
|
|
142
142
|
const isTip = isTooltip(infoProp);
|
|
143
143
|
const form = this.options.form;
|
|
144
144
|
const children = [(titleProp.title || '') + (form.labelSuffix || form['label-suffix'] || '')];
|
|
145
|
-
const titleFn = (pop) => this.$r(mergeProps([titleProp, {
|
|
146
|
-
props: titleProp,
|
|
147
|
-
slot: titleProp.slot || (pop ? (isTip ? 'default' : 'reference') : 'label'),
|
|
148
|
-
key: `${uni}tit`,
|
|
149
|
-
type: titleProp.type || 'span',
|
|
150
|
-
}]), children);
|
|
151
145
|
|
|
152
|
-
if (!isFalse(infoProp.show) && (infoProp.info || infoProp.native)) {
|
|
153
|
-
if (infoProp.icon !== false) {
|
|
154
|
-
children[infoProp.align !== 'left' ? 'unshift' : 'push'](this.$r({
|
|
155
|
-
type: 'i',
|
|
156
|
-
class: infoProp.icon === true ? 'el-icon-warning' : infoProp.icon,
|
|
157
|
-
key: `${uni}i`
|
|
158
|
-
}));
|
|
159
|
-
}
|
|
146
|
+
if (!isFalse(infoProp.show) && (infoProp.info || infoProp.native) && !isFalse(infoProp.icon)) {
|
|
160
147
|
const prop = {
|
|
161
148
|
type: infoProp.type || 'popover',
|
|
162
149
|
props: {...infoProp},
|
|
163
150
|
key: `${uni}pop`,
|
|
164
151
|
slot: 'label'
|
|
165
152
|
};
|
|
166
|
-
|
|
167
153
|
const field = 'content';
|
|
168
154
|
if (infoProp.info && !hasProperty(prop.props, field)) {
|
|
169
155
|
prop.props[field] = infoProp.info;
|
|
170
156
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
157
|
+
children[infoProp.align !== 'left' ? 'unshift' : 'push'](this.$r(mergeProps([infoProp, prop]), [
|
|
158
|
+
this.$r({
|
|
159
|
+
type: 'i',
|
|
160
|
+
slot: isTip ? 'default' : 'reference',
|
|
161
|
+
class: infoProp.icon === true ? 'el-icon-warning' : infoProp.icon,
|
|
162
|
+
key: `${uni}i`
|
|
163
|
+
})
|
|
164
|
+
]));
|
|
175
165
|
}
|
|
176
|
-
return
|
|
166
|
+
return this.$r(mergeProps([titleProp, {
|
|
167
|
+
props: titleProp,
|
|
168
|
+
slot: titleProp.slot || 'label',
|
|
169
|
+
key: `${uni}tit`,
|
|
170
|
+
type: titleProp.type || 'span',
|
|
171
|
+
}]), children);
|
|
177
172
|
},
|
|
178
173
|
makeCol(rule, uni, children) {
|
|
179
174
|
const col = rule.col;
|