1 | import { ElementUIComponent } from './component'
|
2 |
|
3 | export type CarouselIndicatorTrigger = 'hover' | 'click'
|
4 | export type CarouselIndicatorPosition = 'outside' | 'none'
|
5 | export type CarouselArrowVisibility = 'always' | 'hover' | 'never'
|
6 | export type CarouselType = 'card'
|
7 | export type CarouselDirection = 'horizontal' | 'vertical'
|
8 |
|
9 |
|
10 | export declare class ElCarousel extends ElementUIComponent {
|
11 |
|
12 | height: number
|
13 |
|
14 |
|
15 | initialIndex: number
|
16 |
|
17 |
|
18 | trigger: CarouselIndicatorTrigger
|
19 |
|
20 |
|
21 | autoplay: boolean
|
22 |
|
23 |
|
24 | interval: number
|
25 |
|
26 |
|
27 | indicatorPosition: CarouselIndicatorPosition
|
28 |
|
29 |
|
30 | arrow: CarouselArrowVisibility
|
31 |
|
32 |
|
33 | type: CarouselType
|
34 |
|
35 |
|
36 | direction: CarouselDirection
|
37 |
|
38 | |
39 |
|
40 |
|
41 |
|
42 |
|
43 | setActiveItem (index: number): void
|
44 |
|
45 | |
46 |
|
47 |
|
48 |
|
49 |
|
50 | setActiveItem (name: string): void
|
51 |
|
52 |
|
53 | prev (): void
|
54 |
|
55 |
|
56 | next (): void
|
57 | }
|