diff --git a/src/sku/components/SkuRow.js b/src/sku/components/SkuRow.js
index 9a039d2a2..960c59c3c 100644
--- a/src/sku/components/SkuRow.js
+++ b/src/sku/components/SkuRow.js
@@ -49,27 +49,28 @@ export default createComponent({
this.present = content.scrollLeft / distance;
});
},
+
+ genIndicator() {
+ if (this.scrollable) {
+ return (
+
@@ -88,7 +89,7 @@ export default createComponent({
{multipleNode}
{largeImageMode ? SkuContent : this.slots()}
- {largeImageMode && scrollable && SkuScroll}
+ {this.genIndicator()}
);
},
diff --git a/src/sku/index.less b/src/sku/index.less
index 040360651..b0db9ab1b 100644
--- a/src/sku/index.less
+++ b/src/sku/index.less
@@ -301,25 +301,23 @@
}
}
- &__scroll {
- display: flex;
- justify-content: center;
+ &__indicator {
+ width: 40px;
height: 4px;
- padding-bottom: 16px;
+ background: @gray-3;
+ border-radius: 2px;
- &__content {
- position: relative;
- width: 40px;
- height: 4px;
- background: #ebedf0;
+ &-wrapper {
+ display: flex;
+ justify-content: center;
+ padding-bottom: 16px;
+ }
+
+ &-active {
+ width: 50%;
+ height: 100%;
+ background-color: @red;
border-radius: 2px;
-
- &--active {
- width: 20px;
- height: 4px;
- background: #f44;
- border-radius: 2px;
- }
}
}
}