@momo-kits/carousel 0.0.53-beta.35 → 0.0.53-beta.39
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/CarouselV2.js +10 -1
- package/package.json +1 -1
- package/publish.sh +1 -1
package/CarouselV2.js
CHANGED
|
@@ -1185,6 +1185,7 @@ export default class Carousel extends React.PureComponent {
|
|
|
1185
1185
|
style,
|
|
1186
1186
|
useExperimentalSnap,
|
|
1187
1187
|
disableIntervalMomentum,
|
|
1188
|
+
vertical,
|
|
1188
1189
|
} = this.props;
|
|
1189
1190
|
|
|
1190
1191
|
const containerStyle = [
|
|
@@ -1213,7 +1214,15 @@ export default class Carousel extends React.PureComponent {
|
|
|
1213
1214
|
};
|
|
1214
1215
|
|
|
1215
1216
|
const contentContainerStyle = [
|
|
1216
|
-
|
|
1217
|
+
vertical
|
|
1218
|
+
? {
|
|
1219
|
+
paddingTop: this._getContainerInnerMargin(),
|
|
1220
|
+
paddingBottom: this._getContainerInnerMargin(true),
|
|
1221
|
+
}
|
|
1222
|
+
: {
|
|
1223
|
+
paddingLeft: this._getContainerInnerMargin(),
|
|
1224
|
+
paddingRight: this._getContainerInnerMargin(true),
|
|
1225
|
+
},
|
|
1217
1226
|
contentContainerCustomStyle || {},
|
|
1218
1227
|
];
|
|
1219
1228
|
|
package/package.json
CHANGED
package/publish.sh
CHANGED
|
@@ -26,4 +26,4 @@ cd ..
|
|
|
26
26
|
rm -rf dist
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
curl -X POST -H 'Content-Type: application/json' 'https://chat.googleapis.com/v1/spaces/AAAAbP8987c/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=UGSFRvk_oYb9uGsAgs31bVvMm6jDkmD8zihGm3eyaQA%3D&threadKey=JoaXTEYaNNkl' -d '{"text": "@momo-kits/carousel new version release: '*"$VERSION"*' https://www.npmjs.com/package/@momo-kits/carousel"}'
|
|
29
|
+
#curl -X POST -H 'Content-Type: application/json' 'https://chat.googleapis.com/v1/spaces/AAAAbP8987c/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=UGSFRvk_oYb9uGsAgs31bVvMm6jDkmD8zihGm3eyaQA%3D&threadKey=JoaXTEYaNNkl' -d '{"text": "@momo-kits/carousel new version release: '*"$VERSION"*' https://www.npmjs.com/package/@momo-kits/carousel"}'
|