JewelryMall/admin/node_modules/element-plus/lib/components/icon/src/icon.d.ts
2026-02-14 19:29:15 +08:00

35 lines
1.2 KiB
TypeScript

import type { ExtractPublicPropTypes } from 'vue';
import type Icon from './icon.vue';
export interface IconProps {
/**
* @description SVG icon size, size x size
*/
size?: number | string;
/**
* @description SVG tag's fill attribute
*/
color?: string;
}
/**
* @deprecated Removed after 3.0.0, Use `IconProps` instead.
*/
export declare const iconProps: {
readonly size: {
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly color: {
readonly type: import("vue").PropType<string>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
};
/**
* @deprecated Removed after 3.0.0, Use `IconProps` instead.
*/
export type IconPropsPublic = ExtractPublicPropTypes<typeof iconProps>;
export type IconInstance = InstanceType<typeof Icon> & unknown;