forked from vueComponent/ant-design-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
icon.d.ts
65 lines (55 loc) · 1.4 KB
/
icon.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { Component } from 'vue/types/options';
export interface IconOptions {
/**
* The URL generated by iconfont.cn project.
* @type string
*/
scriptUrl: string;
/**
* Define extra properties to the component
* @default {}
* @type object
*/
extraCommonProps?: { [key: string]: any };
}
export declare class Icon extends AntdComponent {
static getTwoToneColor(): string;
static setTwoToneColor(colorString: string): void;
static createFromIconfontCN(iconOptions: IconOptions): Icon;
/**
* Type of the ant design icon
* @type string
*/
type: string;
/**
* Style properties of icon, like fontSize and color
* @type string
*/
style: string;
/**
* The component used for the root node. This will override the type property.
* @type Component
*/
component: Component;
/**
* Rotate icon with animation
* @default false
* @type boolean
*/
spin: boolean;
/**
* Theme of the ant design icon
* @default 'outlined'
* @type string
*/
theme: 'filled' | 'outlined' | 'twoTone';
/**
* Only support the two-tone icon. Specific the primary color.
* @type string
*/
twoToneColor: string;
}