Merge pull request #561 from mouxhun/master
fix #551 TimePicker with Select Hour & Minute bug
This commit is contained in:
commit
f0d03d7200
2 changed files with 4 additions and 2 deletions
|
@ -101,7 +101,8 @@
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
showSeconds () {
|
showSeconds () {
|
||||||
return !(this.format || '').match(/mm$/);
|
//fix Hour & Minute Picker bug,show seconds when has "ss"
|
||||||
|
return !!(this.format || '').match(/ss/);
|
||||||
},
|
},
|
||||||
leftDatePanelLabel () {
|
leftDatePanelLabel () {
|
||||||
return this.panelLabelConfig(this.date);
|
return this.panelLabelConfig(this.date);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue