@form-create/element-ui 3.2.19 → 3.2.20

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": "3.2.19",
3
+ "version": "3.2.20",
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",
@@ -54,7 +54,7 @@
54
54
  "@form-create/component-elm-tree": "^3.2.18",
55
55
  "@form-create/component-elm-upload": "^3.2.18",
56
56
  "@form-create/component-subform": "^3.1.34",
57
- "@form-create/core": "^3.2.19",
57
+ "@form-create/core": "^3.2.20",
58
58
  "@form-create/utils": "^3.2.18"
59
59
  },
60
60
  "publishConfig": {
@@ -88,5 +88,5 @@
88
88
  "esm"
89
89
  ]
90
90
  },
91
- "gitHead": "7f6e8182998699e87103b58f2f9afa00044dd205"
91
+ "gitHead": "b8a996a10464b0415f4cb5afe590ebcf067b6a87"
92
92
  }
@@ -149,10 +149,10 @@ export default {
149
149
  const form = this.options.form;
150
150
  const titleSlot = this.getSlot('title');
151
151
  const children = [titleSlot ? titleSlot({
152
- title: ctx.refRule?.__$title.value,
152
+ title: ctx.refRule?.__$title?.value,
153
153
  rule: ctx.rule,
154
154
  options: this.options
155
- }) : ((ctx.refRule?.__$title.value) + (form.labelSuffix || form['label-suffix'] || ''))];
155
+ }) : ((ctx.refRule?.__$title?.value) + (form.labelSuffix || form['label-suffix'] || ''))];
156
156
 
157
157
  if (!isFalse(infoProp.show) && (infoProp.info || infoProp.native) && !isFalse(infoProp.icon)) {
158
158
  const prop = {
@@ -169,7 +169,7 @@ export default {
169
169
 
170
170
  const field = 'content';
171
171
  if (infoProp.info && !hasProperty(prop.props, field)) {
172
- prop.props[field] = ctx.refRule?.__$info.value;
172
+ prop.props[field] = ctx.refRule?.__$info?.value;
173
173
  }
174
174
 
175
175
  children[infoProp.align !== 'left' ? 'unshift' : 'push'](this.$r(mergeProps([infoProp, prop]), {
@@ -15,7 +15,7 @@ const required = {
15
15
  },
16
16
  ...val,
17
17
  };
18
- const title = rule.__fc__.refRule.__$title.value;
18
+ const title = rule.__fc__.refRule.__$title?.value;
19
19
  if (!validate.message) {
20
20
  validate.message = api.t('required', {title}) || (title + (api.getLocale() === 'en' ? ' is required' : '不能为空'));
21
21
  } else {