ElemeFE / ElemeFE/element

[Bug Report] el-date-picker default-time 与 v-model 默认值无法共存

Open
#22,143 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.7

### OS/Browsers version
win10 21H2 19044.1889 / 104.0.5112.102(正式版本) (64 位)

### Vue version
2.7.10

### Reproduction Link
https://codepen.io/pen?editors=1010

### Steps to reproduce
default-time="['0:00:00', '23:59:59']" 与 v-model 默认值同时存在
![image](https://user-images.githubusercontent.com/39638510/189264489-11aa16b2-4bc9-42f6-a050-4a68343a4ed2.png)

### What is Expected?
期望 v-model 设置默认值 在设置 default-time="['0:00:00', '23:59:59']" 可以正常使用 当自动选择的时候 时间默认还是 0点到 23点

### What is actually happening?
报错 Cannot read properties of null (reading 'getHours')

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.