1 |
|
2 |
|
3 |
|
4 |
|
5 | import * as React from 'react';
|
6 |
|
7 | import { IEaseType } from 'rc-tween-one/typings/AnimObject';
|
8 |
|
9 | import Arrow from './Arrow';
|
10 | import Thumb from './Thumb';
|
11 | import Element from './Element';
|
12 |
|
13 | export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
14 |
|
15 | type ITypeString = 'across' | 'vertical' | 'acrossOverlay' | 'verticalOverlay' | 'gridBar' | 'grid';
|
16 |
|
17 | export declare type IType = ITypeString | ITypeString[];
|
18 |
|
19 | export interface IProps<T> extends Omit<React.HTMLAttributes<T>, 'onChange'> {
|
20 | prefixCls?: string;
|
21 | arrow?: boolean;
|
22 | thumb?: boolean;
|
23 | initShow?: number;
|
24 | type?: IType;
|
25 | duration?: number;
|
26 | delay?: number;
|
27 | ease?: IEaseType;
|
28 | autoPlay?: boolean;
|
29 | autoPlaySpeed?: number;
|
30 | sync?: boolean;
|
31 | dragPlay?: boolean;
|
32 | onChange?: (type: string, current: number) => void;
|
33 | component?: string | React.ReactNode;
|
34 | }
|
35 |
|
36 | export declare function setAnimCompToTagComp(item: React.ReactElement<any>, i?: number): void;
|
37 | export declare function switchChildren(hideProps: boolean, item: React.ReactElement<any>): void;
|
38 | export declare const animType: {};
|
39 |
|
40 | export default class RcBannerAnim<T> extends React.Component<IProps<T>> {
|
41 | static Arrow: typeof Arrow;
|
42 | static Thumb: typeof Thumb;
|
43 | static Element: typeof Element;
|
44 | static setAnimCompToTagComp: typeof setAnimCompToTagComp;
|
45 | static animType: typeof animType;
|
46 | static switchChildren: typeof switchChildren;
|
47 | }
|
48 |
|
49 | export {
|
50 | Arrow,
|
51 | Thumb,
|
52 | Element,
|
53 | };
|
54 |
|