Commit 3a4a09a9f483731137d9f751c101f385a2991926
1 parent
3dc998e6
Add button type in carousel
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
src/components/carousel/carousel.vue
1 | 1 | <template> |
2 | 2 | <div :class="classes"> |
3 | - <button :class="arrowClasses" class="left" @click="arrowEvent(-1)"> | |
3 | + <button type="button" :class="arrowClasses" class="left" @click="arrowEvent(-1)"> | |
4 | 4 | <Icon type="chevron-left"></Icon> |
5 | 5 | </button> |
6 | 6 | <div :class="[prefixCls + '-list']"> |
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 | <div :class="[prefixCls + '-track', showCopyTrack ? 'higher' : '']" :style="copyTrackStyles" ref="copyTrack" v-if="loop"> |
11 | 11 | </div> |
12 | 12 | </div> |
13 | - <button :class="arrowClasses" class="right" @click="arrowEvent(1)"> | |
13 | + <button type="button" :class="arrowClasses" class="right" @click="arrowEvent(1)"> | |
14 | 14 | <Icon type="chevron-right"></Icon> |
15 | 15 | </button> |
16 | 16 | <ul :class="dotsClasses"> |
... | ... | @@ -18,7 +18,7 @@ |
18 | 18 | <li :class="[n - 1 === currentIndex ? prefixCls + '-active' : '']" |
19 | 19 | @click="dotsEvent('click', n - 1)" |
20 | 20 | @mouseover="dotsEvent('hover', n - 1)"> |
21 | - <button :class="[radiusDot ? 'radius' : '']"></button> | |
21 | + <button type="button" :class="[radiusDot ? 'radius' : '']"></button> | |
22 | 22 | </li> |
23 | 23 | </template> |
24 | 24 | </ul> | ... | ... |