Commit 3a4a09a9f483731137d9f751c101f385a2991926

Authored by sunderls
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 <template> 1 <template>
2 <div :class="classes"> 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 <Icon type="chevron-left"></Icon> 4 <Icon type="chevron-left"></Icon>
5 </button> 5 </button>
6 <div :class="[prefixCls + '-list']"> 6 <div :class="[prefixCls + '-list']">
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 <div :class="[prefixCls + '-track', showCopyTrack ? 'higher' : '']" :style="copyTrackStyles" ref="copyTrack" v-if="loop"> 10 <div :class="[prefixCls + '-track', showCopyTrack ? 'higher' : '']" :style="copyTrackStyles" ref="copyTrack" v-if="loop">
11 </div> 11 </div>
12 </div> 12 </div>
13 - <button :class="arrowClasses" class="right" @click="arrowEvent(1)"> 13 + <button type="button" :class="arrowClasses" class="right" @click="arrowEvent(1)">
14 <Icon type="chevron-right"></Icon> 14 <Icon type="chevron-right"></Icon>
15 </button> 15 </button>
16 <ul :class="dotsClasses"> 16 <ul :class="dotsClasses">
@@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
18 <li :class="[n - 1 === currentIndex ? prefixCls + '-active' : '']" 18 <li :class="[n - 1 === currentIndex ? prefixCls + '-active' : '']"
19 @click="dotsEvent('click', n - 1)" 19 @click="dotsEvent('click', n - 1)"
20 @mouseover="dotsEvent('hover', n - 1)"> 20 @mouseover="dotsEvent('hover', n - 1)">
21 - <button :class="[radiusDot ? 'radius' : '']"></button> 21 + <button type="button" :class="[radiusDot ? 'radius' : '']"></button>
22 </li> 22 </li>
23 </template> 23 </template>
24 </ul> 24 </ul>