Commit d759a6c692e245881b2d4405cb1168abc48e8eec
Committed by
GitHub
Merge pull request #3433 from sunderls/dev/add-button-type
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> | ... | ... |