@form-create/element-ui 3.2.31 → 3.2.33

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.31
2
+ * @form-create/element-ui v3.2.33
3
3
  * (c) 2018-2025 xaboy
4
4
  * Github https://github.com/xaboy/form-create
5
5
  * Released under the MIT License.
@@ -4593,7 +4593,7 @@
4593
4593
  var slotBag = makeSlotBag();
4594
4594
  children.map(function (child) {
4595
4595
  if (!child) return;
4596
- if (is.String(child)) return slotBag.setSlot(null, child);
4596
+ if (is.String(child) || is.Number(child)) return slotBag.setSlot(null, "".concat(child));
4597
4597
 
4598
4598
  if (child.__fc__) {
4599
4599
  return _this8.renderSlot(slotBag, child.__fc__, ctx);
@@ -4645,7 +4645,7 @@
4645
4645
  var _this9 = this;
4646
4646
 
4647
4647
  if (!rule) return undefined;
4648
- if (is.String(rule)) return rule;
4648
+ if (is.String(rule) || is.Number(rule)) return "".concat(rule);
4649
4649
  var type;
4650
4650
 
4651
4651
  if (origin) {
@@ -6199,7 +6199,7 @@
6199
6199
  });
6200
6200
  }
6201
6201
 
6202
- if (key === 'ignore' && ctx.input || key === 'hidden' && ctx.input && (ctx.rule.ignore === 'hidden' || _this.options.ignoreHiddenFields)) {
6202
+ if (key === 'ignore' && ctx.input || key === 'hidden' && (ctx.rule.ignore === 'hidden' || _this.options.ignoreHiddenFields)) {
6203
6203
  _this.syncForm();
6204
6204
  } else if (key === 'link') {
6205
6205
  ctx.link();
@@ -6452,7 +6452,7 @@
6452
6452
  return this.$manager.adapterValidate({
6453
6453
  required: validate.required,
6454
6454
  message: validate.message,
6455
- target: validate.trigger
6455
+ trigger: validate.trigger
6456
6456
  }, validator);
6457
6457
  },
6458
6458
  getValidateMessage: function getValidateMessage(ctx, invalid) {
@@ -6701,9 +6701,10 @@
6701
6701
  var one = item.group[i];
6702
6702
  var flag = void 0;
6703
6703
  var field = null;
6704
+ var variableVal = null;
6704
6705
 
6705
6706
  if (one.variable) {
6706
- field = JSON.stringify(_this4.fc.getLoadData(one.variable)) || '';
6707
+ variableVal = _this4.fc.getLoadData(one.variable);
6707
6708
  } else if (one.field) {
6708
6709
  field = convertFieldToConditions(one.field || '');
6709
6710
  } else if (!one.mode) {
@@ -6728,7 +6729,7 @@
6728
6729
  });
6729
6730
  } else {
6730
6731
  flag = invoke(function () {
6731
- 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(_this4.api.form, condition, one.value, _this4.api.top.form, _this4.api.top === _this4.api.scope ? {} : _this4.api.scope.form, group ? _this4.subRuleData[group.id] || {} : {}, ctx.rule);
6732
+ return new Function('$condition', '$variableVal', '$val', '$form', '$scope', '$group', '$rule', "with($form){with($scope){with(this){with($group){ return $condition['".concat(one.condition, "'](").concat(one.variable ? '$variableVal' : field, ", ").concat(compare ? compare : '$val', "); }}}}")).call(_this4.api.form, condition, variableVal, one.value, _this4.api.top.form, _this4.api.top === _this4.api.scope ? {} : _this4.api.scope.form, group ? _this4.subRuleData[group.id] || {} : {}, ctx.rule);
6732
6733
  });
6733
6734
  }
6734
6735
 
@@ -9378,7 +9379,18 @@
9378
9379
  props: tidyRule(titleProp),
9379
9380
  key: "".concat(uni, "tit"),
9380
9381
  "class": 'fc-form-title',
9381
- type: titleProp.type || 'span'
9382
+ type: titleProp.type || 'span',
9383
+ on: {
9384
+ click: function click() {
9385
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9386
+ args[_key] = arguments[_key];
9387
+ }
9388
+
9389
+ _this5.$handle.targetHook(ctx, 'titleClick', {
9390
+ args: args
9391
+ });
9392
+ }
9393
+ }
9382
9394
  }]);
9383
9395
 
9384
9396
  delete _prop.props.show;
@@ -9847,7 +9859,7 @@
9847
9859
  function elmFormCreate() {
9848
9860
  return FormCreateFactory({
9849
9861
  ui: 'element-ui',
9850
- version: '3.2.31',
9862
+ version: '3.2.33',
9851
9863
  manager: manager,
9852
9864
  extendApi: extendApi,
9853
9865
  install: install,