You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.4 KiB
66 lines
1.4 KiB
// 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;
|
|
}
|