@form-create/iview 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.
@@ -146,10 +146,10 @@ export default {
146
146
  const form = this.options.form;
147
147
  const titleSlot = this.getSlot('title');
148
148
  const children = [titleSlot ? titleSlot({
149
- title: ctx.refRule?.__$title.value,
149
+ title: ctx.refRule?.__$title?.value,
150
150
  rule: ctx.rule,
151
151
  options: this.options
152
- }) : ((ctx.refRule?.__$title.value) + (form.labelSuffix || form['label-suffix'] || ''))];
152
+ }) : ((ctx.refRule?.__$title?.value) + (form.labelSuffix || form['label-suffix'] || ''))];
153
153
 
154
154
  if (!isFalse(infoProp.show) && (infoProp.info || infoProp.native) && !isFalse(infoProp.icon)) {
155
155
  const prop = {
@@ -167,7 +167,7 @@ export default {
167
167
 
168
168
  const field = 'content';
169
169
  if (infoProp.info && !hasProperty(prop.props, field)) {
170
- prop.props[field] = ctx.refRule?.__$info.value;
170
+ prop.props[field] = ctx.refRule?.__$info?.value;
171
171
  }
172
172
  children[infoProp.align !== 'left' ? 'unshift' : 'push'](this.$r(mergeProps([infoProp, prop]), [
173
173
  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 {