@form-create/element-ui 3.2.37 → 3.2.39

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.37
2
+ * @form-create/element-ui v3.2.39
3
3
  * (c) 2018-2026 xaboy
4
4
  * Github https://github.com/xaboy/form-create
5
5
  * Released under the MIT License.
@@ -375,7 +375,7 @@
375
375
  var name = this.type === 'button' ? 'ElCheckboxButton' : 'ElCheckbox';
376
376
  var Type = vue.resolveComponent(name);
377
377
  return vue.createVNode(vue.resolveComponent("ElCheckboxGroup"), vue.mergeProps(this.$attrs, {
378
- "modelValue": this.value,
378
+ "modelValue": this.value === null ? undefined : this.value,
379
379
  "onUpdate:modelValue": this.onInput,
380
380
  "ref": "el"
381
381
  }), _objectSpread2({
@@ -2158,35 +2158,39 @@
2158
2158
 
2159
2159
  var canMoveUp = index > 0;
2160
2160
  var canMoveDown = index < total - 1;
2161
+ var btn = [];
2161
2162
 
2162
2163
  if (!canMoveUp && !canMoveDown) {
2163
- return null;
2164
+ return btn;
2164
2165
  }
2165
2166
 
2166
- if (canMoveUp && canMoveDown) {
2167
+ if (this.type === 'card' && canMoveUp && canMoveDown) {
2167
2168
  // 显示合并的上下箭头按钮
2168
- return vue.createVNode("div", {
2169
+ btn.push(vue.createVNode("div", {
2169
2170
  "class": "_fc-group-btn _fc-group-sort"
2170
2171
  }, [vue.createVNode("div", {
2171
- "class": "_fc-group-sort-up",
2172
+ "class": " _fc-group-sort-up",
2172
2173
  "onClick": function onClick() {
2173
2174
  return _this12.changeSort(index, -1);
2174
2175
  }
2175
2176
  }, null), vue.createVNode("div", {
2176
- "class": "_fc-group-sort-down",
2177
+ "class": " _fc-group-sort-down",
2177
2178
  "onClick": function onClick() {
2178
2179
  return _this12.changeSort(index, 1);
2179
2180
  }
2180
- }, null)]);
2181
+ }, null)]));
2182
+ return btn;
2181
2183
  }
2182
2184
 
2183
2185
  if (canMoveUp) {
2184
- return this.sortUpIcon(index);
2186
+ btn.push(this.sortUpIcon(index));
2185
2187
  }
2186
2188
 
2187
2189
  if (canMoveDown) {
2188
- return this.sortDownIcon(index);
2190
+ btn.push(this.sortDownIcon(index));
2189
2191
  }
2192
+
2193
+ return btn;
2190
2194
  },
2191
2195
  makeIcon: function makeIcon(total, index, key) {
2192
2196
  var _this13 = this;
@@ -2218,7 +2222,7 @@
2218
2222
  var sortBtn = this.sortIcon(index, total);
2219
2223
 
2220
2224
  if (sortBtn) {
2221
- btn.push(sortBtn);
2225
+ btn.push.apply(btn, _toConsumableArray(sortBtn));
2222
2226
  }
2223
2227
  }
2224
2228
 
@@ -4399,7 +4403,7 @@
4399
4403
 
4400
4404
  _vn = _this4.renderSides(_vn, ctx);
4401
4405
 
4402
- if (!(!ctx.input && is.Undef(prop["native"])) && prop["native"] !== true) {
4406
+ if ((ctx.input || !is.Undef(prop["native"]) || prop.col.show !== false) && prop["native"] !== true) {
4403
4407
  _this4.fc.targetFormDriver('updateWrap', ctx);
4404
4408
 
4405
4409
  _vn = _this4.$manager.makeWrap(ctx, _vn);
@@ -4547,6 +4551,11 @@
4547
4551
 
4548
4552
  _this7.onMounted(ctx, vn.el);
4549
4553
  },
4554
+ vnodeBeforeUnmount: function vnodeBeforeUnmount() {
4555
+ _this7.$handle.effect(ctx, 'beforeUnmount');
4556
+
4557
+ _this7.$handle.targetHook(ctx, 'beforeUnmount');
4558
+ },
4550
4559
  'fc.updateValue': function fcUpdateValue(data) {
4551
4560
  _this7.$handle.onUpdateValue(ctx, data);
4552
4561
  },
@@ -9320,7 +9329,7 @@
9320
9329
  var cls = rule.wrap["class"];
9321
9330
  delete rule.wrap["class"];
9322
9331
  delete rule.wrap.title;
9323
- var item = isFalse(rule.wrap.show) ? children : this.$r(mergeProps([rule.wrap, {
9332
+ var item = (is.Undef(rule.wrap.show) ? !ctx.input : isFalse(rule.wrap.show)) ? children : this.$r(mergeProps([rule.wrap, {
9324
9333
  props: _objectSpread2(_objectSpread2({
9325
9334
  labelWidth: labelWidth === void 0 ? labelWidth : toString(labelWidth),
9326
9335
  label: isTitle ? rule.title.title : undefined
@@ -9897,7 +9906,7 @@
9897
9906
  function elmFormCreate() {
9898
9907
  return FormCreateFactory({
9899
9908
  ui: 'element-ui',
9900
- version: '3.2.37',
9909
+ version: '3.2.39',
9901
9910
  manager: manager,
9902
9911
  extendApi: extendApi,
9903
9912
  install: install,