mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 19:41:45 +08:00
fix(Calendar): fix month title sync
This commit is contained in:
parent
57859ac402
commit
a140117e8b
@ -257,10 +257,12 @@ Page({
|
||||
|
||||
```css
|
||||
.calendar {
|
||||
--calendar-height: 500px;
|
||||
--calendar-height: 618px;
|
||||
}
|
||||
```
|
||||
|
||||
> Tips: 注意,在自定义calendar的高度时,需要确保,滚动到当前月份时,所有的日期要展现在.van-calendar__body内,否则可能会出现滚动时头部月份与当前月份不同步的情况。目前平铺型预设高度618px,弹窗型高度90%。
|
||||
|
||||
## API
|
||||
|
||||
### Props
|
||||
|
@ -1,3 +1,3 @@
|
||||
.tiled-calendar {
|
||||
--calendar-height: 500px;
|
||||
--calendar-height: 618px;
|
||||
}
|
||||
|
@ -123,7 +123,7 @@
|
||||
// Calendar
|
||||
@calendar-height: 100%;
|
||||
@calendar-background-color: @white;
|
||||
@calendar-popup-height: 80%;
|
||||
@calendar-popup-height: 90%;
|
||||
@calendar-header-box-shadow: 0 2px 10px rgba(125, 126, 128, 0.16);
|
||||
@calendar-header-title-height: 44px;
|
||||
@calendar-header-title-font-size: @font-size-lg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user