@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.
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.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.
@@ -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({
@@ -2154,35 +2154,39 @@ var Group = defineComponent({
2154
2154
 
2155
2155
  var canMoveUp = index > 0;
2156
2156
  var canMoveDown = index < total - 1;
2157
+ var btn = [];
2157
2158
 
2158
2159
  if (!canMoveUp && !canMoveDown) {
2159
- return null;
2160
+ return btn;
2160
2161
  }
2161
2162
 
2162
- if (canMoveUp && canMoveDown) {
2163
+ if (this.type === 'card' && canMoveUp && canMoveDown) {
2163
2164
  // 显示合并的上下箭头按钮
2164
- return createVNode("div", {
2165
+ btn.push(createVNode("div", {
2165
2166
  "class": "_fc-group-btn _fc-group-sort"
2166
2167
  }, [createVNode("div", {
2167
- "class": "_fc-group-sort-up",
2168
+ "class": " _fc-group-sort-up",
2168
2169
  "onClick": function onClick() {
2169
2170
  return _this12.changeSort(index, -1);
2170
2171
  }
2171
2172
  }, null), createVNode("div", {
2172
- "class": "_fc-group-sort-down",
2173
+ "class": " _fc-group-sort-down",
2173
2174
  "onClick": function onClick() {
2174
2175
  return _this12.changeSort(index, 1);
2175
2176
  }
2176
- }, null)]);
2177
+ }, null)]));
2178
+ return btn;
2177
2179
  }
2178
2180
 
2179
2181
  if (canMoveUp) {
2180
- return this.sortUpIcon(index);
2182
+ btn.push(this.sortUpIcon(index));
2181
2183
  }
2182
2184
 
2183
2185
  if (canMoveDown) {
2184
- return this.sortDownIcon(index);
2186
+ btn.push(this.sortDownIcon(index));
2185
2187
  }
2188
+
2189
+ return btn;
2186
2190
  },
2187
2191
  makeIcon: function makeIcon(total, index, key) {
2188
2192
  var _this13 = this;
@@ -2214,7 +2218,7 @@ var Group = defineComponent({
2214
2218
  var sortBtn = this.sortIcon(index, total);
2215
2219
 
2216
2220
  if (sortBtn) {
2217
- btn.push(sortBtn);
2221
+ btn.push.apply(btn, _toConsumableArray(sortBtn));
2218
2222
  }
2219
2223
  }
2220
2224
 
@@ -4395,7 +4399,7 @@ function useRender$1(Render) {
4395
4399
 
4396
4400
  _vn = _this4.renderSides(_vn, ctx);
4397
4401
 
4398
- if (!(!ctx.input && is.Undef(prop["native"])) && prop["native"] !== true) {
4402
+ if ((ctx.input || !is.Undef(prop["native"]) || prop.col.show !== false) && prop["native"] !== true) {
4399
4403
  _this4.fc.targetFormDriver('updateWrap', ctx);
4400
4404
 
4401
4405
  _vn = _this4.$manager.makeWrap(ctx, _vn);
@@ -4543,6 +4547,11 @@ function useRender$1(Render) {
4543
4547
 
4544
4548
  _this7.onMounted(ctx, vn.el);
4545
4549
  },
4550
+ vnodeBeforeUnmount: function vnodeBeforeUnmount() {
4551
+ _this7.$handle.effect(ctx, 'beforeUnmount');
4552
+
4553
+ _this7.$handle.targetHook(ctx, 'beforeUnmount');
4554
+ },
4546
4555
  'fc.updateValue': function fcUpdateValue(data) {
4547
4556
  _this7.$handle.onUpdateValue(ctx, data);
4548
4557
  },
@@ -9316,7 +9325,7 @@ var manager = {
9316
9325
  var cls = rule.wrap["class"];
9317
9326
  delete rule.wrap["class"];
9318
9327
  delete rule.wrap.title;
9319
- var item = isFalse(rule.wrap.show) ? children : this.$r(mergeProps([rule.wrap, {
9328
+ var item = (is.Undef(rule.wrap.show) ? !ctx.input : isFalse(rule.wrap.show)) ? children : this.$r(mergeProps([rule.wrap, {
9320
9329
  props: _objectSpread2(_objectSpread2({
9321
9330
  labelWidth: labelWidth === void 0 ? labelWidth : toString(labelWidth),
9322
9331
  label: isTitle ? rule.title.title : undefined
@@ -9893,7 +9902,7 @@ function install(FormCreate) {
9893
9902
  function elmFormCreate() {
9894
9903
  return FormCreateFactory({
9895
9904
  ui: 'element-ui',
9896
- version: '3.2.37',
9905
+ version: '3.2.39',
9897
9906
  manager: manager,
9898
9907
  extendApi: extendApi,
9899
9908
  install: install,