@form-create/element-ui 2.7.3 → 2.7.4

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.
@@ -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 = {
@@ -170,7 +170,7 @@ export default {
170
170
 
171
171
  const field = 'content';
172
172
  if (infoProp.info && !hasProperty(prop.props, field)) {
173
- prop.props[field] = ctx.refRule?.__$info.value;
173
+ prop.props[field] = ctx.refRule?.__$info?.value;
174
174
  }
175
175
  children[infoProp.align !== 'left' ? 'unshift' : 'push'](this.$r(mergeProps([infoProp, prop]), [
176
176
  this.$r({
@@ -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 {