1 |
|
2 |
|
3 | import * as React from 'react';
|
4 | import CommonProps from '../util';
|
5 |
|
6 | interface HTMLAttributesWeak extends React.HTMLAttributes<HTMLElement> {
|
7 | onChange?: any;
|
8 | }
|
9 |
|
10 | export interface SliderProps extends HTMLAttributesWeak, CommonProps {
|
11 | |
12 |
|
13 |
|
14 | className?: any;
|
15 |
|
16 | |
17 |
|
18 |
|
19 | adaptiveHeight?: boolean;
|
20 |
|
21 | |
22 |
|
23 |
|
24 | animation?: string | boolean;
|
25 |
|
26 | |
27 |
|
28 |
|
29 | arrows?: boolean;
|
30 |
|
31 | |
32 |
|
33 |
|
34 | arrowSize?: 'medium' | 'large';
|
35 |
|
36 | |
37 |
|
38 |
|
39 | arrowPosition?: 'inner' | 'outer';
|
40 |
|
41 | |
42 |
|
43 |
|
44 | arrowDirection?: 'hoz' | 'ver';
|
45 |
|
46 | |
47 |
|
48 |
|
49 | autoplay?: boolean;
|
50 |
|
51 | |
52 |
|
53 |
|
54 | autoplaySpeed?: number;
|
55 |
|
56 | |
57 |
|
58 |
|
59 | nextArrow?: React.ReactElement<any>;
|
60 |
|
61 | |
62 |
|
63 |
|
64 | prevArrow?: React.ReactElement<any>;
|
65 |
|
66 | |
67 |
|
68 |
|
69 | centerMode?: boolean;
|
70 |
|
71 | |
72 |
|
73 |
|
74 | dots?: boolean;
|
75 |
|
76 | |
77 |
|
78 |
|
79 | dotsClass?: string;
|
80 |
|
81 | |
82 |
|
83 |
|
84 | dotsDirection?: 'hoz' | 'ver';
|
85 |
|
86 | |
87 |
|
88 |
|
89 | dotsRender?: (index: number, current: number) => void;
|
90 |
|
91 | |
92 |
|
93 |
|
94 | draggable?: boolean;
|
95 |
|
96 | |
97 |
|
98 |
|
99 | infinite?: boolean;
|
100 |
|
101 | |
102 |
|
103 |
|
104 | defaultActiveIndex?: number;
|
105 |
|
106 | |
107 |
|
108 |
|
109 | lazyLoad?: boolean;
|
110 |
|
111 | |
112 |
|
113 |
|
114 | slideDirection?: 'hoz' | 'ver';
|
115 |
|
116 | |
117 |
|
118 |
|
119 | slidesToShow?: number;
|
120 |
|
121 | |
122 |
|
123 |
|
124 | slidesToScroll?: number;
|
125 |
|
126 | |
127 |
|
128 |
|
129 | speed?: number;
|
130 |
|
131 | |
132 |
|
133 |
|
134 | activeIndex?: number;
|
135 |
|
136 | |
137 |
|
138 |
|
139 | triggerType?: 'click' | 'hover';
|
140 |
|
141 | |
142 |
|
143 |
|
144 | onChange?: (index: number) => void;
|
145 |
|
146 | |
147 |
|
148 |
|
149 | style?: React.CSSProperties;
|
150 |
|
151 | |
152 |
|
153 |
|
154 | centerPadding?: string;
|
155 |
|
156 | |
157 |
|
158 |
|
159 | cssEase?: string;
|
160 |
|
161 | |
162 |
|
163 |
|
164 | focusOnSelect?: boolean;
|
165 |
|
166 | |
167 |
|
168 |
|
169 | pauseOnHover?: boolean;
|
170 | }
|
171 |
|
172 | export default class Slider extends React.Component<SliderProps, any> {}
|