tusen-ai / naive-ui

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

DatePicker type daterange allow input date from greater than date to #5210

Open cuongtm18 opened 10 months ago

cuongtm18 commented 10 months ago

TuSimple/naive-ui version (版本)

2.34.4

Vue version (Vue 版本)

3.3.4

Browser and its version (浏览器及其版本)

116.0.5845.141

System and its version (系统及其版本)

Window10

Node version (Node 版本)

18.16.0

Reappearance link (重现链接)

https://www.naiveui.com/en-US/light/components/date-picker#daterange.vue

Reappearance steps (重现步骤)

  1. find demo type daterange
  2. click to date from input and try to typing date from greater than date to
  3. blur input

Expected results (期望的结果)

cannot type date from > date to, or if typing wrong, it win reset to valid value in DatePicker type range

Actual results (实际的结果)

accept wrong value if date from > date to

Remarks (补充说明)

jizai1125 commented 10 months ago

Is this it? 12

cuongtm18 commented 9 months ago

Is this it? 12 12

yes, or u can set from date 2024 and to date 2023