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] el-date-picker,日期范围组件设置:default-time="['00:00:00', '23:59:59']"后,在输入框输入endDate不生效 #21823

Open treeSmile opened 2 years ago

treeSmile commented 2 years ago

Element UI version

2.15.8

OS/Browsers version

win10/Chrome

Vue version

2.6.14

Reproduction Link

https://codepen.io/treesmile/pen/BaJbGbV

Steps to reproduce

1、配置: 2、选择任意日期范围 3、在结束日期输入框中直接修改结束日期 4、得到的结束日期时间戳为时分秒为00:00:00(此时时分秒应该为设置的default-time的'23:59:59')

What is Expected?

此时结束日期的时间戳的时分秒应该为default-time设置的'23:59:59'

What is actually happening?

结束日期的时间戳的时分秒为‘00:00:00’

treeSmile commented 2 years ago

1、el-date-picker配置: type="daterange" start-placeholder="开始日期" end-placeholder="结束日期" value-format="timestamp" :default-time="['00:00:00', '23:59:59']"

Catcheer commented 2 years ago

@treeSmile 您的问题解决了嘛? 我设置了value-format="timestamp"不管用,手动输入时间还是00:00:00,选择时间则是23:59:59

treeSmile commented 2 years ago

@treeSmile 您的问题解决了嘛? 我设置了value-format="timestamp"不管用,手动输入时间还是00:00:00,选择时间则是23:59:59 目前来说,只能通过二次封装,自己手动修改了;我看过下源码,发现只有点击事件会触发default-time的配置,input框的change是不会触发的

dotview commented 2 years ago

same issue

381510688 commented 11 months ago

same issue