Correct time layout when showing week numbers
This commit is contained in:
parent
1ba0bb6eee
commit
e56c394d0b
2 changed files with 12 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
||||||
v-for="shortcut in shortcuts"
|
v-for="shortcut in shortcuts"
|
||||||
@click="handleShortcutClick(shortcut)">{{ shortcut.text }}</div>
|
@click="handleShortcutClick(shortcut)">{{ shortcut.text }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div :class="[prefixCls + '-body']">
|
<div :class="panelBodyClasses">
|
||||||
<div :class="[prefixCls + '-content', prefixCls + '-content-left']" v-show="!isTime">
|
<div :class="[prefixCls + '-content', prefixCls + '-content-left']" v-show="!isTime">
|
||||||
<div :class="[datePrefixCls + '-header']" v-show="currentView !== 'time'">
|
<div :class="[datePrefixCls + '-header']" v-show="currentView !== 'time'">
|
||||||
<span
|
<span
|
||||||
|
@ -171,6 +171,15 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
panelBodyClasses(){
|
||||||
|
return [
|
||||||
|
prefixCls + '-body',
|
||||||
|
{
|
||||||
|
[prefixCls + '-body-time']: this.showTime,
|
||||||
|
[prefixCls + '-body-date']: !this.showTime,
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
leftDatePanelLabel(){
|
leftDatePanelLabel(){
|
||||||
return this.panelLabelConfig('left');
|
return this.panelLabelConfig('left');
|
||||||
},
|
},
|
||||||
|
|
|
@ -205,7 +205,7 @@
|
||||||
|
|
||||||
&-with-week-numbers{
|
&-with-week-numbers{
|
||||||
.@{picker-prefix-cls}-panel{
|
.@{picker-prefix-cls}-panel{
|
||||||
&-body{
|
&-body-date {
|
||||||
min-width: (@date-picker-cells-width-with-weeknumbers + 20) * 2;
|
min-width: (@date-picker-cells-width-with-weeknumbers + 20) * 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue