Skip to content
This repository was archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
fix: calendar swiper class
Browse files Browse the repository at this point in the history
  • Loading branch information
pengshanglong authored and psaren committed Jul 29, 2020
1 parent 84c803e commit 79caab1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions packages/taro-ui-vue/src/components/calendar/body/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,14 @@ const AtCalendarBody = {
? `translateX(-100%) translate3d(${offsetSize}px,0,0)`
: ''
}
}
},
swiperCls() {
return classnames(
'main',
'at-calendar-slider__main',
`at-calendar-slider__main--${process.env.TARO_ENV}`
)
},
},
watch: {
nextProps(val) {
Expand Down Expand Up @@ -301,13 +308,6 @@ const AtCalendarBody = {
? clientY - this.swipeStartPoint > 0
: clientX - this.swipeStartPoint > 0
},
getCls() {
return classnames(
'main',
'at-calendar-slider__main',
`at-calendar-slider__main--${process.env.TARO_ENV}`
)
},
},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</view>
<view
v-if="isSwiper && !isH5"
:class="getCls">
:class="swiperCls">
<AtCalendarDayList />
<swiper
circular
Expand Down

0 comments on commit 79caab1

Please # to comment.