Commit
22ff9a62f237e243b501e40bf0ca1ea4e56eacf7
fix showSeconds flag logic
...
|
...
|
@@ -102,7 +102,7 @@ |
102
|
102
|
]; |
103
|
103
|
}, |
104
|
104
|
showSeconds () { |
105
|
|
- return (this.format || '').indexOf('ss') !== -1; |
|
105
|
+ return !(this.format || '').match(/mm$/); |
106
|
106
|
}, |
107
|
107
|
leftDatePanelLabel () { |
108
|
108
|
return this.panelLabelConfig(this.date); |
...
|
...
|
|
...
|
...
|
@@ -69,7 +69,7 @@ |
69
|
69
|
}, |
70
|
70
|
computed: { |
71
|
71
|
showSeconds () { |
72
|
|
- return (this.format || '').indexOf('ss') !== -1; |
|
72
|
+ return !(this.format || '').match(/mm$/); |
73
|
73
|
}, |
74
|
74
|
visibleDate () { // TODO |
75
|
75
|
const date = this.date; |
...
|
...
|
|