ElemeFE / ElemeFE/element

[Bug Report] 日期范围选择器带快捷方式 default-time 设置不生效

Open
#22,932 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.15.14

### OS/Browsers version
windows/127.0.6533.73

### Vue version
2.7.16

### Reproduction Link
https://codepen.io/ren-142326/pen/poXRoKo

### Steps to reproduce
在日期范围选择器中设置快捷方式,同时设置 :default-time="['00:00:00', '23:59:59']"

日期时间使用哪种 value-format 格式都一样,

### What is Expected?
当点击快捷方式时,default-time 设置 生效 得到和下面一样的日期和时间,['2024-07-22 00:00:00', '2024-07-29 23:59:59',]

当手动选择日期时,default-time 设置生效,得到这样的日期和时间,['2024-07-22 00:00:00', '2024-07-29 23:59:59',]

### What is actually happening?
当点击快捷方式时,default-time 设置不生效,得到这样的日期和时间,['2024-07-22 17:37:46', '2024-07-29 17:37:46', ]

当手动选择日期时,default-time 设置生效,得到这样的日期和时间,['2024-07-22 00:00:00', '2024-07-29 23:59:59',]

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.