fix TimePicker with Select Hour & Minute bug

This commit is contained in:
mouxhun 2020-06-28 12:04:14 +08:00 committed by GitHub
parent 3b68b60842
commit 97a37a832c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,8 @@
}, },
computed: { computed: {
showSeconds () { showSeconds () {
return !(this.format || '').match(/mm$/); //fix Hour & Minute Picker bug,show seconds when has "ss"
return !!(this.format || '').match(/ss/);
}, },
visibleDate () { // TODO visibleDate () { // TODO
const date = this.date; const date = this.date;