@tuoyuan/web
Version:
365 lines (364 loc) • 17.3 kB
TypeScript
import { Doption as ArcoDoption, Dgroup as ArcoDgroup, Dsubmenu as ArcoDsubmenu, DropdownButton as ArcoDropdownButton } from '@tuoyuan/arco';
export declare const Dropdown: {
new (...args: any[]): {
$: import('vue').ComponentInternalInstance;
$data: {};
$props: Partial<{
popupVisible: boolean;
defaultPopupVisible: boolean;
trigger: "hover" | "click" | "focus" | "contextMenu" | ("hover" | "click" | "focus" | "contextMenu")[];
position: import('@tuoyuan/arco/es/dropdown/interface').DropdownPosition;
popupMaxHeight: number | boolean;
hideOnSelect: boolean;
}> & Omit<Readonly<{
popupVisible?: unknown;
defaultPopupVisible?: unknown;
trigger?: unknown;
position?: unknown;
popupContainer?: unknown;
popupMaxHeight?: unknown;
hideOnSelect?: unknown;
} & {
defaultPopupVisible: boolean;
trigger: "hover" | "click" | "focus" | "contextMenu" | ("hover" | "click" | "focus" | "contextMenu")[];
position: import('@tuoyuan/arco/es/dropdown/interface').DropdownPosition;
popupMaxHeight: number | boolean;
hideOnSelect: boolean;
} & {
popupVisible?: boolean | undefined;
popupContainer?: string | HTMLElement | undefined;
}> & {
"onUpdate:popupVisible"?: ((visible: boolean) => any) | undefined;
onPopupVisibleChange?: ((visible: boolean) => any) | undefined;
onSelect?: ((value: string | number | Record<string, any> | undefined, ev: Event) => any) | undefined;
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "popupVisible" | "defaultPopupVisible" | "trigger" | "position" | "popupMaxHeight" | "hideOnSelect">;
$attrs: {
[x: string]: unknown;
};
$refs: {
[x: string]: unknown;
};
$slots: Readonly<{
[name: string]: import('vue').Slot | undefined;
}>;
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
$emit: ((event: "update:popupVisible", visible: boolean) => void) & ((event: "popupVisibleChange", visible: boolean) => void) & ((event: "select", value: string | number | Record<string, any> | undefined, ev: Event) => void);
$el: any;
$options: import('vue').ComponentOptionsBase<Readonly<{
popupVisible?: unknown;
defaultPopupVisible?: unknown;
trigger?: unknown;
position?: unknown;
popupContainer?: unknown;
popupMaxHeight?: unknown;
hideOnSelect?: unknown;
} & {
defaultPopupVisible: boolean;
trigger: "hover" | "click" | "focus" | "contextMenu" | ("hover" | "click" | "focus" | "contextMenu")[];
position: import('@tuoyuan/arco/es/dropdown/interface').DropdownPosition;
popupMaxHeight: number | boolean;
hideOnSelect: boolean;
} & {
popupVisible?: boolean | undefined;
popupContainer?: string | HTMLElement | undefined;
}> & {
"onUpdate:popupVisible"?: ((visible: boolean) => any) | undefined;
onPopupVisibleChange?: ((visible: boolean) => any) | undefined;
onSelect?: ((value: string | number | Record<string, any> | undefined, ev: Event) => any) | undefined;
}, {
prefixCls: string;
computedPopupVisible: import('vue').ComputedRef<boolean>;
handlePopupVisibleChange: (visible: boolean) => void;
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:popupVisible": (visible: boolean) => true;
popupVisibleChange: (visible: boolean) => true;
select: (value: string | number | Record<string, any> | undefined, ev: Event) => true;
}, string, {
popupVisible: boolean;
defaultPopupVisible: boolean;
trigger: "hover" | "click" | "focus" | "contextMenu" | ("hover" | "click" | "focus" | "contextMenu")[];
position: import('@tuoyuan/arco/es/dropdown/interface').DropdownPosition;
popupMaxHeight: number | boolean;
hideOnSelect: boolean;
}> & {
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
created?: ((() => void) | (() => void)[]) | undefined;
beforeMount?: ((() => void) | (() => void)[]) | undefined;
mounted?: ((() => void) | (() => void)[]) | undefined;
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
updated?: ((() => void) | (() => void)[]) | undefined;
activated?: ((() => void) | (() => void)[]) | undefined;
deactivated?: ((() => void) | (() => void)[]) | undefined;
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
destroyed?: ((() => void) | (() => void)[]) | undefined;
unmounted?: ((() => void) | (() => void)[]) | undefined;
renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
};
$forceUpdate: () => void;
$nextTick: typeof import('vue').nextTick;
$watch(source: string | Function, cb: Function, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
} & Readonly<{
popupVisible?: unknown;
defaultPopupVisible?: unknown;
trigger?: unknown;
position?: unknown;
popupContainer?: unknown;
popupMaxHeight?: unknown;
hideOnSelect?: unknown;
} & {
defaultPopupVisible: boolean;
trigger: "hover" | "click" | "focus" | "contextMenu" | ("hover" | "click" | "focus" | "contextMenu")[];
position: import('@tuoyuan/arco/es/dropdown/interface').DropdownPosition;
popupMaxHeight: number | boolean;
hideOnSelect: boolean;
} & {
popupVisible?: boolean | undefined;
popupContainer?: string | HTMLElement | undefined;
}> & {
"onUpdate:popupVisible"?: ((visible: boolean) => any) | undefined;
onPopupVisibleChange?: ((visible: boolean) => any) | undefined;
onSelect?: ((value: string | number | Record<string, any> | undefined, ev: Event) => any) | undefined;
} & import('vue').ShallowUnwrapRef<{
prefixCls: string;
computedPopupVisible: import('vue').ComputedRef<boolean>;
handlePopupVisibleChange: (visible: boolean) => void;
}> & {} & {} & import('vue').ComponentCustomProperties;
__isFragment?: undefined;
__isTeleport?: undefined;
__isSuspense?: undefined;
} & import('vue').ComponentOptionsBase<Readonly<{
popupVisible?: unknown;
defaultPopupVisible?: unknown;
trigger?: unknown;
position?: unknown;
popupContainer?: unknown;
popupMaxHeight?: unknown;
hideOnSelect?: unknown;
} & {
defaultPopupVisible: boolean;
trigger: "hover" | "click" | "focus" | "contextMenu" | ("hover" | "click" | "focus" | "contextMenu")[];
position: import('@tuoyuan/arco/es/dropdown/interface').DropdownPosition;
popupMaxHeight: number | boolean;
hideOnSelect: boolean;
} & {
popupVisible?: boolean | undefined;
popupContainer?: string | HTMLElement | undefined;
}> & {
"onUpdate:popupVisible"?: ((visible: boolean) => any) | undefined;
onPopupVisibleChange?: ((visible: boolean) => any) | undefined;
onSelect?: ((value: string | number | Record<string, any> | undefined, ev: Event) => any) | undefined;
}, {
prefixCls: string;
computedPopupVisible: import('vue').ComputedRef<boolean>;
handlePopupVisibleChange: (visible: boolean) => void;
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
'update:popupVisible': (visible: boolean) => true;
popupVisibleChange: (visible: boolean) => true;
select: (value: string | number | Record<string, any> | undefined, ev: Event) => true;
}, string, {
popupVisible: boolean;
defaultPopupVisible: boolean;
trigger: "hover" | "click" | "focus" | "contextMenu" | ("hover" | "click" | "focus" | "contextMenu")[];
position: import('@tuoyuan/arco/es/dropdown/interface').DropdownPosition;
popupMaxHeight: number | boolean;
hideOnSelect: boolean;
}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
Option: import('vue').DefineComponent<{
value: {
type: (ObjectConstructor | StringConstructor | NumberConstructor)[];
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
active: BooleanConstructor;
uninjectContext: BooleanConstructor;
}, {
prefixCls: string;
cls: import('vue').ComputedRef<(string | {
[x: string]: boolean;
})[]>;
liRef: import('vue').Ref<HTMLElement | undefined>;
handleClick: (ev: MouseEvent) => void;
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
click: (ev: MouseEvent) => true;
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<{
value?: unknown;
disabled?: unknown;
active?: unknown;
uninjectContext?: unknown;
} & {
disabled: boolean;
active: boolean;
uninjectContext: boolean;
} & {
value?: string | number | Record<string, any> | undefined;
}> & {
onClick?: ((ev: MouseEvent) => any) | undefined;
}, {
disabled: boolean;
active: boolean;
uninjectContext: boolean;
}>;
Group: import('vue').DefineComponent<{
title: StringConstructor;
}, {
prefixCls: string;
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, Record<string, any>, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<{
title?: unknown;
} & {} & {
title?: string | undefined;
}>, {}>;
Submenu: import('vue').DefineComponent<{
value: {
type: (StringConstructor | NumberConstructor)[];
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
trigger: {
type: import('vue').PropType<"hover" | "click" | ("hover" | "click")[]>;
default: string;
};
position: {
type: import('vue').PropType<"lt" | "rt">;
default: string;
};
popupVisible: {
type: BooleanConstructor;
default: undefined;
};
defaultPopupVisible: {
type: BooleanConstructor;
default: boolean;
};
optionProps: {
type: ObjectConstructor;
};
}, {
prefixCls: string;
computedPopupVisible: import('vue').ComputedRef<boolean>;
handlePopupVisibleChange: (visible: boolean) => void;
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:popupVisible": (visible: boolean) => true;
popupVisibleChange: (visible: boolean) => true;
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<{
value?: unknown;
disabled?: unknown;
trigger?: unknown;
position?: unknown;
popupVisible?: unknown;
defaultPopupVisible?: unknown;
optionProps?: unknown;
} & {
defaultPopupVisible: boolean;
trigger: "hover" | "click" | ("hover" | "click")[];
position: "lt" | "rt";
disabled: boolean;
} & {
popupVisible?: boolean | undefined;
value?: string | number | undefined;
optionProps?: Record<string, any> | undefined;
}> & {
"onUpdate:popupVisible"?: ((visible: boolean) => any) | undefined;
onPopupVisibleChange?: ((visible: boolean) => any) | undefined;
}, {
popupVisible: boolean;
defaultPopupVisible: boolean;
trigger: "hover" | "click" | ("hover" | "click")[];
position: "lt" | "rt";
disabled: boolean;
}>;
Button: import('vue').DefineComponent<{
popupVisible: {
type: BooleanConstructor;
default: undefined;
};
defaultPopupVisible: {
type: BooleanConstructor;
default: boolean;
};
trigger: {
type: import('vue').PropType<"hover" | "click" | "focus" | "contextMenu" | ("hover" | "click" | "focus" | "contextMenu")[]>;
default: string;
};
position: {
type: import('vue').PropType<"top" | "tl" | "tr" | "bottom" | "bl" | "br">;
default: string;
};
popupContainer: {
type: import('vue').PropType<string | HTMLElement>;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
type: {
type: StringConstructor;
};
size: {
type: StringConstructor;
};
buttonProps: {
type: import('vue').PropType<import('@tuoyuan/arco').ButtonProps>;
};
hideOnSelect: {
type: BooleanConstructor;
default: boolean;
};
}, {
prefixCls: string;
computedPopupVisible: import('vue').ComputedRef<boolean>;
handleClick: (ev: MouseEvent) => void;
handleSelect: (value: string | number | Record<string, unknown> | undefined, ev: Event) => void;
handlePopupVisibleChange: (visible: boolean) => void;
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:popupVisible": (visible: boolean) => true;
popupVisibleChange: (visible: boolean) => true;
click: (ev: MouseEvent) => true;
select: (value: string | number | Record<string, any> | undefined, ev: Event) => true;
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<{
popupVisible?: unknown;
defaultPopupVisible?: unknown;
trigger?: unknown;
position?: unknown;
popupContainer?: unknown;
disabled?: unknown;
type?: unknown;
size?: unknown;
buttonProps?: unknown;
hideOnSelect?: unknown;
} & {
defaultPopupVisible: boolean;
trigger: "hover" | "click" | "focus" | "contextMenu" | ("hover" | "click" | "focus" | "contextMenu")[];
position: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
disabled: boolean;
hideOnSelect: boolean;
} & {
type?: string | undefined;
popupVisible?: boolean | undefined;
popupContainer?: string | HTMLElement | undefined;
size?: string | undefined;
buttonProps?: import('@tuoyuan/arco').ButtonProps | undefined;
}> & {
"onUpdate:popupVisible"?: ((visible: boolean) => any) | undefined;
onPopupVisibleChange?: ((visible: boolean) => any) | undefined;
onClick?: ((ev: MouseEvent) => any) | undefined;
onSelect?: ((value: string | number | Record<string, any> | undefined, ev: Event) => any) | undefined;
}, {
popupVisible: boolean;
defaultPopupVisible: boolean;
trigger: "hover" | "click" | "focus" | "contextMenu" | ("hover" | "click" | "focus" | "contextMenu")[];
position: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
disabled: boolean;
hideOnSelect: boolean;
}>;
install: (app: import('vue').App, options?: import('@tuoyuan/arco/es/_utils/types').ArcoOptions | undefined) => void;
};
export default Dropdown;
export { ArcoDoption as Doption, ArcoDgroup as Dgroup, ArcoDsubmenu as Dsubmenu, ArcoDropdownButton as DropdownButton };