@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.
package/README.md CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  **FormCreate 是一个可以通过 JSON 生成具有动态渲染、数据收集、验证和提交功能的低代码表单生成组件。支持6个UI框架,适配移动端,并且支持生成任何 Vue 组件。内置20种常用表单组件和自定义组件,再复杂的表单都可以轻松搞定。**
26
26
 
27
- [![FcDesigner](https://static.form-create.com/file/img/banner-m2.jpg)](https://pro.form-create.com/view)
27
+ [![FcDesigner](https://static.form-create.com/file/img/banner-m2.jpg?20251027)](https://pro.form-create.com/view)
28
28
 
29
29
  ## 特点
30
30
  - 使用JSON数据生成表单
@@ -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.
@@ -4589,7 +4589,7 @@ function useRender$1(Render) {
4589
4589
  var slotBag = makeSlotBag();
4590
4590
  children.map(function (child) {
4591
4591
  if (!child) return;
4592
- if (is.String(child)) return slotBag.setSlot(null, child);
4592
+ if (is.String(child) || is.Number(child)) return slotBag.setSlot(null, "".concat(child));
4593
4593
 
4594
4594
  if (child.__fc__) {
4595
4595
  return _this8.renderSlot(slotBag, child.__fc__, ctx);
@@ -4641,7 +4641,7 @@ function useRender$1(Render) {
4641
4641
  var _this9 = this;
4642
4642
 
4643
4643
  if (!rule) return undefined;
4644
- if (is.String(rule)) return rule;
4644
+ if (is.String(rule) || is.Number(rule)) return "".concat(rule);
4645
4645
  var type;
4646
4646
 
4647
4647
  if (origin) {
@@ -6195,7 +6195,7 @@ function useContext(Handler) {
6195
6195
  });
6196
6196
  }
6197
6197
 
6198
- if (key === 'ignore' && ctx.input || key === 'hidden' && ctx.input && (ctx.rule.ignore === 'hidden' || _this.options.ignoreHiddenFields)) {
6198
+ if (key === 'ignore' && ctx.input || key === 'hidden' && (ctx.rule.ignore === 'hidden' || _this.options.ignoreHiddenFields)) {
6199
6199
  _this.syncForm();
6200
6200
  } else if (key === 'link') {
6201
6201
  ctx.link();
@@ -6448,7 +6448,7 @@ function useContext(Handler) {
6448
6448
  return this.$manager.adapterValidate({
6449
6449
  required: validate.required,
6450
6450
  message: validate.message,
6451
- target: validate.trigger
6451
+ trigger: validate.trigger
6452
6452
  }, validator);
6453
6453
  },
6454
6454
  getValidateMessage: function getValidateMessage(ctx, invalid) {
@@ -6697,9 +6697,10 @@ function useContext(Handler) {
6697
6697
  var one = item.group[i];
6698
6698
  var flag = void 0;
6699
6699
  var field = null;
6700
+ var variableVal = null;
6700
6701
 
6701
6702
  if (one.variable) {
6702
- field = JSON.stringify(_this4.fc.getLoadData(one.variable)) || '';
6703
+ variableVal = _this4.fc.getLoadData(one.variable);
6703
6704
  } else if (one.field) {
6704
6705
  field = convertFieldToConditions(one.field || '');
6705
6706
  } else if (!one.mode) {
@@ -6724,7 +6725,7 @@ function useContext(Handler) {
6724
6725
  });
6725
6726
  } else {
6726
6727
  flag = invoke(function () {
6727
- 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);
6728
+ 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);
6728
6729
  });
6729
6730
  }
6730
6731
 
@@ -9374,7 +9375,18 @@ var manager = {
9374
9375
  props: tidyRule(titleProp),
9375
9376
  key: "".concat(uni, "tit"),
9376
9377
  "class": 'fc-form-title',
9377
- type: titleProp.type || 'span'
9378
+ type: titleProp.type || 'span',
9379
+ on: {
9380
+ click: function click() {
9381
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9382
+ args[_key] = arguments[_key];
9383
+ }
9384
+
9385
+ _this5.$handle.targetHook(ctx, 'titleClick', {
9386
+ args: args
9387
+ });
9388
+ }
9389
+ }
9378
9390
  }]);
9379
9391
 
9380
9392
  delete _prop.props.show;
@@ -9843,7 +9855,7 @@ function install(FormCreate) {
9843
9855
  function elmFormCreate() {
9844
9856
  return FormCreateFactory({
9845
9857
  ui: 'element-ui',
9846
- version: '3.2.31',
9858
+ version: '3.2.33',
9847
9859
  manager: manager,
9848
9860
  extendApi: extendApi,
9849
9861
  install: install,