@@ -61,10 +61,10 @@ Loop a series of images or texts in a limited space
...
@@ -61,10 +61,10 @@ Loop a series of images or texts in a limited space
Indicators can be displayed outside the carousel
Indicators can be displayed outside the carousel
::: demo The `indicator-position` attribute determines where the indicators are located. By default they are inside the carousel, and setting `indicator-position` to `out` moves them outside.
::: demo The `indicator-position` attribute determines where the indicators are located. By default they are inside the carousel, and setting `indicator-position` to `outside` moves them outside.
```html
```html
<template>
<template>
<el-carouselindicator-position="out">
<el-carouselindicator-position="outside">
<el-carousel-itemv-for="item in 4">
<el-carousel-itemv-for="item in 4">
<h3>{{ item }}</h3>
<h3>{{ item }}</h3>
</el-carousel-item>
</el-carousel-item>
...
@@ -95,10 +95,10 @@ Indicators can be displayed outside the carousel
...
@@ -95,10 +95,10 @@ Indicators can be displayed outside the carousel
You can define when arrows are displayed
You can define when arrows are displayed
::: demo The `show-arrow` attribute determines when arrows are displayed. By default they appear when mouse hovers over the carousel. Setting `show-arrow` to `always` or `never` shows/hides the arrows permanently.
::: demo The `arrow` attribute determines when arrows are displayed. By default they appear when mouse hovers over the carousel. Setting `arrow` to `always` or `never` shows/hides the arrows permanently.
```html
```html
<template>
<template>
<el-carousel:interval="5000"show-arrow="always">
<el-carousel:interval="5000"arrow="always">
<el-carousel-itemv-for="item in 4">
<el-carousel-itemv-for="item in 4">
<h3>{{ item }}</h3>
<h3>{{ item }}</h3>
</el-carousel-item>
</el-carousel-item>
...
@@ -165,11 +165,11 @@ When a page is wide enough but has limited height, you can activate card mode fo
...
@@ -165,11 +165,11 @@ When a page is wide enough but has limited height, you can activate card mode fo
| height | height of the carousel | number | — | 300 |
| height | height of the carousel | number | — | 300 |
| initial-index | index of the initially active slide (starting from 0) | number | — | 0 |
| initial-index | index of the initially active slide (starting from 0) | number | — | 0 |
| trigger | how indicators are triggered | string | click | — |
| trigger | how indicators are triggered | string | click | — |
| arrow-size | size of the arrows | number | — | 36 |