2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-11 07:02:26 +03:00

style: change the shortcuts html span to button

This commit is contained in:
mxie
2018-06-23 10:34:19 +08:00
parent 3b3cd071d2
commit 4aeab41add
2 changed files with 9 additions and 2 deletions
+6
View File
@@ -120,6 +120,12 @@ $primary-color: #1284e7;
line-height: 34px;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
.mx-shortcuts {
background: none;
outline: none;
border: 0;
color: inherit;
margin: 0;
padding: 0;
white-space: nowrap;
cursor: pointer;
&:hover {
+3 -2
View File
@@ -49,11 +49,12 @@
<slot name="header">
<div class="mx-shortcuts-wrapper"
v-if="range && innnerShortcuts.length">
<span
<button
type="button"
class="mx-shortcuts"
v-for="(range, index) in innnerShortcuts"
:key="index"
@click="selectRange(range)">{{range.text}}</span>
@click="selectRange(range)">{{range.text}}</button>
</div>
</slot>
<calendar-panel