@form-create/element-ui 3.2.38 → 3.2.40

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
@@ -12,6 +12,8 @@
12
12
  <span>&nbsp;|&nbsp;</span>
13
13
  <a href="https://form-create.com/v3/guide/" target="_blank">帮助文档</a>
14
14
  <span>&nbsp;|&nbsp;</span>
15
+ <a href="https://view.form-create.com/skills" target="_blank">Agent Skills</a>
16
+ <span>&nbsp;|&nbsp;</span>
15
17
  <a href="https://pro.form-create.com/view/" target="_blank">可视化表单设计器</a>
16
18
  <span>&nbsp;|&nbsp;</span>
17
19
  <a href="https://pro.form-create.com/mobile/" target="_blank">移动端表单设计器</a>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @form-create/element-ui v3.2.38
2
+ * @form-create/element-ui v3.2.40
3
3
  * (c) 2018-2026 xaboy
4
4
  * Github https://github.com/xaboy/form-create
5
5
  * Released under the MIT License.
@@ -371,7 +371,7 @@ var Checkbox = defineComponent({
371
371
  var name = this.type === 'button' ? 'ElCheckboxButton' : 'ElCheckbox';
372
372
  var Type = resolveComponent(name);
373
373
  return createVNode(resolveComponent("ElCheckboxGroup"), mergeProps$1(this.$attrs, {
374
- "modelValue": this.value,
374
+ "modelValue": this.value === null ? undefined : this.value,
375
375
  "onUpdate:modelValue": this.onInput,
376
376
  "ref": "el"
377
377
  }), _objectSpread2({
@@ -4337,6 +4337,8 @@ function useRender$1(Render) {
4337
4337
  }
4338
4338
 
4339
4339
  vn = function vn() {
4340
+ var _prop$col;
4341
+
4340
4342
  for (var _len = arguments.length, slotValue = new Array(_len), _key = 0; _key < _len; _key++) {
4341
4343
  slotValue[_key] = arguments[_key];
4342
4344
  }
@@ -4399,7 +4401,7 @@ function useRender$1(Render) {
4399
4401
 
4400
4402
  _vn = _this4.renderSides(_vn, ctx);
4401
4403
 
4402
- if (!(!ctx.input && is.Undef(prop["native"])) && prop["native"] !== true) {
4404
+ if ((!(!ctx.input && is.Undef(prop["native"])) || ((_prop$col = prop.col) === null || _prop$col === void 0 ? void 0 : _prop$col.show) === true) && prop["native"] !== true) {
4403
4405
  _this4.fc.targetFormDriver('updateWrap', ctx);
4404
4406
 
4405
4407
  _vn = _this4.$manager.makeWrap(ctx, _vn);
@@ -4547,6 +4549,11 @@ function useRender$1(Render) {
4547
4549
 
4548
4550
  _this7.onMounted(ctx, vn.el);
4549
4551
  },
4552
+ vnodeBeforeUnmount: function vnodeBeforeUnmount() {
4553
+ _this7.$handle.effect(ctx, 'beforeUnmount');
4554
+
4555
+ _this7.$handle.targetHook(ctx, 'beforeUnmount');
4556
+ },
4550
4557
  'fc.updateValue': function fcUpdateValue(data) {
4551
4558
  _this7.$handle.onUpdateValue(ctx, data);
4552
4559
  },
@@ -5237,6 +5244,7 @@ extend(RuleContext.prototype, {
5237
5244
  },
5238
5245
  initProp: function initProp() {
5239
5246
  var _this3 = this,
5247
+ _rule$col,
5240
5248
  _this$refRule,
5241
5249
  _this$refRule$__$vali;
5242
5250
 
@@ -5247,6 +5255,11 @@ extend(RuleContext.prototype, {
5247
5255
  this.prop = mergeRule({}, [rule].concat(_toConsumableArray(Object.keys(this.payload).map(function (k) {
5248
5256
  return _this3.payload[k];
5249
5257
  })), [this.computed]));
5258
+
5259
+ if (rule.col && ((_rule$col = rule.col) === null || _rule$col === void 0 ? void 0 : _rule$col.show) !== false) {
5260
+ this.prop.col.show = true;
5261
+ }
5262
+
5250
5263
  this.prop.validate = [].concat(_toConsumableArray(((_this$refRule = this.refRule) === null || _this$refRule === void 0 ? void 0 : (_this$refRule$__$vali = _this$refRule.__$validate) === null || _this$refRule$__$vali === void 0 ? void 0 : _this$refRule$__$vali.value) || []), _toConsumableArray(this.prop.validate || []));
5251
5264
  },
5252
5265
  initNone: function initNone() {
@@ -9320,7 +9333,7 @@ var manager = {
9320
9333
  var cls = rule.wrap["class"];
9321
9334
  delete rule.wrap["class"];
9322
9335
  delete rule.wrap.title;
9323
- var item = isFalse(rule.wrap.show) ? children : this.$r(mergeProps([rule.wrap, {
9336
+ var item = (is.Undef(rule.wrap.show) ? !ctx.input : isFalse(rule.wrap.show)) ? children : this.$r(mergeProps([rule.wrap, {
9324
9337
  props: _objectSpread2(_objectSpread2({
9325
9338
  labelWidth: labelWidth === void 0 ? labelWidth : toString(labelWidth),
9326
9339
  label: isTitle ? rule.title.title : undefined
@@ -9426,7 +9439,9 @@ var manager = {
9426
9439
  return this.$r(_prop, children);
9427
9440
  },
9428
9441
  makeCol: function makeCol(rule, uni, children) {
9429
- var col = rule.col;
9442
+ var col = _objectSpread2({}, rule.col);
9443
+
9444
+ delete col.show;
9430
9445
  return this.$r({
9431
9446
  "class": this.$render.mergeClass(col["class"], 'fc-form-col'),
9432
9447
  type: 'col',
@@ -9897,7 +9912,7 @@ function install(FormCreate) {
9897
9912
  function elmFormCreate() {
9898
9913
  return FormCreateFactory({
9899
9914
  ui: 'element-ui',
9900
- version: '3.2.38',
9915
+ version: '3.2.40',
9901
9916
  manager: manager,
9902
9917
  extendApi: extendApi,
9903
9918
  install: install,