Skip to content

Commit

Permalink
fix(Calendar): fix row-height style error (#4733)
Browse files Browse the repository at this point in the history
* fix(Calendar): fix row-height style error

* test(Calendar): update test
  • Loading branch information
nemo-shen committed Jan 10, 2022
1 parent fbef9bd commit 48d22b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/calendar/components/month/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
data-index="{{ index }}"
bindtap="onClick"
>
<view wx:if="{{ item.type === 'selected' }}" class="van-calendar__selected-day" style="background: {{ color }}">
<view wx:if="{{ item.type === 'selected' }}" class="van-calendar__selected-day" style="width: {{ rowHeight }}px; height: {{ rowHeight }}px; background: {{ color }}">
<view wx:if="{{ item.topInfo }}" class="van-calendar__top-info">{{ item.topInfo }}</view>
{{ item.text }}
<view wx:if="{{ item.bottomInfo }}" class="van-calendar__bottom-info">
Expand Down
2 changes: 1 addition & 1 deletion packages/calendar/test/__snapshots__/demo.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@ exports[`should render demo and match snapshot 1`] = `
>
<wx-view
class="van-calendar__selected-day"
style="background: "
style="width: 64px; height: 64px; background: "
>
20
Expand Down

0 comments on commit 48d22b0

Please sign in to comment.