diff --git a/example/pages/stepper/index.wxss b/example/pages/stepper/index.wxss index 27f2c4ac..f4ab9d80 100644 --- a/example/pages/stepper/index.wxss +++ b/example/pages/stepper/index.wxss @@ -1 +1,4 @@ /* pages/stepper/index.wxss */ +page { + background-color: #fff; +} diff --git a/example/pages/tab/index.js b/example/pages/tab/index.js index cea8c958..90a953bc 100644 --- a/example/pages/tab/index.js +++ b/example/pages/tab/index.js @@ -32,11 +32,5 @@ Page({ title: `点击标签 ${event.detail.index + 1}`, icon: 'none' }); - }, - - onPageScroll(event) { - this.setData({ - scrollTop: event.scrollTop - }); } }); diff --git a/packages/common/style/var.less b/packages/common/style/var.less index 358e6155..e405f40b 100644 --- a/packages/common/style/var.less +++ b/packages/common/style/var.less @@ -15,7 +15,7 @@ // Default colors @text-color: #333; @border-color: #eee; -@active-color: #e8e8e8; +@active-color: #f2f3f5; @background-color: #f8f8f8; @background-color-light: #fafafa; @@ -113,7 +113,8 @@ @search-background-color: #f7f8fA; // Stepper -@stepper-background-color: #f2f3f5; +@stepper-active-color: #e8e8e8; +@stepper-background-color: @active-color; @stepper-button-disabled-color: #f7f8fa; +@stepper-input-disabled-color: @active-color; @stepper-border-radius: 4px; -@stepper-input-disabled-color: #f2f3f5; diff --git a/packages/stepper/index.less b/packages/stepper/index.less index 3b19a08f..0452ea6a 100644 --- a/packages/stepper/index.less +++ b/packages/stepper/index.less @@ -39,7 +39,7 @@ } &--hover { - background-color: @active-color; + background-color: @stepper-active-color; } &--disabled {