1 | import { CSSProperties, FocusEventHandler, MouseEventHandler } from 'react';
|
2 | import createFromIconfontCN from './IconFont';
|
3 | export interface IconProps {
|
4 | type: string;
|
5 | className?: string;
|
6 | title?: string;
|
7 | customFontName?: string;
|
8 | onClick?: MouseEventHandler<any>;
|
9 | onFocus?: FocusEventHandler<any>;
|
10 | onMouseDown?: MouseEventHandler<any>;
|
11 | onMouseUp?: MouseEventHandler<any>;
|
12 | onMouseEnter?: MouseEventHandler<any>;
|
13 | onMouseLeave?: MouseEventHandler<any>;
|
14 | style?: CSSProperties;
|
15 | tabIndex?: number;
|
16 | width?: number | string;
|
17 | height?: number | string;
|
18 | scriptUrl?: string;
|
19 | }
|
20 | declare const Icon: {
|
21 | (props: IconProps): JSX.Element;
|
22 | displayName: string;
|
23 | createFromIconfontCN: typeof createFromIconfontCN;
|
24 | __C7N_ICON: boolean;
|
25 | };
|
26 | export default Icon;
|