ant-design-vue
Version:
An enterprise-class UI design language and Vue-based implementation
410 lines (409 loc) • 17.1 kB
TypeScript
import { App, nextTick, VNodeTypes } from 'vue';
export interface OptionProps {
value: string;
disabled: boolean;
children: VNodeTypes;
[key: string]: any;
}
declare const _default: ({
new (...args: any[]): {
$: import("vue").ComponentInternalInstance;
$data: {
focused: boolean;
};
$props: Partial<{
prefixCls: string;
value: string;
filterOption: (...args: any[]) => any;
transitionName: string;
split: string;
defaultValue: string;
characterRender: (...args: any[]) => any;
validateSearch: (...args: any[]) => any;
}> & Pick<Readonly<{
prefixCls: string;
value: string;
filterOption: (...args: any[]) => any;
transitionName: string;
split: string;
defaultValue: string;
characterRender: (...args: any[]) => any;
validateSearch: (...args: any[]) => any;
} & {
onFocus?: (e: FocusEvent) => void;
onBlur?: (e: FocusEvent) => void;
onChange?: (text: string) => void;
onSelect?: (option: OptionProps, prefix: string) => void;
disabled?: boolean;
notFoundContent?: import("../_util/type").VueNode;
autofocus?: boolean;
getPopupContainer?: () => HTMLElement;
loading?: boolean;
prefix?: string | unknown[];
placement?: "bottom" | "top";
character?: any;
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "style" | "class" | "onFocus" | "onBlur" | "onChange" | "onSelect" | "key" | "ref" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "disabled" | "notFoundContent" | "autofocus" | "getPopupContainer" | "loading" | "prefix" | "placement" | "character">;
$attrs: Record<string, unknown>;
$refs: Record<string, unknown>;
$slots: Readonly<{
[name: string]: import("vue").Slot;
}>;
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
$emit: (event: "blur" | "change" | "focus" | "select" | "update:value", ...args: any[]) => void;
$el: any;
$options: import("vue").ComponentOptionsBase<Readonly<{
prefixCls: string;
value: string;
filterOption: (...args: any[]) => any;
transitionName: string;
split: string;
defaultValue: string;
characterRender: (...args: any[]) => any;
validateSearch: (...args: any[]) => any;
} & {
onFocus?: (e: FocusEvent) => void;
onBlur?: (e: FocusEvent) => void;
onChange?: (text: string) => void;
onSelect?: (option: OptionProps, prefix: string) => void;
disabled?: boolean;
notFoundContent?: import("../_util/type").VueNode;
autofocus?: boolean;
getPopupContainer?: () => HTMLElement;
loading?: boolean;
prefix?: string | unknown[];
placement?: "bottom" | "top";
character?: any;
}>, {
configProvider: import("../config-provider").ConfigConsumerProps;
}, {
focused: boolean;
}, {}, {
handleFocus(e: FocusEvent): void;
handleBlur(e: FocusEvent): void;
handleSelect(args_0: OptionProps, args_1: string): void;
handleChange(val: string): void;
getNotFoundContent(renderEmpty: typeof import("../config-provider/renderEmpty").default): any;
getOptions(): JSX.Element;
getFilterOption(): (...args: any[]) => any;
focus(): void;
blur(): void;
}, {
methods: {
setState(state: {}, callback: any): void;
__emit(...args: any[]): void;
};
}, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "select" | "update:value")[], string, {
prefixCls: string;
value: string;
filterOption: (...args: any[]) => any;
transitionName: string;
split: string;
defaultValue: string;
characterRender: (...args: any[]) => any;
validateSearch: (...args: any[]) => any;
}>;
$forceUpdate: import("vue").ReactiveEffect<any>;
$nextTick: typeof nextTick;
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
} & Readonly<{
prefixCls: string;
value: string;
filterOption: (...args: any[]) => any;
transitionName: string;
split: string;
defaultValue: string;
characterRender: (...args: any[]) => any;
validateSearch: (...args: any[]) => any;
} & {
onFocus?: (e: FocusEvent) => void;
onBlur?: (e: FocusEvent) => void;
onChange?: (text: string) => void;
onSelect?: (option: OptionProps, prefix: string) => void;
disabled?: boolean;
notFoundContent?: import("../_util/type").VueNode;
autofocus?: boolean;
getPopupContainer?: () => HTMLElement;
loading?: boolean;
prefix?: string | unknown[];
placement?: "bottom" | "top";
character?: any;
}> & import("vue").ShallowUnwrapRef<{
configProvider: import("../config-provider").ConfigConsumerProps;
}> & {
focused: boolean;
} & {
[x: string]: never;
} & {
setState(state: {}, callback: any): void;
__emit(...args: any[]): void;
} & {
handleFocus(e: FocusEvent): void;
handleBlur(e: FocusEvent): void;
handleSelect(args_0: OptionProps, args_1: string): void;
handleChange(val: string): void;
getNotFoundContent(renderEmpty: typeof import("../config-provider/renderEmpty").default): any;
getOptions(): JSX.Element;
getFilterOption(): (...args: any[]) => any;
focus(): void;
blur(): void;
} & import("vue").ComponentCustomProperties;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import("vue").ComponentOptionsBase<Readonly<{
prefixCls: string;
value: string;
filterOption: (...args: any[]) => any;
transitionName: string;
split: string;
defaultValue: string;
characterRender: (...args: any[]) => any;
validateSearch: (...args: any[]) => any;
} & {
onFocus?: (e: FocusEvent) => void;
onBlur?: (e: FocusEvent) => void;
onChange?: (text: string) => void;
onSelect?: (option: OptionProps, prefix: string) => void;
disabled?: boolean;
notFoundContent?: import("../_util/type").VueNode;
autofocus?: boolean;
getPopupContainer?: () => HTMLElement;
loading?: boolean;
prefix?: string | unknown[];
placement?: "bottom" | "top";
character?: any;
}>, {
configProvider: import("../config-provider").ConfigConsumerProps;
}, {
focused: boolean;
}, {}, {
handleFocus(e: FocusEvent): void;
handleBlur(e: FocusEvent): void;
handleSelect(args_0: OptionProps, args_1: string): void;
handleChange(val: string): void;
getNotFoundContent(renderEmpty: typeof import("../config-provider/renderEmpty").default): any;
getOptions(): JSX.Element;
getFilterOption(): (...args: any[]) => any;
focus(): void;
blur(): void;
}, {
methods: {
setState(state: {}, callback: any): void;
__emit(...args: any[]): void;
};
}, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "select" | "update:value")[], "select" | "blur" | "change" | "focus" | "update:value", {
prefixCls: string;
value: string;
filterOption: (...args: any[]) => any;
transitionName: string;
split: string;
defaultValue: string;
characterRender: (...args: any[]) => any;
validateSearch: (...args: any[]) => any;
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & ((app: App<any>, ...options: any[]) => any) & {
install?: (app: App<any>, ...options: any[]) => any;
} & {
readonly Option: any;
}) | ({
new (...args: any[]): {
$: import("vue").ComponentInternalInstance;
$data: {
focused: boolean;
};
$props: Partial<{
prefixCls: string;
value: string;
filterOption: (...args: any[]) => any;
transitionName: string;
split: string;
defaultValue: string;
characterRender: (...args: any[]) => any;
validateSearch: (...args: any[]) => any;
}> & Pick<Readonly<{
prefixCls: string;
value: string;
filterOption: (...args: any[]) => any;
transitionName: string;
split: string;
defaultValue: string;
characterRender: (...args: any[]) => any;
validateSearch: (...args: any[]) => any;
} & {
onFocus?: (e: FocusEvent) => void;
onBlur?: (e: FocusEvent) => void;
onChange?: (text: string) => void;
onSelect?: (option: OptionProps, prefix: string) => void;
disabled?: boolean;
notFoundContent?: import("../_util/type").VueNode;
autofocus?: boolean;
getPopupContainer?: () => HTMLElement;
loading?: boolean;
prefix?: string | unknown[];
placement?: "bottom" | "top";
character?: any;
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "style" | "class" | "onFocus" | "onBlur" | "onChange" | "onSelect" | "key" | "ref" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "disabled" | "notFoundContent" | "autofocus" | "getPopupContainer" | "loading" | "prefix" | "placement" | "character">;
$attrs: Record<string, unknown>;
$refs: Record<string, unknown>;
$slots: Readonly<{
[name: string]: import("vue").Slot;
}>;
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
$emit: (event: "blur" | "change" | "focus" | "select" | "update:value", ...args: any[]) => void;
$el: any;
$options: import("vue").ComponentOptionsBase<Readonly<{
prefixCls: string;
value: string;
filterOption: (...args: any[]) => any;
transitionName: string;
split: string;
defaultValue: string;
characterRender: (...args: any[]) => any;
validateSearch: (...args: any[]) => any;
} & {
onFocus?: (e: FocusEvent) => void;
onBlur?: (e: FocusEvent) => void;
onChange?: (text: string) => void;
onSelect?: (option: OptionProps, prefix: string) => void;
disabled?: boolean;
notFoundContent?: import("../_util/type").VueNode;
autofocus?: boolean;
getPopupContainer?: () => HTMLElement;
loading?: boolean;
prefix?: string | unknown[];
placement?: "bottom" | "top";
character?: any;
}>, {
configProvider: import("../config-provider").ConfigConsumerProps;
}, {
focused: boolean;
}, {}, {
handleFocus(e: FocusEvent): void;
handleBlur(e: FocusEvent): void;
handleSelect(args_0: OptionProps, args_1: string): void;
handleChange(val: string): void;
getNotFoundContent(renderEmpty: typeof import("../config-provider/renderEmpty").default): any;
getOptions(): JSX.Element;
getFilterOption(): (...args: any[]) => any;
focus(): void;
blur(): void;
}, {
methods: {
setState(state: {}, callback: any): void;
__emit(...args: any[]): void;
};
}, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "select" | "update:value")[], string, {
prefixCls: string;
value: string;
filterOption: (...args: any[]) => any;
transitionName: string;
split: string;
defaultValue: string;
characterRender: (...args: any[]) => any;
validateSearch: (...args: any[]) => any;
}>;
$forceUpdate: import("vue").ReactiveEffect<any>;
$nextTick: typeof nextTick;
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
} & Readonly<{
prefixCls: string;
value: string;
filterOption: (...args: any[]) => any;
transitionName: string;
split: string;
defaultValue: string;
characterRender: (...args: any[]) => any;
validateSearch: (...args: any[]) => any;
} & {
onFocus?: (e: FocusEvent) => void;
onBlur?: (e: FocusEvent) => void;
onChange?: (text: string) => void;
onSelect?: (option: OptionProps, prefix: string) => void;
disabled?: boolean;
notFoundContent?: import("../_util/type").VueNode;
autofocus?: boolean;
getPopupContainer?: () => HTMLElement;
loading?: boolean;
prefix?: string | unknown[];
placement?: "bottom" | "top";
character?: any;
}> & import("vue").ShallowUnwrapRef<{
configProvider: import("../config-provider").ConfigConsumerProps;
}> & {
focused: boolean;
} & {
[x: string]: never;
} & {
setState(state: {}, callback: any): void;
__emit(...args: any[]): void;
} & {
handleFocus(e: FocusEvent): void;
handleBlur(e: FocusEvent): void;
handleSelect(args_0: OptionProps, args_1: string): void;
handleChange(val: string): void;
getNotFoundContent(renderEmpty: typeof import("../config-provider/renderEmpty").default): any;
getOptions(): JSX.Element;
getFilterOption(): (...args: any[]) => any;
focus(): void;
blur(): void;
} & import("vue").ComponentCustomProperties;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import("vue").ComponentOptionsBase<Readonly<{
prefixCls: string;
value: string;
filterOption: (...args: any[]) => any;
transitionName: string;
split: string;
defaultValue: string;
characterRender: (...args: any[]) => any;
validateSearch: (...args: any[]) => any;
} & {
onFocus?: (e: FocusEvent) => void;
onBlur?: (e: FocusEvent) => void;
onChange?: (text: string) => void;
onSelect?: (option: OptionProps, prefix: string) => void;
disabled?: boolean;
notFoundContent?: import("../_util/type").VueNode;
autofocus?: boolean;
getPopupContainer?: () => HTMLElement;
loading?: boolean;
prefix?: string | unknown[];
placement?: "bottom" | "top";
character?: any;
}>, {
configProvider: import("../config-provider").ConfigConsumerProps;
}, {
focused: boolean;
}, {}, {
handleFocus(e: FocusEvent): void;
handleBlur(e: FocusEvent): void;
handleSelect(args_0: OptionProps, args_1: string): void;
handleChange(val: string): void;
getNotFoundContent(renderEmpty: typeof import("../config-provider/renderEmpty").default): any;
getOptions(): JSX.Element;
getFilterOption(): (...args: any[]) => any;
focus(): void;
blur(): void;
}, {
methods: {
setState(state: {}, callback: any): void;
__emit(...args: any[]): void;
};
}, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "select" | "update:value")[], "select" | "blur" | "change" | "focus" | "update:value", {
prefixCls: string;
value: string;
filterOption: (...args: any[]) => any;
transitionName: string;
split: string;
defaultValue: string;
characterRender: (...args: any[]) => any;
validateSearch: (...args: any[]) => any;
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
install: (app: App<any>, ...options: any[]) => any;
} & {
readonly Option: any;
});
export default _default;