tusen-ai / naive-ui

A Vue 3 Component Library. Fairly Complete. Theme Customizable. Uses TypeScript. Fast.
https://www.naiveui.com
MIT License
15.53k stars 1.63k forks source link

日期选择器 Date Picker 周次错误 #6069

Open sigma-plus opened 1 week ago

sigma-plus commented 1 week ago

Describe the bug

image

2007年最后一天12月31日,会出现上图所示的2007年第1周

Steps to reproduce

官网组件展示区即可复现, Date Picker 周,选择2007年最后一天12月31日,会出现上图所示的2007年第1周

Link to minimal reproduction

https://www.naiveui.com/zh-CN/light/components/date-picker

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11700 @ 2.50GHz
    Memory: 18.91 GB / 31.87 GB
  Binaries:
    Node: 20.14.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.4.0 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (126.0.2592.61)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    naive-ui: 2.38.2 => 2.38.2
    vue: 3.4.29 => 3.4.29

Used Package Manager

pnpm

Validations