@fonixtree/magic-design 1.0.32 → 1.0.33

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.
@@ -4,8 +4,8 @@
4
4
  font-size: 12px;
5
5
 
6
6
  &.img {
7
- // max-width: 60px;
8
- max-height: 60px;
7
+ max-width: 75%;
8
+ max-height: 30px;
9
9
  height: 28px;
10
10
 
11
11
  &.small {
@@ -46,7 +46,6 @@
46
46
 
47
47
  &.position-7 {
48
48
  position: unset;
49
- margin-left: 6px;
50
49
  // width: 56px;
51
50
  height: 16px;
52
51
  }
@@ -50,12 +50,15 @@
50
50
  .price-wrap {
51
51
  display: flex;
52
52
  align-items: center;
53
+ flex-wrap: wrap;
54
+ margin-bottom: 5px;
53
55
 
54
56
  .price {
55
57
  width: auto !important;
56
58
  white-space: nowrap;
57
59
  overflow: hidden;
58
60
  text-overflow: ellipsis;
61
+ margin-right: 6px;
59
62
  }
60
63
  }
61
64
 
@@ -628,8 +628,8 @@ function (_super) {
628
628
  }, products.map(function (item) {
629
629
  return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
630
630
  key: item.productId,
631
- data: item,
632
- fixHeight: layout === 'layout3',
631
+ data: item // fixHeight={layout === 'layout3'}
632
+ ,
633
633
  imgHeight: imgHeight,
634
634
  imgWidth: imgWidth,
635
635
  layout: layout === 'layout2' ? 'horizontal' : 'vertical' // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId || item.productId || ''}`)}
@@ -662,8 +662,8 @@ function (_super) {
662
662
  className: "productCard"
663
663
  }, /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
664
664
  key: "scroll_" + item.productId,
665
- data: item,
666
- fixHeight: true,
665
+ data: item // fixHeight
666
+ ,
667
667
  imgHeight: imgHeight,
668
668
  imgWidth: imgWidth // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId || item.productId || ''}`)}
669
669
  ,
@@ -4,8 +4,8 @@
4
4
  font-size: 12px;
5
5
 
6
6
  &.img {
7
- // max-width: 60px;
8
- max-height: 60px;
7
+ max-width: 75%;
8
+ max-height: 30px;
9
9
  height: 28px;
10
10
 
11
11
  &.small {
@@ -46,7 +46,6 @@
46
46
 
47
47
  &.position-7 {
48
48
  position: unset;
49
- margin-left: 6px;
50
49
  // width: 56px;
51
50
  height: 16px;
52
51
  }
@@ -50,12 +50,15 @@
50
50
  .price-wrap {
51
51
  display: flex;
52
52
  align-items: center;
53
+ flex-wrap: wrap;
54
+ margin-bottom: 5px;
53
55
 
54
56
  .price {
55
57
  width: auto !important;
56
58
  white-space: nowrap;
57
59
  overflow: hidden;
58
60
  text-overflow: ellipsis;
61
+ margin-right: 6px;
59
62
  }
60
63
  }
61
64
 
@@ -628,8 +628,8 @@ function (_super) {
628
628
  }, products.map(function (item) {
629
629
  return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
630
630
  key: item.productId,
631
- data: item,
632
- fixHeight: layout === 'layout3',
631
+ data: item // fixHeight={layout === 'layout3'}
632
+ ,
633
633
  imgHeight: imgHeight,
634
634
  imgWidth: imgWidth,
635
635
  layout: layout === 'layout2' ? 'horizontal' : 'vertical' // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId || item.productId || ''}`)}
@@ -662,8 +662,8 @@ function (_super) {
662
662
  className: "productCard"
663
663
  }, /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
664
664
  key: "scroll_" + item.productId,
665
- data: item,
666
- fixHeight: true,
665
+ data: item // fixHeight
666
+ ,
667
667
  imgHeight: imgHeight,
668
668
  imgWidth: imgWidth // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId || item.productId || ''}`)}
669
669
  ,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "1.0.32",
4
+ "version": "1.0.33",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",