tdesign-mobile-vue
Version:
tdesign-mobile-vue
47 lines (46 loc) • 1.59 kB
TypeScript
import { TdTagProps } from './type';
import { PropType } from 'vue';
declare const _default: {
closable: BooleanConstructor;
content: {
type: PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue)>;
};
default: {
type: PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue)>;
};
disabled: BooleanConstructor;
icon: {
type: PropType<(h: typeof import("vue").h) => import("..").SlotReturnValue>;
default: any;
};
maxWidth: {
type: PropType<string | number>;
};
shape: {
type: PropType<"mark" | "round" | "square">;
default: "mark" | "round" | "square";
validator(val: TdTagProps['shape']): boolean;
};
size: {
type: PropType<"small" | "medium" | "large" | "extra-large">;
default: "small" | "medium" | "large" | "extra-large";
validator(val: TdTagProps['size']): boolean;
};
theme: {
type: PropType<"default" | "primary" | "danger" | "warning" | "success">;
default: "default" | "primary" | "danger" | "warning" | "success";
validator(val: TdTagProps['theme']): boolean;
};
variant: {
type: PropType<"dark" | "light" | "outline" | "light-outline">;
default: "dark" | "light" | "outline" | "light-outline";
validator(val: TdTagProps['variant']): boolean;
};
onClick: PropType<(context: {
e: MouseEvent;
}) => void>;
onClose: PropType<(context: {
e: MouseEvent;
}) => void>;
};
export default _default;