fix showSeconds flag logic
This commit is contained in:
parent
46726afdf4
commit
22ff9a62f2
2 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
showSeconds () {
|
showSeconds () {
|
||||||
return (this.format || '').indexOf('ss') !== -1;
|
return !(this.format || '').match(/mm$/);
|
||||||
},
|
},
|
||||||
leftDatePanelLabel () {
|
leftDatePanelLabel () {
|
||||||
return this.panelLabelConfig(this.date);
|
return this.panelLabelConfig(this.date);
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
showSeconds () {
|
showSeconds () {
|
||||||
return (this.format || '').indexOf('ss') !== -1;
|
return !(this.format || '').match(/mm$/);
|
||||||
},
|
},
|
||||||
visibleDate () { // TODO
|
visibleDate () { // TODO
|
||||||
const date = this.date;
|
const date = this.date;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue