Skip to content

Commit a3648e5

Browse files
committed
[Carousel] Change interval default value to 5000.
1 parent 7252ddc commit a3648e5

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docs/pages/components/Carousel.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
export default {
3535
data () {
3636
return {
37-
interval: 2000,
37+
interval: 5000,
3838
indicators: true,
3939
controls: true,
4040
slides: [
@@ -165,7 +165,7 @@ Name | Type | Default | Required
165165
`v-model` | Number | | | The current slide index, use this to manual change slide index.
166166
`indicators` | Boolean | true | | Show / hide the indicators.
167167
`controls` | Boolean | true | | Show / hide the controls.
168-
`interval` | Number | 2000 | | Slides running interval time.
168+
`interval` | Number | 5000 | | Slides running interval time in ms. Use `0` to stop interval.
169169
`icon-control-left` | String | glyphicon glyphicon-chevron-left | | The left control icon font class.
170170
`icon-control-right` | String | glyphicon glyphicon-chevron-right | | The right control icon font class.
171171

src/components/carousel/Carousel.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
<script>
2323
export default {
2424
props: {
25-
value: {
26-
type: Number
27-
},
25+
value: Number,
2826
indicators: {
2927
type: Boolean,
3028
default: true
@@ -35,7 +33,7 @@
3533
},
3634
interval: {
3735
type: Number,
38-
default: 2000
36+
default: 5000
3937
},
4038
iconControlLeft: {
4139
type: String,

0 commit comments

Comments
 (0)