@form-create/element-ui 3.2.18 → 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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @form-create/element-ui v3.2.18
2
+ * @form-create/element-ui v3.2.20
3
3
  * (c) 2018-2025 xaboy
4
4
  * Github https://github.com/xaboy/form-create
5
5
  * Released under the MIT License.
@@ -1783,7 +1783,7 @@ var Group = defineComponent({
1783
1783
  return;
1784
1784
  }
1785
1785
 
1786
- this.cacheRule[key].$f && this.cacheRule[key].$f.setValue(value);
1786
+ this.cacheRule[key].$f && this.cacheRule[key].$f.coverValue(value);
1787
1787
  this.cache(key, value);
1788
1788
  },
1789
1789
  addRule: function addRule(i, emit) {
@@ -2323,6 +2323,9 @@ function $FormCreate(FormCreate, components, directives) {
2323
2323
  var emit$topForm = debounce(function () {
2324
2324
  fc.bus.$emit('$loadData.$topForm');
2325
2325
  }, 100);
2326
+ var emit$scopeForm = debounce(function () {
2327
+ fc.bus.$emit('$loadData.$scopeForm');
2328
+ }, 100);
2326
2329
  var emit$form = debounce(function () {
2327
2330
  fc.bus.$emit('$loadData.$form');
2328
2331
  }, 100);
@@ -2337,6 +2340,10 @@ function $FormCreate(FormCreate, components, directives) {
2337
2340
  fapi.top.bus.$on('change', emit$change);
2338
2341
  }
2339
2342
 
2343
+ if (fapi !== fapi.scope) {
2344
+ fapi.scope.bus.$on('$loadData.$scopeForm', emit$scopeForm);
2345
+ }
2346
+
2340
2347
  fc.mounted();
2341
2348
  });
2342
2349
  onBeforeUnmount(function () {
@@ -2345,6 +2352,10 @@ function $FormCreate(FormCreate, components, directives) {
2345
2352
  fapi.top.bus.$off('change', emit$change);
2346
2353
  }
2347
2354
 
2355
+ if (fapi !== fapi.scope) {
2356
+ fapi.scope.bus.$off('$loadData.$scopeForm', emit$scopeForm);
2357
+ }
2358
+
2348
2359
  styleEl && document.head.removeChild(styleEl);
2349
2360
  rmSubForm();
2350
2361
  data.destroyed = true;
@@ -2358,6 +2369,14 @@ function $FormCreate(FormCreate, components, directives) {
2358
2369
  }, {
2359
2370
  immediate: true
2360
2371
  });
2372
+ watch(function () {
2373
+ return props.option;
2374
+ }, function () {
2375
+ fc.initOptions();
2376
+ fapi.refresh();
2377
+ }, {
2378
+ deep: true
2379
+ });
2361
2380
  watch(function () {
2362
2381
  return _toConsumableArray(rule.value);
2363
2382
  }, function (n) {
@@ -2368,14 +2387,6 @@ function $FormCreate(FormCreate, components, directives) {
2368
2387
  fc.$handle.reloadRule(rule.value);
2369
2388
  vm.setupState.renderRule();
2370
2389
  });
2371
- watch(function () {
2372
- return props.option;
2373
- }, function () {
2374
- fc.initOptions();
2375
- fapi.refresh();
2376
- }, {
2377
- deep: true
2378
- });
2379
2390
  watch(function () {
2380
2391
  return [props.disabled, props.preview];
2381
2392
  }, function () {
@@ -2436,6 +2447,9 @@ function $FormCreate(FormCreate, components, directives) {
2436
2447
 
2437
2448
  if (!parent) {
2438
2449
  emit$topForm();
2450
+ emit$scopeForm();
2451
+ } else if (!subForm.value) {
2452
+ emit$scopeForm();
2439
2453
  }
2440
2454
  });
2441
2455
  }
@@ -3017,10 +3031,12 @@ function fetch$1(option) {
3017
3031
  if (option.query) {
3018
3032
  var queryString = new URLSearchParams(option.query).toString();
3019
3033
 
3020
- if (action.includes('?')) {
3021
- action += "&".concat(queryString);
3022
- } else {
3023
- action += "?".concat(queryString);
3034
+ if (queryString) {
3035
+ if (action.includes('?')) {
3036
+ action += "&".concat(queryString);
3037
+ } else {
3038
+ action += "?".concat(queryString);
3039
+ }
3024
3040
  }
3025
3041
  }
3026
3042
 
@@ -3160,6 +3176,20 @@ function Api(h) {
3160
3176
  return api;
3161
3177
  },
3162
3178
 
3179
+ get scope() {
3180
+ var parent = h.vm;
3181
+
3182
+ while (parent && parent.setupState.fapi) {
3183
+ if (!parent.props.subForm) {
3184
+ return parent.setupState.fapi;
3185
+ } else {
3186
+ parent = parent.setupState.parent;
3187
+ }
3188
+ }
3189
+
3190
+ return api.top;
3191
+ },
3192
+
3163
3193
  get children() {
3164
3194
  return allSubForm();
3165
3195
  },
@@ -3190,10 +3220,10 @@ function Api(h) {
3190
3220
  },
3191
3221
 
3192
3222
  formData: function formData(fields) {
3193
- if (fields == null) {
3223
+ if (fields == null || typeof fields === 'boolean') {
3194
3224
  var data = {};
3195
3225
  Object.keys(h.form).forEach(function (k) {
3196
- if (h.ignoreFields.indexOf(k) === -1) {
3226
+ if (fields === true || h.ignoreFields.indexOf(k) === -1) {
3197
3227
  data[k] = copy(h.form[k]);
3198
3228
  }
3199
3229
  });
@@ -3668,6 +3698,16 @@ function Api(h) {
3668
3698
  }
3669
3699
  });
3670
3700
  },
3701
+ renderRule: function renderRule(id, onInput, force) {
3702
+ var flag = _typeof(id) === 'object';
3703
+ var ctx = flag ? byCtx(id) : h.getCtx(id);
3704
+ return ctx ? h.$render.createRuleVnode(ctx, onInput, force) : undefined;
3705
+ },
3706
+ renderChildren: function renderChildren(id, onInput, force) {
3707
+ var flag = _typeof(id) === 'object';
3708
+ var ctx = flag ? byCtx(id) : h.getCtx(id);
3709
+ return ctx ? h.$render.createChildrenVnodes(ctx, onInput, force) : undefined;
3710
+ },
3671
3711
  nextTick: function nextTick(fn) {
3672
3712
  h.bus.$once('next-tick', fn);
3673
3713
  h.refresh();
@@ -3734,7 +3774,11 @@ function Api(h) {
3734
3774
  }, opt.wait == null ? 1000 : opt.wait);
3735
3775
  },
3736
3776
  getData: function getData(id, def) {
3737
- return h.fc.getLoadData(id, def);
3777
+ if (h.fc.get) {
3778
+ return h.fc.get(id, def);
3779
+ } else {
3780
+ return h.fc.getLoadData(id, def);
3781
+ }
3738
3782
  },
3739
3783
  watchData: function watchData(fn) {
3740
3784
  return h.fc.watchLoadData(function (get, change) {
@@ -3971,7 +4015,7 @@ function useRender$1(Render) {
3971
4015
  if (ctx.type === 'hidden') return;
3972
4016
  var rule = ctx.rule;
3973
4017
 
3974
- if (!this.cache[ctx.id] || this.cache[ctx.id].slot !== rule.slot) {
4018
+ if (this.force || !this.cache[ctx.id] || this.cache[ctx.id].slot !== rule.slot) {
3975
4019
  var vn;
3976
4020
  ctx.initProp();
3977
4021
  this.mergeGlobal(ctx);
@@ -4023,6 +4067,18 @@ function useRender$1(Render) {
4023
4067
 
4024
4068
  Object.keys(prop.renderSlots || {}).forEach(function (key) {
4025
4069
  children[key] = function () {
4070
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
4071
+ args[_key2] = arguments[_key2];
4072
+ }
4073
+
4074
+ if (is.Function(prop.renderSlots[key])) {
4075
+ return invoke(function () {
4076
+ var _prop$renderSlots;
4077
+
4078
+ return (_prop$renderSlots = prop.renderSlots)[key].apply(_prop$renderSlots, args);
4079
+ });
4080
+ }
4081
+
4026
4082
  var rule = _this4.parseSide(prop.renderSlots[key], ctx);
4027
4083
 
4028
4084
  return _this4.renderRule(rule);
@@ -4201,6 +4257,8 @@ function useRender$1(Render) {
4201
4257
  }];
4202
4258
 
4203
4259
  if (ctx.input) {
4260
+ var tmpInput = this.tmpInput;
4261
+
4204
4262
  if (this.vm.props.disabled === true) {
4205
4263
  ctx.prop.props.disabled = true;
4206
4264
  }
@@ -4208,6 +4266,8 @@ function useRender$1(Render) {
4208
4266
  var field = this.getModelField(ctx);
4209
4267
  var model = {
4210
4268
  callback: function callback(value) {
4269
+ tmpInput && tmpInput(ctx.field, value, ctx.rule);
4270
+
4211
4271
  _this7.onInput(ctx, value);
4212
4272
  },
4213
4273
  modelField: field,
@@ -4280,6 +4340,23 @@ function useRender$1(Render) {
4280
4340
  if (this.vNode[ctx.originType]) return this.vNode[ctx.originType](prop, children);
4281
4341
  return this.vNode.make(lower(prop.type), prop, children);
4282
4342
  },
4343
+ createChildrenVnodes: function createChildrenVnodes(ctx, onInput, force) {
4344
+ this.force = force !== false;
4345
+ this.tmpInput = onInput;
4346
+ var res = this.renderChildren(ctx.rule.children, ctx);
4347
+ this.force = false;
4348
+ this.tmpInput = null;
4349
+ return res;
4350
+ },
4351
+ createRuleVnode: function createRuleVnode(ctx, onInput, force) {
4352
+ this.force = force !== false;
4353
+ this.tmpInput = onInput;
4354
+ var slotBag = makeSlotBag();
4355
+ this.renderSlot(slotBag, ctx, ctx.parent);
4356
+ this.force = false;
4357
+ this.tmpInput = null;
4358
+ return slotBag.getSlots();
4359
+ },
4283
4360
  renderRule: function renderRule(rule, children, origin) {
4284
4361
  var _this9 = this;
4285
4362
 
@@ -4327,6 +4404,8 @@ function Render(handle) {
4327
4404
  vm: handle.vm,
4328
4405
  $manager: handle.$manager,
4329
4406
  vNode: new handle.fc.CreateNode(handle.vm),
4407
+ force: false,
4408
+ tmpInput: null,
4330
4409
  id: id$1++
4331
4410
  });
4332
4411
  funcProxy(this, {
@@ -4473,7 +4552,7 @@ function useInject(Handler) {
4473
4552
  fn.__json = _fn.__json;
4474
4553
  return fn;
4475
4554
  },
4476
- loadStrVar: function loadStrVar(str, get) {
4555
+ loadStrVar: function loadStrVar(str, get, group) {
4477
4556
  var _this3 = this;
4478
4557
 
4479
4558
  if (str && typeof str === 'string' && str.indexOf('{{') > -1 && str.indexOf('}}') > -1) {
@@ -4486,7 +4565,29 @@ function useInject(Handler) {
4486
4565
 
4487
4566
  if (field) {
4488
4567
  var def = (split[1] || '').trim();
4489
- var val = get ? get(field, def) : _this3.fc.getLoadData(field, def);
4568
+ var val;
4569
+ var flag = false;
4570
+
4571
+ if (group && field.indexOf('$form.') === 0) {
4572
+ var _split = field.split('.');
4573
+
4574
+ _split.shift();
4575
+
4576
+ if (hasProperty(group.value, _split[0])) {
4577
+ flag = true;
4578
+ val = get ? get({
4579
+ id: '$form.' + _split[0] + '_' + group.rule.__fc__.id,
4580
+ getValue: function getValue() {
4581
+ return deepGet(group.value, _split);
4582
+ }
4583
+ }) : deepGet(group.value, _split);
4584
+ }
4585
+ }
4586
+
4587
+ if (!flag) {
4588
+ val = get ? get(field, def) : _this3.fc.getLoadData(field, def);
4589
+ }
4590
+
4490
4591
  lastVal = val;
4491
4592
  str = str.replaceAll("{{".concat(v, "}}"), val == null ? '' : val);
4492
4593
  }
@@ -4499,11 +4600,20 @@ function useInject(Handler) {
4499
4600
 
4500
4601
  return str;
4501
4602
  },
4502
- loadFetchVar: function loadFetchVar(options, get) {
4603
+ loadFetchVar: function loadFetchVar(options, get, rule) {
4503
4604
  var _this4 = this;
4504
4605
 
4606
+ var group;
4607
+
4608
+ if (rule && rule.__fc__) {
4609
+ group = rule.__fc__.getParentGroup();
4610
+ }
4611
+
4505
4612
  var loadVal = function loadVal(str) {
4506
- return _this4.loadStrVar(str, get);
4613
+ return _this4.loadStrVar(str, get, group ? {
4614
+ rule: rule,
4615
+ value: _this4.subRuleData[group.id] || {}
4616
+ } : null);
4507
4617
  };
4508
4618
 
4509
4619
  options.action = loadVal(options.action || '');
@@ -5226,7 +5336,7 @@ function useLoader(Handler) {
5226
5336
  hideLst[valid ? 'push' : 'unshift'](function () {
5227
5337
  if (method === 'disabled' || method === 'enabled') {
5228
5338
  _this7.api.disabled(!valid, rule);
5229
- } else if (method === 'display') {
5339
+ } else if (method === 'display' || method === 'show') {
5230
5340
  _this7.api.display(valid, rule);
5231
5341
  } else if (method === 'required') {
5232
5342
  rule.forEach(function (item) {
@@ -5236,6 +5346,8 @@ function useLoader(Handler) {
5236
5346
  if (!valid) {
5237
5347
  _this7.api.clearValidateState(rule);
5238
5348
  }
5349
+ } else if (method === 'if') {
5350
+ _this7.api.hidden(!valid, rule);
5239
5351
  } else {
5240
5352
  _this7.api.hidden(!valid, rule);
5241
5353
  }
@@ -5826,8 +5938,10 @@ function useContext(Handler) {
5826
5938
  var match = temp.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
5827
5939
 
5828
5940
  if (match) {
5941
+ var _ctx$refRule, _ctx$refRule$__$title;
5942
+
5829
5943
  temp.message = _this.api.t(match[1], {
5830
- title: ctx.refRule.__$title.value
5944
+ title: (_ctx$refRule = ctx.refRule) === null || _ctx$refRule === void 0 ? void 0 : (_ctx$refRule$__$title = _ctx$refRule.__$title) === null || _ctx$refRule$__$title === void 0 ? void 0 : _ctx$refRule$__$title.value
5831
5945
  });
5832
5946
  }
5833
5947
  }
@@ -5974,7 +6088,9 @@ function useContext(Handler) {
5974
6088
  return one.handler(_this2.api, ctx.rule);
5975
6089
  });
5976
6090
  } else {
5977
- flag = new Function('$condition', '$val', '$form', '$group', '$rule', "with($form){with(this){with($group){ return $condition['".concat(one.condition, "'](").concat(field, ", ").concat(compare ? compare : '$val', "); }}}")).call(_this2.api.form, condition, one.value, _this2.api.top.form, group ? _this2.subRuleData[group.id] || {} : {}, ctx.rule);
6091
+ flag = invoke(function () {
6092
+ return new Function('$condition', '$val', '$form', '$scope', '$group', '$rule', "with($form){with($scope){with(this){with($group){ return $condition['".concat(one.condition, "'](").concat(field, ", ").concat(compare ? compare : '$val', "); }}}}")).call(_this2.api.form, condition, one.value, _this2.api.top.form, _this2.api.top === _this2.api.scope ? {} : _this2.api.scope.form, group ? _this2.subRuleData[group.id] || {} : {}, ctx.rule);
6093
+ });
5978
6094
  }
5979
6095
 
5980
6096
  if (or && flag) {
@@ -6041,7 +6157,7 @@ function useContext(Handler) {
6041
6157
 
6042
6158
  return obj;
6043
6159
  }, {});
6044
- return new Function('$formulas', '$form', '$group', '$rule', '$api', "with($form){with(this){with($group){with($formulas){ return ".concat(str, " }}}}")).call(this.api.form, formulas, this.api.top.form, group ? this.subRuleData[group.id] || {} : {}, ctx.rule, this.api);
6160
+ return new Function('$formulas', '$form', '$scope', '$group', '$rule', '$api', "with($form){with($scope){with(this){with($group){with($formulas){ return ".concat(str, " }}}}}")).call(this.api.form, formulas, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, group ? this.subRuleData[group.id] || {} : {}, ctx.rule, this.api);
6045
6161
  },
6046
6162
  updateChildren: function updateChildren(ctx, n, o) {
6047
6163
  var _this3 = this;
@@ -6182,8 +6298,11 @@ function useLifecycle(Handler) {
6182
6298
  hook.forEach(function (fn) {
6183
6299
  invoke(function () {
6184
6300
  return fn(_objectSpread2(_objectSpread2({}, args || {}), {}, {
6301
+ self: ctx.rule,
6185
6302
  rule: ctx.rule,
6186
- api: _this2.api
6303
+ $f: _this2.api,
6304
+ api: _this2.api,
6305
+ option: _this2.vm.props.option
6187
6306
  }));
6188
6307
  });
6189
6308
  });
@@ -6437,10 +6556,10 @@ extend(Handler.prototype, {
6437
6556
  isBreakWatch: function isBreakWatch() {
6438
6557
  return this.loading || this.noWatchFn || this.reloading;
6439
6558
  },
6440
- beforeFetch: function beforeFetch(opt) {
6559
+ globalBeforeFetch: function globalBeforeFetch(opt) {
6441
6560
  var _this2 = this;
6442
6561
 
6443
- return new Promise(function (resolve) {
6562
+ return new Promise(function (resolve, reject) {
6444
6563
  var source = _this2.options.beforeFetch && invoke(function () {
6445
6564
  return _this2.options.beforeFetch(opt, {
6446
6565
  api: _this2.api
@@ -6448,11 +6567,32 @@ extend(Handler.prototype, {
6448
6567
  });
6449
6568
 
6450
6569
  if (source && is.Function(source.then)) {
6451
- source.then(resolve);
6570
+ source.then(resolve)["catch"](reject);
6452
6571
  } else {
6453
6572
  resolve();
6454
6573
  }
6455
6574
  });
6575
+ },
6576
+ beforeFetch: function beforeFetch(opt) {
6577
+ var _this3 = this;
6578
+
6579
+ return new Promise(function (resolve, reject) {
6580
+ var res = opt && opt.beforeFetch && invoke(function () {
6581
+ return opt.beforeFetch(opt, {
6582
+ api: _this3.api
6583
+ });
6584
+ });
6585
+
6586
+ if (res && is.Function(res.then)) {
6587
+ res.then(resolve)["catch"](reject);
6588
+ } else if (res === false) {
6589
+ reject();
6590
+ } else {
6591
+ resolve();
6592
+ }
6593
+ }).then(function () {
6594
+ return _this3.globalBeforeFetch(opt);
6595
+ });
6456
6596
  }
6457
6597
  });
6458
6598
  useInject(Handler);
@@ -6654,7 +6794,7 @@ var loadData = function loadData(fc) {
6654
6794
  var loadData = {
6655
6795
  name: 'loadData',
6656
6796
  _fn: [],
6657
- loaded: function loaded(inject, rule, api) {
6797
+ mounted: function mounted(inject, rule, api) {
6658
6798
  this.deleted(inject);
6659
6799
  var attrs = toArray(inject.getValue());
6660
6800
  var unwatchs = [];
@@ -6908,7 +7048,7 @@ var fetch = function fetch(fc) {
6908
7048
  return fetchAttr._fn[inject.id]();
6909
7049
  }
6910
7050
 
6911
- var _option = fc.$handle.loadFetchVar(deepCopy(option), get);
7051
+ var _option = fc.$handle.loadFetchVar(deepCopy(option), get, rule);
6912
7052
 
6913
7053
  var config = _objectSpread2(_objectSpread2({
6914
7054
  headers: {}
@@ -7149,10 +7289,12 @@ function FormCreateFactory(config) {
7149
7289
  var globalConfig = {
7150
7290
  global: {}
7151
7291
  };
7152
- var loadData = reactive({});
7292
+ var isMobile = config.isMobile === true;
7293
+ var loadData = reactive({
7294
+ $mobile: isMobile
7295
+ });
7153
7296
  var CreateNode = CreateNodeFactory();
7154
7297
  var formulas = {};
7155
- var isMobile = config.isMobile === true;
7156
7298
  var prototype = {};
7157
7299
  exportAttrs(config.attrs || {});
7158
7300
 
@@ -7408,9 +7550,9 @@ function FormCreateFactory(config) {
7408
7550
  components: components,
7409
7551
  directives: directives
7410
7552
  },
7553
+ get: null,
7411
7554
  drivers: drivers,
7412
7555
  renderDriver: null,
7413
- get: null,
7414
7556
  refreshData: refreshData,
7415
7557
  loadData: loadData,
7416
7558
  CreateNode: CreateNode,
@@ -7635,11 +7777,18 @@ function FormCreateFactory(config) {
7635
7777
  var handle = is.Function(option) ? option : parseFn(option.handle);
7636
7778
 
7637
7779
  if (handle) {
7638
- return deepGet(invoke(function () {
7639
- return handle(_this5.get || function () {
7640
- return _this5.getLoadData.apply(_this5, arguments);
7641
- }, _this5.$handle.api);
7642
- }), split);
7780
+ var val;
7781
+ var unwatch = this.watchLoadData(function (get, flag) {
7782
+ if (flag) {
7783
+ _this5.bus.$emit('$loadData.$var.' + key);
7784
+
7785
+ unwatch();
7786
+ } else {
7787
+ val = handle(get, _this5.$handle.api);
7788
+ }
7789
+ });
7790
+ this.unwatch.push(unwatch);
7791
+ return val;
7643
7792
  }
7644
7793
  }
7645
7794
  },
@@ -7659,9 +7808,11 @@ function FormCreateFactory(config) {
7659
7808
  var key = split.shift();
7660
7809
 
7661
7810
  if (key === '$topForm') {
7662
- val = this.$handle.api.top.formData();
7811
+ val = this.$handle.api.top.formData(true);
7812
+ } else if (key === '$scopeForm') {
7813
+ val = this.$handle.api.scope.formData(true);
7663
7814
  } else if (key === '$form') {
7664
- val = this.$handle.api.formData();
7815
+ val = this.$handle.api.formData(true);
7665
7816
  } else if (key === '$options') {
7666
7817
  val = this.options.value;
7667
7818
  } else if (key === '$globalData') {
@@ -7676,6 +7827,8 @@ function FormCreateFactory(config) {
7676
7827
  } else if (key === '$t') {
7677
7828
  val = this.globalLanguageDriver(split.join('.'));
7678
7829
  split = [];
7830
+ } else if (key === '$preview') {
7831
+ return this.$handle.preview;
7679
7832
  } else {
7680
7833
  var tmpData = this.vm.setupState.top.setupState.fc.tmpData;
7681
7834
 
@@ -7714,18 +7867,25 @@ function FormCreateFactory(config) {
7714
7867
  };
7715
7868
 
7716
7869
  var get = function get(id, def) {
7870
+ var getValue;
7871
+
7872
+ if (_typeof(id) === 'object') {
7873
+ getValue = id.getValue;
7874
+ id = id.id;
7875
+ }
7876
+
7717
7877
  if (unwatch[id]) {
7718
7878
  return unwatch[id].val;
7719
7879
  }
7720
7880
 
7721
7881
  var data = computed(function () {
7722
- return _this6.getLoadData(id, def);
7882
+ return getValue ? getValue() : _this6.getLoadData(id, def);
7723
7883
  });
7724
7884
  var split = id.split('.');
7725
7885
  var key = split.shift();
7726
7886
  var key2 = split.shift() || '';
7727
7887
  var callback = debounce(function () {
7728
- var temp = _this6.getLoadData(id, def);
7888
+ var temp = getValue ? getValue() : _this6.getLoadData(id, def);
7729
7889
 
7730
7890
  if (!unwatch[id]) {
7731
7891
  return;
@@ -8348,7 +8508,9 @@ var manager = {
8348
8508
  },
8349
8509
  makeInfo: function makeInfo(rule, uni, ctx) {
8350
8510
  var _ctx$refRule,
8511
+ _ctx$refRule$__$title,
8351
8512
  _ctx$refRule2,
8513
+ _ctx$refRule2$__$titl,
8352
8514
  _this5 = this;
8353
8515
 
8354
8516
  var titleProp = _objectSpread2({}, rule.title);
@@ -8359,10 +8521,10 @@ var manager = {
8359
8521
  var form = this.options.form;
8360
8522
  var titleSlot = this.getSlot('title');
8361
8523
  var children = [titleSlot ? titleSlot({
8362
- title: (_ctx$refRule = ctx.refRule) === null || _ctx$refRule === void 0 ? void 0 : _ctx$refRule.__$title.value,
8524
+ title: (_ctx$refRule = ctx.refRule) === null || _ctx$refRule === void 0 ? void 0 : (_ctx$refRule$__$title = _ctx$refRule.__$title) === null || _ctx$refRule$__$title === void 0 ? void 0 : _ctx$refRule$__$title.value,
8363
8525
  rule: ctx.rule,
8364
8526
  options: this.options
8365
- }) : ((_ctx$refRule2 = ctx.refRule) === null || _ctx$refRule2 === void 0 ? void 0 : _ctx$refRule2.__$title.value) + (form.labelSuffix || form['label-suffix'] || '')];
8527
+ }) : ((_ctx$refRule2 = ctx.refRule) === null || _ctx$refRule2 === void 0 ? void 0 : (_ctx$refRule2$__$titl = _ctx$refRule2.__$title) === null || _ctx$refRule2$__$titl === void 0 ? void 0 : _ctx$refRule2$__$titl.value) + (form.labelSuffix || form['label-suffix'] || '')];
8366
8528
 
8367
8529
  if (!isFalse(infoProp.show) && (infoProp.info || infoProp["native"]) && !isFalse(infoProp.icon)) {
8368
8530
  var prop = {
@@ -8378,9 +8540,9 @@ var manager = {
8378
8540
  var field = 'content';
8379
8541
 
8380
8542
  if (infoProp.info && !hasProperty(prop.props, field)) {
8381
- var _ctx$refRule3;
8543
+ var _ctx$refRule3, _ctx$refRule3$__$info;
8382
8544
 
8383
- prop.props[field] = (_ctx$refRule3 = ctx.refRule) === null || _ctx$refRule3 === void 0 ? void 0 : _ctx$refRule3.__$info.value;
8545
+ prop.props[field] = (_ctx$refRule3 = ctx.refRule) === null || _ctx$refRule3 === void 0 ? void 0 : (_ctx$refRule3$__$info = _ctx$refRule3.__$info) === null || _ctx$refRule3$__$info === void 0 ? void 0 : _ctx$refRule3$__$info.value;
8384
8546
  }
8385
8547
 
8386
8548
  children[infoProp.align !== 'left' ? 'unshift' : 'push'](this.$r(mergeProps([infoProp, prop]), _defineProperty({}, titleProp.slot || (isTip ? 'default' : 'reference'), function () {
@@ -8779,6 +8941,8 @@ var required = {
8779
8941
  inject.clearProp();
8780
8942
  api.clearValidateState([rule.field]);
8781
8943
  } else {
8944
+ var _rule$__fc__$refRule$;
8945
+
8782
8946
  var validate = _objectSpread2({
8783
8947
  required: true,
8784
8948
  validator: function validator(_, v, call) {
@@ -8786,7 +8950,7 @@ var required = {
8786
8950
  }
8787
8951
  }, val);
8788
8952
 
8789
- var title = rule.__fc__.refRule.__$title.value;
8953
+ var title = (_rule$__fc__$refRule$ = rule.__fc__.refRule.__$title) === null || _rule$__fc__$refRule$ === void 0 ? void 0 : _rule$__fc__$refRule$.value;
8790
8954
 
8791
8955
  if (!validate.message) {
8792
8956
  validate.message = api.t('required', {
@@ -8859,7 +9023,7 @@ function install(FormCreate) {
8859
9023
  function elmFormCreate() {
8860
9024
  return FormCreateFactory({
8861
9025
  ui: 'element-ui',
8862
- version: '3.2.18',
9026
+ version: '3.2.20',
8863
9027
  manager: manager,
8864
9028
  extendApi: extendApi,
8865
9029
  install: install,