tdesign-mobile-vue
Version:
tdesign-mobile-vue
337 lines (336 loc) • 11.9 kB
TypeScript
import './style';
import { TdSearchProps } from './type';
export * from './type';
export type SearchProps = TdSearchProps;
export declare const Search: {
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
action: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
default: string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue);
};
autocompleteOptions: {
type: import("vue").PropType<import("@/components").AutocompleteOption[]>;
};
center: BooleanConstructor;
clearTrigger: {
type: import("vue").PropType<"always" | "focus">;
default: "always" | "focus";
validator(val: "always" | "focus"): boolean;
};
clearable: {
type: BooleanConstructor;
default: boolean;
};
cursorColor: {
type: StringConstructor;
default: string;
};
disabled: BooleanConstructor;
focus: BooleanConstructor;
leftIcon: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
default: string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue);
};
maxcharacter: {
type: NumberConstructor;
};
maxlength: {
type: import("vue").PropType<string | number>;
};
placeholder: {
type: StringConstructor;
default: string;
};
readonly: {
type: BooleanConstructor;
default: any;
};
resultList: {
type: import("vue").PropType<string[]>;
default: () => string[];
};
shape: {
type: import("vue").PropType<"round" | "square">;
default: "round" | "square";
validator(val: "round" | "square"): boolean;
};
value: {
type: StringConstructor;
default: any;
};
modelValue: {
type: StringConstructor;
default: any;
};
defaultValue: {
type: StringConstructor;
default: string;
};
onActionClick: import("vue").PropType<(context: {
e: MouseEvent;
}) => void>;
onBlur: import("vue").PropType<(context: {
value: string;
e: FocusEvent;
}) => void>;
onChange: import("vue").PropType<(value: string, context: {
trigger: "clear" | "input-change" | "option-click";
e?: InputEvent | MouseEvent;
}) => void>;
onClear: import("vue").PropType<(context: {
e: MouseEvent;
}) => void>;
onFocus: import("vue").PropType<(context: {
value: string;
e: FocusEvent;
}) => void>;
onSearch: import("vue").PropType<(context?: {
value: string;
trigger: "clear" | "option-click" | "submit";
e?: InputEvent | MouseEvent;
}) => void>;
onSubmit: import("vue").PropType<(context: {
value: string;
e: KeyboardEvent;
}) => void>;
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
action: string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue);
center: boolean;
clearTrigger: "always" | "focus";
clearable: boolean;
cursorColor: string;
disabled: boolean;
focus: boolean;
leftIcon: string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue);
placeholder: string;
readonly: boolean;
resultList: string[];
shape: "round" | "square";
value: string;
modelValue: string;
defaultValue: string;
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import("vue").ExtractPropTypes<{
action: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
default: string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue);
};
autocompleteOptions: {
type: import("vue").PropType<import("@/components").AutocompleteOption[]>;
};
center: BooleanConstructor;
clearTrigger: {
type: import("vue").PropType<"always" | "focus">;
default: "always" | "focus";
validator(val: "always" | "focus"): boolean;
};
clearable: {
type: BooleanConstructor;
default: boolean;
};
cursorColor: {
type: StringConstructor;
default: string;
};
disabled: BooleanConstructor;
focus: BooleanConstructor;
leftIcon: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
default: string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue);
};
maxcharacter: {
type: NumberConstructor;
};
maxlength: {
type: import("vue").PropType<string | number>;
};
placeholder: {
type: StringConstructor;
default: string;
};
readonly: {
type: BooleanConstructor;
default: any;
};
resultList: {
type: import("vue").PropType<string[]>;
default: () => string[];
};
shape: {
type: import("vue").PropType<"round" | "square">;
default: "round" | "square";
validator(val: "round" | "square"): boolean;
};
value: {
type: StringConstructor;
default: any;
};
modelValue: {
type: StringConstructor;
default: any;
};
defaultValue: {
type: StringConstructor;
default: string;
};
onActionClick: import("vue").PropType<(context: {
e: MouseEvent;
}) => void>;
onBlur: import("vue").PropType<(context: {
value: string;
e: FocusEvent;
}) => void>;
onChange: import("vue").PropType<(value: string, context: {
trigger: "clear" | "input-change" | "option-click";
e?: InputEvent | MouseEvent;
}) => void>;
onClear: import("vue").PropType<(context: {
e: MouseEvent;
}) => void>;
onFocus: import("vue").PropType<(context: {
value: string;
e: FocusEvent;
}) => void>;
onSearch: import("vue").PropType<(context?: {
value: string;
trigger: "clear" | "option-click" | "submit";
e?: InputEvent | MouseEvent;
}) => void>;
onSubmit: import("vue").PropType<(context: {
value: string;
e: KeyboardEvent;
}) => void>;
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
action: string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue);
center: boolean;
clearTrigger: "always" | "focus";
clearable: boolean;
cursorColor: string;
disabled: boolean;
focus: boolean;
leftIcon: string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue);
placeholder: string;
readonly: boolean;
resultList: string[];
shape: "round" | "square";
value: string;
modelValue: string;
defaultValue: string;
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
action: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
default: string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue);
};
autocompleteOptions: {
type: import("vue").PropType<import("@/components").AutocompleteOption[]>;
};
center: BooleanConstructor;
clearTrigger: {
type: import("vue").PropType<"always" | "focus">;
default: "always" | "focus";
validator(val: "always" | "focus"): boolean;
};
clearable: {
type: BooleanConstructor;
default: boolean;
};
cursorColor: {
type: StringConstructor;
default: string;
};
disabled: BooleanConstructor;
focus: BooleanConstructor;
leftIcon: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
default: string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue);
};
maxcharacter: {
type: NumberConstructor;
};
maxlength: {
type: import("vue").PropType<string | number>;
};
placeholder: {
type: StringConstructor;
default: string;
};
readonly: {
type: BooleanConstructor;
default: any;
};
resultList: {
type: import("vue").PropType<string[]>;
default: () => string[];
};
shape: {
type: import("vue").PropType<"round" | "square">;
default: "round" | "square";
validator(val: "round" | "square"): boolean;
};
value: {
type: StringConstructor;
default: any;
};
modelValue: {
type: StringConstructor;
default: any;
};
defaultValue: {
type: StringConstructor;
default: string;
};
onActionClick: import("vue").PropType<(context: {
e: MouseEvent;
}) => void>;
onBlur: import("vue").PropType<(context: {
value: string;
e: FocusEvent;
}) => void>;
onChange: import("vue").PropType<(value: string, context: {
trigger: "clear" | "input-change" | "option-click";
e?: InputEvent | MouseEvent;
}) => void>;
onClear: import("vue").PropType<(context: {
e: MouseEvent;
}) => void>;
onFocus: import("vue").PropType<(context: {
value: string;
e: FocusEvent;
}) => void>;
onSearch: import("vue").PropType<(context?: {
value: string;
trigger: "clear" | "option-click" | "submit";
e?: InputEvent | MouseEvent;
}) => void>;
onSubmit: import("vue").PropType<(context: {
value: string;
e: KeyboardEvent;
}) => void>;
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
action: string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue);
center: boolean;
clearTrigger: "always" | "focus";
clearable: boolean;
cursorColor: string;
disabled: boolean;
focus: boolean;
leftIcon: string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue);
placeholder: string;
readonly: boolean;
resultList: string[];
shape: "round" | "square";
value: string;
modelValue: string;
defaultValue: string;
}, {}, 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 Search;