hongluan-ui
Version:
Hongluan Component Library for Vue 3
31 lines (30 loc) • 1.07 kB
TypeScript
import type { ExtractPropTypes, PropType } from 'vue';
import type Icon from './icon.vue';
export declare const iconProps: {
type: {
type: PropType<"success" | "info" | "warning" | "danger" | "link" | "primary">;
validator: (val: string) => boolean;
};
size: {
type: PropType<"xxxs" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl">;
validator: (val: string) => boolean;
};
name: {
type: StringConstructor;
default: string;
};
color: StringConstructor;
border: NumberConstructor;
opacity: NumberConstructor;
width: (StringConstructor | NumberConstructor)[];
height: (StringConstructor | NumberConstructor)[];
gradient: BooleanConstructor;
startColor: StringConstructor;
fill: BooleanConstructor;
round: BooleanConstructor;
radius: BooleanConstructor;
transition: BooleanConstructor;
effect: StringConstructor;
};
export declare type IconProps = ExtractPropTypes<typeof iconProps>;
export declare type IconInstance = InstanceType<typeof Icon>;