@fonixtree/magic-design 0.1.22 → 0.1.24

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 (67) hide show
  1. package/es/assets/less/input.less +4 -0
  2. package/es/common/Collapse/index.js +4 -0
  3. package/es/common/Collapse/index.less +3 -0
  4. package/es/common/FontStyles/index.less +2 -1
  5. package/es/common/InputNumber/index.less +5 -0
  6. package/es/common/LinkModal/MiniAppTable/index.js +250 -0
  7. package/es/common/LinkModal/index.js +6 -0
  8. package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  9. package/es/composite-comp/bol/components/Banner/pc/index.js +11 -3
  10. package/es/composite-comp/bol/components/Banner/pc/index.less +2 -2
  11. package/es/composite-comp/bol/components/Carousel/mobile/index.js +4 -4
  12. package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  13. package/es/composite-comp/bol/components/Carousel/pc/index.js +5 -4
  14. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  15. package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  16. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -23
  17. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -38
  18. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +50 -41
  19. package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
  20. package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
  21. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +12 -40
  22. package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -1
  23. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  24. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  25. package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  26. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  27. package/es/constants/index.js +2 -1
  28. package/es/core/Designer/CompListPanel/CompCard/index.js +5 -1
  29. package/es/meta-comp/components/Image/index.js +1 -1
  30. package/es/meta-comp/config-panels/ButtonConfig/index.js +18 -1
  31. package/es/utils/businessUtil.js +12 -0
  32. package/es/utils/commonUtil.js +4 -0
  33. package/es/utils/coreUtil.js +0 -1
  34. package/lib/assets/less/input.less +4 -0
  35. package/lib/common/Collapse/index.js +4 -0
  36. package/lib/common/Collapse/index.less +3 -0
  37. package/lib/common/FontStyles/index.less +2 -1
  38. package/lib/common/InputNumber/index.less +5 -0
  39. package/lib/common/LinkModal/MiniAppTable/index.js +250 -0
  40. package/lib/common/LinkModal/index.js +6 -0
  41. package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  42. package/lib/composite-comp/bol/components/Banner/pc/index.js +11 -3
  43. package/lib/composite-comp/bol/components/Banner/pc/index.less +2 -2
  44. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +4 -4
  45. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  46. package/lib/composite-comp/bol/components/Carousel/pc/index.js +5 -4
  47. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  48. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  49. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -23
  50. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -38
  51. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +50 -41
  52. package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
  53. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
  54. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +12 -40
  55. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -1
  56. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  57. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  58. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  59. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  60. package/lib/constants/index.js +2 -1
  61. package/lib/core/Designer/CompListPanel/CompCard/index.js +5 -1
  62. package/lib/meta-comp/components/Image/index.js +1 -1
  63. package/lib/meta-comp/config-panels/ButtonConfig/index.js +18 -1
  64. package/lib/utils/businessUtil.js +12 -0
  65. package/lib/utils/commonUtil.js +4 -0
  66. package/lib/utils/coreUtil.js +0 -1
  67. package/package.json +1 -1
@@ -1,84 +1,103 @@
1
1
  .m-carousel-mobile {
2
2
  position: relative;
3
3
  width: 100%;
4
- }
5
- .m-carousel-mobile .content {
6
- display: flex;
7
- margin: 0 auto;
8
- }
9
- .m-carousel-mobile .slider-wrap {
10
- width: 100%;
11
- margin: 0 auto;
12
- line-height: 1;
13
- }
14
- .m-carousel-mobile .slider-wrap .slick-list {
15
- padding: 0;
16
- }
17
- .m-carousel-mobile .slider-wrap .slick-list:hover {
18
- padding-top: 2rem;
19
- margin-top: -2rem;
20
- padding-bottom: 2rem;
21
- margin-bottom: -2rem;
22
- }
23
- .m-carousel-mobile .slider-wrap .slick-list .slick-track {
24
- display: flex;
25
- align-items: center;
26
- gap: 0.24rem;
27
- }
28
- .m-carousel-mobile .slider-wrap .img-wrap .img {
29
- width: fit-content;
30
- height: fit-content;
31
- display: block;
32
- margin: 0 auto;
33
- }
34
- .m-carousel-mobile .slider-wrap .img-wrap .title {
35
- display: flex;
36
- justify-content: center;
37
- margin-top: 0.24rem;
38
- }
39
- .m-carousel-mobile .slider-wrap .img-wrap .text {
40
- display: flex;
41
- justify-content: center;
42
- margin-top: 0.12rem;
43
- }
44
- .m-carousel-mobile .slider-wrap .img-wrap .tags {
45
- margin-top: 0.16rem;
46
- margin-bottom: 0.24rem;
47
- display: flex;
48
- flex-direction: row;
49
- align-items: center;
50
- justify-content: center;
51
- }
52
- .m-carousel-mobile .slider-wrap .img-wrap .tags > div {
53
- margin-right: 0.16rem;
54
- }
55
- .m-carousel-mobile .slider-wrap .img-wrap .tags > div:last-child {
56
- margin-right: 0;
57
- }
58
- .m-carousel-mobile .swiper-ban {
59
- position: absolute;
60
- width: 100%;
61
- bottom: 0.12rem;
62
- display: flex;
63
- align-items: center;
64
- justify-content: center;
65
- }
66
- .m-carousel-mobile .swiper-ban .ban {
67
- font-size: 0.16rem;
68
- width: 1em;
69
- height: 1em;
70
- border-radius: 50%;
71
- background: #FFF;
72
- cursor: inherit;
73
- margin-right: 0.2rem;
74
- transition: all 0.5s;
75
- }
76
- .m-carousel-mobile .swiper-ban .ban:last-child {
77
- margin-right: 0;
78
- }
79
- .m-carousel-mobile .swiper-ban .ban.active {
80
- width: 2em;
81
- height: 1em;
82
- border-radius: 2rem;
83
- opacity: 1;
84
- }
4
+
5
+ .content {
6
+ display: flex;
7
+ margin: 0 auto;
8
+ }
9
+
10
+ .slider-wrap {
11
+ width: 100%;
12
+ margin: 0 auto;
13
+ line-height: 1;
14
+
15
+ .slick-list {
16
+ // margin-left: -11px;
17
+ // margin-right: -11px;
18
+ padding: 0;
19
+
20
+ &:hover {
21
+ padding-top: 100px;
22
+ margin-top: -100px;
23
+ padding-bottom: 100px;
24
+ margin-bottom: -100px;
25
+ }
26
+
27
+ .slick-track {
28
+ display: flex;
29
+ align-items: center;
30
+ gap: 12px;
31
+ }
32
+ }
33
+
34
+ .img-wrap {
35
+ .img {
36
+ width: fit-content;
37
+ height: fit-content;
38
+ display: block;
39
+ margin: 0 auto;
40
+ }
41
+
42
+ .title {
43
+ display: flex;
44
+ justify-content: center;
45
+ margin-top: 12px;
46
+ }
47
+
48
+ .text {
49
+ display: flex;
50
+ justify-content: center;
51
+ margin-top: 6px;
52
+ }
53
+
54
+ .tags {
55
+ margin-top: 8px;
56
+ margin-bottom: 12px;
57
+ display: flex;
58
+ flex-direction: row;
59
+ align-items: center;
60
+ justify-content: center;
61
+
62
+ >div {
63
+ margin-right: 8px;
64
+
65
+ &:last-child {
66
+ margin-right: 0;
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+
73
+ .swiper-ban {
74
+ position: absolute;
75
+ width: 100%;
76
+ bottom: 6px;
77
+ display: flex;
78
+ align-items: center;
79
+ justify-content: center;
80
+
81
+ .ban {
82
+ font-size: 8px;
83
+ width: 1em;
84
+ height: 1em;
85
+ border-radius: 50%;
86
+ background: #FFF;
87
+ cursor: inherit;
88
+ margin-right: 10px;
89
+ transition: all .5s;
90
+
91
+ &:last-child {
92
+ margin-right: 0;
93
+ }
94
+
95
+ &.active {
96
+ width: 2em;
97
+ height: 1em;
98
+ border-radius: 100px;
99
+ opacity: 1;
100
+ }
101
+ }
102
+ }
103
+ }
@@ -202,10 +202,10 @@ function (_super) {
202
202
  pcRowNum = _a.pcRowNum;
203
203
  var colNum = 1;
204
204
 
205
- if (layout === 'layout1') {
206
- colNum = Math.min(pcRowNum, data.groupSource.length);
207
- } else if (layout === 'layout3') {
205
+ if (layout === 'layout3') {
208
206
  colNum = Math.min(pcRowNum + 0.2, data.groupSource.length);
207
+ } else {
208
+ colNum = Math.min(pcRowNum, data.groupSource.length);
209
209
  }
210
210
 
211
211
  var floorColNum = Math.floor(colNum);
@@ -221,6 +221,7 @@ function (_super) {
221
221
  }
222
222
 
223
223
  var settings = {
224
+ infinite: true,
224
225
  className: 'slider-wrap',
225
226
  arrows: false,
226
227
  dots: false,
@@ -235,7 +236,7 @@ function (_super) {
235
236
  sliderIndex: newIndex
236
237
  });
237
238
  },
238
- variableWidth: true
239
+ variableWidth: layout === 'layout3'
239
240
  };
240
241
  var navStyle = {
241
242
  fontSize: (0, _commonUtil.convertToRem)(data.setting.navigation.size),
@@ -1,15 +1,22 @@
1
- .m-image-gallery-mobile .content .line {
2
- margin-bottom: 0.24rem;
3
- }
4
- .m-image-gallery-mobile .content .line.isHorizontal {
5
- display: flex;
6
- justify-content: flex-start;
7
- }
8
- .m-image-gallery-mobile .content .line:last-child {
9
- margin-bottom: 0;
10
- }
11
- .m-image-gallery-mobile .content .line .img-wrap {
12
- display: flex;
13
- align-items: center;
14
- justify-content: center;
15
- }
1
+ .m-image-gallery-mobile {
2
+ .content {
3
+ .line {
4
+ margin-bottom: 12px;
5
+
6
+ &.isHorizontal {
7
+ display: flex;
8
+ justify-content: flex-start;
9
+ }
10
+
11
+ &:last-child {
12
+ margin-bottom: 0;
13
+ }
14
+
15
+ .img-wrap {
16
+ display: flex;
17
+ align-items: center;
18
+ justify-content: center;
19
+ }
20
+ }
21
+ }
22
+ }