Skip to content

[Bug Report] van-date-picker组件 const columnsType = ['year'];会报错 #13609

@lhhboy

Description

@lhhboy

重现链接

https://codesandbox.io/p/devbox/vant-4-issue-template-8fuq5o

Vant 版本

"vant": "4.8.1",

描述一下你遇到的问题。

报错内容如下:TypeError: Cannot read properties of undefined (reading 'length')

重现步骤

修改 const columnsType = ['year', 'month']为 const columnsType = ['year'];

设备/浏览器

No response

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