@ray-js/ray-ipc-half-horizontal-drag 0.0.6-beta-1 → 0.0.6

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/lib/index.js CHANGED
@@ -59,7 +59,8 @@ const HalfHorizontalDrag = props => {
59
59
  return /*#__PURE__*/React.createElement(View, {
60
60
  className: clsx(styles.content, styles.towContent, className, {
61
61
  [styles.moreContent]: showCloseBtn
62
- })
62
+ }),
63
+ style: _objectSpread({}, style)
63
64
  }, data.map((item, idx) => {
64
65
  const {
65
66
  title,
@@ -91,7 +92,8 @@ const HalfHorizontalDrag = props => {
91
92
  }
92
93
  if (data.length >= 3) {
93
94
  return /*#__PURE__*/React.createElement(View, {
94
- className: clsx(styles.content, styles.moreContent, className)
95
+ className: clsx(styles.content, styles.moreContent, className),
96
+ style: _objectSpread({}, style)
95
97
  }, data.map((item, idx) => {
96
98
  const {
97
99
  title,
@@ -6,6 +6,7 @@
6
6
  }
7
7
  &.moreContent {
8
8
  // padding: 48rpx 0;
9
+ padding-right: 32rpx;
9
10
  display: flex;
10
11
  overflow-x: scroll;
11
12
  overflow-y: visible;
@@ -47,9 +48,9 @@
47
48
  &:first-child {
48
49
  margin-left: 32rpx;
49
50
  }
50
- &:last-child {
51
- margin-right: 32rpx;
52
- }
51
+ // &:last-child {
52
+ // margin-right: 32rpx;
53
+ // }
53
54
  }
54
55
  .item {
55
56
  position: relative;
@@ -108,7 +109,7 @@
108
109
  justify-content: center;
109
110
  margin-left: 14rpx;
110
111
  background-color: red;
111
- margin-right: 32rpx;
112
+ // margin-right: 32rpx;
112
113
  border-radius: 32rpx;
113
114
  background-color: rgba(240, 76, 76, 0.2);
114
115
  color: #F04C4C;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ray-ipc-half-horizontal-drag",
3
- "version": "0.0.6-beta-1",
3
+ "version": "0.0.6",
4
4
  "description": "水平方向可拖动,显示出下一个组件的小部分内容",
5
5
  "main": "lib/index",
6
6
  "files": [