Skip to content

range-picker 格式是日期时,显示与实际值不匹配 #6654

@MatrixYe23

Description

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

Version

3.2.20

Environment

Windows 11, Chrome 114.0.5795.110, Vue:3.2.33

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. range picker 配置valueFormat MM-DD,
  2. 跨年选择时间,比如 2023-12-01 to 2024-01-31,
  3. range pick 显示会变成 01-31 to 12-01
    但是值还是 ['12-01','01-31']
    1w
    2w

What is expected?

range picker 的显示应该跟值一样是 12-01 to 01-31

What is actually happening?

range picker 的显示变成了 01-31 to 12-01

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