@form-create/element-ui 3.2.37 → 3.2.38

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.38
3
3
  * (c) 2018-2026 xaboy
4
4
  * Github https://github.com/xaboy/form-create
5
5
  * Released under the MIT License.
@@ -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
 
@@ -9893,7 +9897,7 @@ function install(FormCreate) {
9893
9897
  function elmFormCreate() {
9894
9898
  return FormCreateFactory({
9895
9899
  ui: 'element-ui',
9896
- version: '3.2.37',
9900
+ version: '3.2.38',
9897
9901
  manager: manager,
9898
9902
  extendApi: extendApi,
9899
9903
  install: install,