ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.11k stars 14.64k forks source link

[Bug Report] dataPicker 组件,设置default-time=['00:00:00', '23:59:59'],手动输入日期时,该属性不生效 #20450

Open rossroma opened 3 years ago

rossroma commented 3 years ago

Element UI version

0.1.0

OS/Browsers version

macOS 10.14 / Chrome 86

Vue version

2.5.12

Reproduction Link

https://codepen.io/rossroma/pen/BazbGjO

Steps to reproduce

  1. 选择一个datePicker组件;
  2. type设置为 daterange
  3. default-time 设置为 ['00:00:00', '23:59:59']
  4. 在日期框中手动输入一个日期

What is Expected?

手动输入日期和鼠标选择日期的结果应该保持一致

What is actually happening?

手动输入日期时,default-time 属性没有生效

ecling commented 2 years ago

我也遇上这个问题了