Carousel: add type="button" to navigation buttons

pull/8836/head
Leopoldthecoder 2017-12-15 12:23:29 +08:00 committed by 杨奕
parent 227508ae26
commit 6497e8c1c1
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@
:style="{ height: height }">
<transition name="carousel-arrow-left">
<button
type="button"
v-if="arrow !== 'never'"
v-show="arrow === 'always' || hover"
@mouseenter="handleButtonEnter('left')"
@ -20,6 +21,7 @@
</transition>
<transition name="carousel-arrow-right">
<button
type="button"
v-if="arrow !== 'never'"
v-show="arrow === 'always' || hover"
@mouseenter="handleButtonEnter('right')"