mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-15 09:21:25 +08:00
66 lines
1.4 KiB
TypeScript
66 lines
1.4 KiB
TypeScript
// 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;
|
|
}
|