@form-create/element-ui 2.5.11 → 2.5.15

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": "@form-create/element-ui",
3
- "version": "2.5.11",
3
+ "version": "2.5.15",
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.11",
47
- "@form-create/component-elm-frame": "^2.5.11",
48
- "@form-create/component-elm-group": "^2.5.11",
49
- "@form-create/component-elm-radio": "^2.5.11",
50
- "@form-create/component-elm-select": "^2.5.11",
51
- "@form-create/component-elm-tree": "^2.5.11",
52
- "@form-create/component-elm-upload": "^2.5.11",
53
- "@form-create/component-subform": "^2.5.10",
54
- "@form-create/core": "^2.5.11",
55
- "@form-create/utils": "^2.5.11"
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.15",
53
+ "@form-create/component-subform": "^2.5.12",
54
+ "@form-create/core": "^2.5.15",
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.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": "ccd7ba699b3a877c9f2f2ec3c58a808128cee914"
68
+ "gitHead": "8c06b8fe5cf6d310e24733d86787068a7d8d2d9c"
69
69
  }
@@ -119,6 +119,7 @@ export default {
119
119
  const item = isFalse(rule.wrap.show) ? children : this.$r(mergeProps([rule.wrap, {
120
120
  props: {
121
121
  labelWidth: labelWidth === void 0 ? labelWidth : toString(labelWidth),
122
+ label: isTitle ? rule.title.title : undefined,
122
123
  ...(rule.wrap || {}),
123
124
  prop: ctx.id,
124
125
  rules: rule.validate,
@@ -131,7 +132,7 @@ export default {
131
132
  return (inline === true || isFalse(_col) || isFalse(col.show)) ? item : this.makeCol(rule, uni, [item]);
132
133
  },
133
134
  isTitle(rule) {
134
- if(this.options.form.title === false) return false;
135
+ if (this.options.form.title === false) return false;
135
136
  const title = rule.title;
136
137
  return !((!title.title && !title.native) || isFalse(title.show))
137
138
  },
@@ -140,39 +141,34 @@ export default {
140
141
  const infoProp = rule.info;
141
142
  const isTip = isTooltip(infoProp);
142
143
  const form = this.options.form;
143
- const children = [titleProp.title + (form.labelSuffix || form['label-suffix'] || '')];
144
- const titleFn = (pop) => this.$r(mergeProps([titleProp, {
145
- props: titleProp,
146
- slot: titleProp.slot || (pop ? (isTip ? 'default' : 'reference') : 'label'),
147
- key: `${uni}tit`,
148
- type: titleProp.type || 'span',
149
- }]), children);
144
+ const children = [(titleProp.title || '') + (form.labelSuffix || form['label-suffix'] || '')];
150
145
 
151
- if (!isFalse(infoProp.show) && (infoProp.info || infoProp.native)) {
152
- if (infoProp.icon !== false) {
153
- children[infoProp.align !== 'left' ? 'unshift' : 'push'](this.$r({
154
- type: 'i',
155
- class: infoProp.icon === true ? 'el-icon-warning' : infoProp.icon,
156
- key: `${uni}i`
157
- }));
158
- }
146
+ if (!isFalse(infoProp.show) && (infoProp.info || infoProp.native) && !isFalse(infoProp.icon)) {
159
147
  const prop = {
160
148
  type: infoProp.type || 'popover',
161
149
  props: {...infoProp},
162
150
  key: `${uni}pop`,
163
151
  slot: 'label'
164
152
  };
165
-
166
153
  const field = 'content';
167
154
  if (infoProp.info && !hasProperty(prop.props, field)) {
168
155
  prop.props[field] = infoProp.info;
169
156
  }
170
-
171
- return this.$r(mergeProps([infoProp, prop]), [
172
- titleFn(true)
173
- ])
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
+ ]));
174
165
  }
175
- return titleFn();
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);
176
172
  },
177
173
  makeCol(rule, uni, children) {
178
174
  const col = rule.col;