alemonjs 1.1.2 → 1.1.3

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.
Files changed (2) hide show
  1. package/lib/utils.js +12 -1
  2. package/package.json +1 -1
package/lib/utils.js CHANGED
@@ -37,6 +37,10 @@ export function buttonAutomaticArrangement(arr = []) {
37
37
  slist = [];
38
38
  }
39
39
  }
40
+ if (slist.length == 3) {
41
+ small_component_group_list.push(slist);
42
+ slist = [];
43
+ }
40
44
  // 如果 slist是 1 slist是 2 就留到下一批
41
45
  for (const item of slist) {
42
46
  mid.push(item);
@@ -51,8 +55,15 @@ export function buttonAutomaticArrangement(arr = []) {
51
55
  mlist = [];
52
56
  }
53
57
  }
58
+ if (mlist.length == 2) {
59
+ mid_component_group_list.push(mlist);
60
+ mlist = [];
61
+ }
54
62
  for (const item of mlist) {
55
- big_component_group_list.push(item);
63
+ big_component_group_list.push([item]);
64
+ }
65
+ for (const item of big) {
66
+ big_component_group_list.push([item]);
56
67
  }
57
68
  return {
58
69
  big_component_group_list: big_component_group_list,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alemonjs",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "DOCS https://alemonjs.com/",
5
5
  "author": "ningmengchongshui",
6
6
  "license": "GPL-2.0",