ElemeFE / element

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

[Bug Report] date-picker,type='daterange',value is timestamp,value-format="yyyy-MM-dd" 这种组合搭配会报错 #21938

Open catherchen opened 2 years ago

catherchen commented 2 years ago

Element UI version

2.15.8

OS/Browsers version

window/chrome

Vue version

2.6.5

Reproduction Link

https://codepen.io/catherchen/pen/eYVaYmq

Steps to reproduce

1、open Reproduction Link 2、分别切换 v-model="timestampFormat" 和 v-model="dateFomrat" timestampFormat 会报错

What is Expected?

fix bug

What is actually happening?

TypeError: dateStr.match is not a function

wangdaodao commented 1 year ago

使用timestampFormat,需要value-format="timestamp"