didi / mand-mobile

💰 A mobile UI toolkit, based on Vue.js 2, designed for financial scenarios.
https://didi.github.io/mand-mobile
Apache License 2.0
3.46k stars 772 forks source link

[bug-report] DatePicker放到popup后,年份一半以下时间无法选择 #704

Closed AAaNEIgeiDEItao closed 4 years ago

AAaNEIgeiDEItao commented 4 years ago

Mand Mobile Version

2.4.1

Vue Version

2.6.1

Model / OS & Browser Info

imac/osx/chrome85.0.4183.102

Recurring Steps

DatePicker放到popup后,年份一半以下时间无法选择

Expectant Behaviors

DatePicker放到popup后,年份可以正常选择

Actual Behaviors

DatePicker放到popup后,年份一半以下时间无法选择

zouhangwithsweet commented 4 years ago

https://mand-mobile.gitee.io/docs/index.gitee.html#/zh-CN/docs/components/feedback/date-picker 看下最后一个 demo,date-picker 本身就是在 popup 里边,是正常的。可以提供一个在线复现 demo 吗?

MissLiu34 commented 3 years ago

md-date-picker的is-view属性为true, 放在md-popup中时,无法滚动。

xxyan0205 commented 3 years ago

md-date-picker的is-view属性为true, 放在md-popup中时,无法滚动。

可以在外层popup第一次beforeShow事件触发的时候,对内部嵌套的DatePicker进行一次refresh this.$refs.datePicker.picker.refresh()