fix TimePicker with Select Hour & Minute bug

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

View file

@ -101,7 +101,8 @@
];
},
showSeconds () {
return !(this.format || '').match(/mm$/);
//fix Hour & Minute Picker bug,show seconds when has "ss"
return !!(this.format || '').match(/ss/);
},
leftDatePanelLabel () {
return this.panelLabelConfig(this.date);