UNPKG

tdesign-mobile-vue

Version:
428 lines (427 loc) 18.6 kB
import { TdCheckTagProps, TdTagProps } from './type'; import './style'; export * from './type'; export type CheckTagProps = TdCheckTagProps; export type TagProps = TdTagProps; export declare const Tag: { new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{ closable: BooleanConstructor; content: { type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; default: { type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; disabled: BooleanConstructor; icon: { type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>; default: any; }; maxWidth: { type: import("vue").PropType<string | number>; }; shape: { type: import("vue").PropType<"mark" | "round" | "square">; default: "mark" | "round" | "square"; validator(val: "mark" | "round" | "square"): boolean; }; size: { type: import("vue").PropType<"extra-large" | "large" | "medium" | "small">; default: "extra-large" | "large" | "medium" | "small"; validator(val: "extra-large" | "large" | "medium" | "small"): boolean; }; theme: { type: import("vue").PropType<"danger" | "default" | "primary" | "success" | "warning">; default: "danger" | "default" | "primary" | "success" | "warning"; validator(val: "danger" | "default" | "primary" | "success" | "warning"): boolean; }; variant: { type: import("vue").PropType<"dark" | "light" | "light-outline" | "outline">; default: "dark" | "light" | "light-outline" | "outline"; validator(val: "dark" | "light" | "light-outline" | "outline"): boolean; }; onClick: import("vue").PropType<(context: { e: MouseEvent; }) => void>; onClose: import("vue").PropType<(context: { e: MouseEvent; }) => void>; }>> & Readonly<{ onClick?: (...args: any[]) => any; onClose?: (...args: any[]) => any; }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "close")[], import("vue").PublicProps, { closable: boolean; disabled: boolean; icon: (h: typeof import("vue").h) => import("@/common").SlotReturnValue; shape: "mark" | "round" | "square"; size: "extra-large" | "large" | "medium" | "small"; theme: "danger" | "default" | "primary" | "success" | "warning"; variant: "dark" | "light" | "light-outline" | "outline"; }, true, {}, {}, { CloseIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{ size: { type: StringConstructor; }; onClick: { type: import("vue").PropType<(context: { e: MouseEvent; }) => void>; }; fillColor: { type: import("vue").PropType<string | string[]>; }; strokeColor: { type: import("vue").PropType<string | string[]>; }; strokeWidth: { type: import("vue").PropType<number>; }; }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ size: { type: StringConstructor; }; onClick: { type: import("vue").PropType<(context: { e: MouseEvent; }) => void>; }; fillColor: { type: import("vue").PropType<string | string[]>; }; strokeColor: { type: import("vue").PropType<string | string[]>; }; strokeWidth: { type: import("vue").PropType<number>; }; }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; } & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly<import("vue").ExtractPropTypes<{ closable: BooleanConstructor; content: { type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; default: { type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; disabled: BooleanConstructor; icon: { type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>; default: any; }; maxWidth: { type: import("vue").PropType<string | number>; }; shape: { type: import("vue").PropType<"mark" | "round" | "square">; default: "mark" | "round" | "square"; validator(val: "mark" | "round" | "square"): boolean; }; size: { type: import("vue").PropType<"extra-large" | "large" | "medium" | "small">; default: "extra-large" | "large" | "medium" | "small"; validator(val: "extra-large" | "large" | "medium" | "small"): boolean; }; theme: { type: import("vue").PropType<"danger" | "default" | "primary" | "success" | "warning">; default: "danger" | "default" | "primary" | "success" | "warning"; validator(val: "danger" | "default" | "primary" | "success" | "warning"): boolean; }; variant: { type: import("vue").PropType<"dark" | "light" | "light-outline" | "outline">; default: "dark" | "light" | "light-outline" | "outline"; validator(val: "dark" | "light" | "light-outline" | "outline"): boolean; }; onClick: import("vue").PropType<(context: { e: MouseEvent; }) => void>; onClose: import("vue").PropType<(context: { e: MouseEvent; }) => void>; }>> & Readonly<{ onClick?: (...args: any[]) => any; onClose?: (...args: any[]) => any; }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, { closable: boolean; disabled: boolean; icon: (h: typeof import("vue").h) => import("@/common").SlotReturnValue; shape: "mark" | "round" | "square"; size: "extra-large" | "large" | "medium" | "small"; theme: "danger" | "default" | "primary" | "success" | "warning"; variant: "dark" | "light" | "light-outline" | "outline"; }>; __isFragment?: never; __isTeleport?: never; __isSuspense?: never; } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{ closable: BooleanConstructor; content: { type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; default: { type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; disabled: BooleanConstructor; icon: { type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>; default: any; }; maxWidth: { type: import("vue").PropType<string | number>; }; shape: { type: import("vue").PropType<"mark" | "round" | "square">; default: "mark" | "round" | "square"; validator(val: "mark" | "round" | "square"): boolean; }; size: { type: import("vue").PropType<"extra-large" | "large" | "medium" | "small">; default: "extra-large" | "large" | "medium" | "small"; validator(val: "extra-large" | "large" | "medium" | "small"): boolean; }; theme: { type: import("vue").PropType<"danger" | "default" | "primary" | "success" | "warning">; default: "danger" | "default" | "primary" | "success" | "warning"; validator(val: "danger" | "default" | "primary" | "success" | "warning"): boolean; }; variant: { type: import("vue").PropType<"dark" | "light" | "light-outline" | "outline">; default: "dark" | "light" | "light-outline" | "outline"; validator(val: "dark" | "light" | "light-outline" | "outline"): boolean; }; onClick: import("vue").PropType<(context: { e: MouseEvent; }) => void>; onClose: import("vue").PropType<(context: { e: MouseEvent; }) => void>; }>> & Readonly<{ onClick?: (...args: any[]) => any; onClose?: (...args: any[]) => any; }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "close")[], "click" | "close", { closable: boolean; disabled: boolean; icon: (h: typeof import("vue").h) => import("@/common").SlotReturnValue; shape: "mark" | "round" | "square"; size: "extra-large" | "large" | "medium" | "small"; theme: "danger" | "default" | "primary" | "success" | "warning"; variant: "dark" | "light" | "light-outline" | "outline"; }, {}, string, {}, { CloseIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{ size: { type: StringConstructor; }; onClick: { type: import("vue").PropType<(context: { e: MouseEvent; }) => void>; }; fillColor: { type: import("vue").PropType<string | string[]>; }; strokeColor: { type: import("vue").PropType<string | string[]>; }; strokeWidth: { type: import("vue").PropType<number>; }; }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ size: { type: StringConstructor; }; onClick: { type: import("vue").PropType<(context: { e: MouseEvent; }) => void>; }; fillColor: { type: import("vue").PropType<string | string[]>; }; strokeColor: { type: import("vue").PropType<string | string[]>; }; strokeWidth: { type: import("vue").PropType<number>; }; }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; } & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin; export declare const CheckTag: { new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{ checked: { type: BooleanConstructor; default: any; }; modelValue: { type: BooleanConstructor; default: any; }; defaultChecked: BooleanConstructor; closable: BooleanConstructor; content: { type: import("vue").PropType<string | number | string[] | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; default: { type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; disabled: BooleanConstructor; icon: { type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>; }; shape: { type: import("vue").PropType<"mark" | "round" | "square">; default: "mark" | "round" | "square"; validator(val: "mark" | "round" | "square"): boolean; }; size: { type: import("vue").PropType<import("@/common").SizeEnum>; default: import("@/common").SizeEnum; validator(val: import("@/common").SizeEnum): boolean; }; variant: { type: import("vue").PropType<"dark" | "light" | "light-outline" | "outline">; default: "dark" | "light" | "light-outline" | "outline"; validator(val: "dark" | "light" | "light-outline" | "outline"): boolean; }; onChange: import("vue").PropType<(checked: boolean) => void>; onClick: import("vue").PropType<(context: { e: MouseEvent; }) => void>; onClose: import("vue").PropType<(context: { e: MouseEvent; }) => void>; }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, { checked: boolean; modelValue: boolean; defaultChecked: boolean; closable: boolean; disabled: boolean; shape: "mark" | "round" | "square"; size: import("@/common").SizeEnum; variant: "dark" | "light" | "light-outline" | "outline"; }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly<import("vue").ExtractPropTypes<{ checked: { type: BooleanConstructor; default: any; }; modelValue: { type: BooleanConstructor; default: any; }; defaultChecked: BooleanConstructor; closable: BooleanConstructor; content: { type: import("vue").PropType<string | number | string[] | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; default: { type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; disabled: BooleanConstructor; icon: { type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>; }; shape: { type: import("vue").PropType<"mark" | "round" | "square">; default: "mark" | "round" | "square"; validator(val: "mark" | "round" | "square"): boolean; }; size: { type: import("vue").PropType<import("@/common").SizeEnum>; default: import("@/common").SizeEnum; validator(val: import("@/common").SizeEnum): boolean; }; variant: { type: import("vue").PropType<"dark" | "light" | "light-outline" | "outline">; default: "dark" | "light" | "light-outline" | "outline"; validator(val: "dark" | "light" | "light-outline" | "outline"): boolean; }; onChange: import("vue").PropType<(checked: boolean) => void>; onClick: import("vue").PropType<(context: { e: MouseEvent; }) => void>; onClose: import("vue").PropType<(context: { e: MouseEvent; }) => void>; }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, { checked: boolean; modelValue: boolean; defaultChecked: boolean; closable: boolean; disabled: boolean; shape: "mark" | "round" | "square"; size: import("@/common").SizeEnum; variant: "dark" | "light" | "light-outline" | "outline"; }>; __isFragment?: never; __isTeleport?: never; __isSuspense?: never; } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{ checked: { type: BooleanConstructor; default: any; }; modelValue: { type: BooleanConstructor; default: any; }; defaultChecked: BooleanConstructor; closable: BooleanConstructor; content: { type: import("vue").PropType<string | number | string[] | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; default: { type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; disabled: BooleanConstructor; icon: { type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>; }; shape: { type: import("vue").PropType<"mark" | "round" | "square">; default: "mark" | "round" | "square"; validator(val: "mark" | "round" | "square"): boolean; }; size: { type: import("vue").PropType<import("@/common").SizeEnum>; default: import("@/common").SizeEnum; validator(val: import("@/common").SizeEnum): boolean; }; variant: { type: import("vue").PropType<"dark" | "light" | "light-outline" | "outline">; default: "dark" | "light" | "light-outline" | "outline"; validator(val: "dark" | "light" | "light-outline" | "outline"): boolean; }; onChange: import("vue").PropType<(checked: boolean) => void>; onClick: import("vue").PropType<(context: { e: MouseEvent; }) => void>; onClose: import("vue").PropType<(context: { e: MouseEvent; }) => void>; }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, { checked: boolean; modelValue: boolean; defaultChecked: boolean; closable: boolean; disabled: boolean; shape: "mark" | "round" | "square"; size: import("@/common").SizeEnum; variant: "dark" | "light" | "light-outline" | "outline"; }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin; export default Tag;