hongluan-ui
Version:
Hongluan Component Library for Vue 3
55 lines (54 loc) • 1.65 kB
TypeScript
import type { ExtractPropTypes, PropType } from 'vue';
import type Tag from './tag.vue';
export declare const tagProps: {
/**
* @description whether Tag can be removed
*/
readonly closable: BooleanConstructor;
/**
* @description type of Tag
*/
readonly type: {
readonly type: PropType<"success" | "info" | "warning" | "danger" | "link" | "primary">;
readonly validator: (val: string) => boolean;
};
/**
* @description whether to disable animations
*/
readonly disableTransitions: BooleanConstructor;
/**
* @description size of Tag
*/
readonly size: {
readonly type: PropType<"xxxs" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl">;
readonly validator: (val: string) => boolean;
};
/**
* @description whether Tag has a highlighted border
*/
readonly hit: BooleanConstructor;
/**
* @description background color of the Tag
*/
readonly color: {
readonly type: StringConstructor;
readonly default: "";
};
/**
* @description theme of Tag
*/
readonly effect: StringConstructor;
readonly outline: BooleanConstructor;
/**
* @description whether Tag is rounded
*/
readonly round: BooleanConstructor;
readonly active: BooleanConstructor;
};
export declare type TagProps = ExtractPropTypes<typeof tagProps>;
export declare const tagEmits: {
close: (evt: MouseEvent) => boolean;
click: (evt: MouseEvent) => boolean;
};
export declare type TagEmits = typeof tagEmits;
export declare type TagInstance = InstanceType<typeof Tag>;