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:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user