Skip to content

Commit

Permalink
fix: optimize datepicker month show
Browse files Browse the repository at this point in the history
  • Loading branch information
vvpvvp committed Jun 19, 2018
1 parent e17b359 commit 6533744
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/datetime/date-base.vue
Expand Up @@ -14,7 +14,7 @@
v-if="view == 'year'">{{nowView.year()-6}}&nbsp;&nbsp;-&nbsp;&nbsp;{{nowView.year()+5}}{{'h.date.header.year' | hlang}}</span>
<span class="h-date-header-show"
@click.stop="changeView('month')"
v-show="view != 'year' && view != 'month' && view != 'quarter'">{{nowView.month()}}{{'h.date.header.month' | hlang}}</span>
v-show="view != 'year' && view != 'month' && view != 'quarter'">{{months[nowView.month() - 1]}}</span>
<span class="h-date-header-show"
@click.stop="changeView('date')"
v-show="view == 'hour' || view == 'minute'">{{nowView.date()}}{{'h.date.header.day' | hlang}}</span>
Expand Down
8 changes: 4 additions & 4 deletions themes/components/datetime-picker.less
Expand Up @@ -101,11 +101,11 @@
&-body {
margin: 8px auto 0;
font-size: @font-size-mini;
width: 238px;
width: 224px;
>div>span {
width: 34px;
height: 34px;
line-height: 34px;
width: 32px;
height: 32px;
line-height: 32px;
display: inline-block;
text-align: center;
}
Expand Down

0 comments on commit 6533744

Please sign in to comment.