Skip to content

DatePicker组件的panelChange事件无法触发 #2901

@hugselina2019

Description

@hugselina2019
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

undefined

Environment

vue2.0

Reproduction link

http://no.com (there is no link)

Steps to reproduce

1、 使用datePicker
<a-date-picker
style="width: 100%;"
:default-value="pickerDefault"
@change="onPickerChange"
@openchange="handleOpenChange"
:mode="panelMode"
@panelChange="handlePanelChange"/>
2、在methods中输出
handleOpenChange (status) {
console.log('open change status:', status)
},
handlePanelChange (value, mode) {
console.log('panel change value mode:', value, mode)
},
3、data中设置
panelMode: 'date',
4、在页面中打开关闭面板可以正确触发 handleOpenChange

5、在页面中切换月份 年份 以及各种操作 无法触发 handlePanelChange

What is expected?

5、可以正确触发 handlePanelChange ,

What is actually happening?

5、无法正确触发handlePanelChange事件


有一个业务场景,需要在面板特殊设置显示某几天的样式,所以打开面板前需要设置当前月, 每次切换 年份、月份 都需要去调用函数 设置样式,所以确切需要pannelChange这个回调

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions