import type { PropType, ExtractPropTypes, EmitsToProps } from 'vue'; import { dropdownProps as elDropdownProps } from 'element-plus'; import type { StyleValue } from '../ele-app/types'; import type { ElIconProps, ElButtonProps, ElDropdownInstance } from '../ele-app/el'; import type ProDropdown from './components/pro-dropdown'; import type { DropdownItem } from './types'; type DropdownExclude = 'size' | 'maxHeight' | 'type' | 'effect' | 'placement' | 'disabled' | 'popperOptions' | 'popperClass' | 'popperStyle' | 'tabindex' | 'teleported' | 'triggerKeys' | 'virtualRef' | 'virtualTriggering' | 'showArrow' | 'persistent' | 'id' | 'loop'; /** * 属性 */ export declare const dropdownProps: { /** 下拉框渐变动画 */ transition: { type: StringConstructor; default: string; }; /** 下拉菜单数据 */ items: PropType; /** 选中的菜单 */ modelValue: PropType; /** 自定义下拉菜单样式 */ menuStyle: PropType; /** 自定义图标属性 */ iconProps: PropType; /** 图标尺寸 */ iconSize: PropType<"small" | "default">; /** 下拉菜单使用的组件类型 */ componentType: PropType<"pro">; /** 是否阻止下拉菜单的右键事件 */ preventContextmenu: BooleanConstructor; /** 内容按钮属性 */ splitButtonProps: PropType; /** 箭头按钮属性 */ caretButtonProps: PropType; /** 是否触发表单验证 */ validateEvent: { type: BooleanConstructor; default: boolean; }; role: import("element-plus/es/utils/vue/props/types").EpPropFinalized; appendTo: { readonly type: PropType string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; trigger: { readonly type: PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; readonly __epPropKey: true; readonly default: "hover"; }; splitButton: BooleanConstructor; hideOnClick: import("element-plus/es/utils/vue/props/types").EpPropFinalized; showTimeout: import("element-plus/es/utils/vue/props/types").EpPropFinalized; hideTimeout: import("element-plus/es/utils/vue/props/types").EpPropFinalized; buttonProps: { readonly type: PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; size: PropType; maxHeight: { type: (NumberConstructor | StringConstructor)[]; default: string; }; type: PropType; onFocus: { readonly type: PropType<(e: FocusEvent) => void>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; onBlur: { readonly type: PropType<(e: FocusEvent) => void>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; onKeydown: { readonly type: PropType<(e: KeyboardEvent) => void>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; onMouseenter: { readonly type: PropType<(e: MouseEvent) => void>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; onMouseleave: { readonly type: PropType<(e: MouseEvent) => void>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; onClick: { readonly type: PropType<(e: PointerEvent) => void>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; onContextmenu: { readonly type: PropType<(e: PointerEvent) => void>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; id: StringConstructor; zIndex: NumberConstructor; offset: import("element-plus/es/utils/vue/props/types").EpPropFinalized; disabled: BooleanConstructor; tabindex: import("element-plus/es/utils/vue/props/types").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown, 0, boolean>; ariaLabel: StringConstructor; effect: import("element-plus/es/utils/vue/props/types").EpPropFinalized<(new (...args: any[]) => string) | (() => import("element-plus").PopperEffect) | (((new (...args: any[]) => string) | (() => import("element-plus").PopperEffect)) | null)[], unknown, unknown, "dark", boolean>; pure: BooleanConstructor; focusOnShow: BooleanConstructor; trapping: BooleanConstructor; popperClass: PropType; popperStyle: PropType; referenceEl: { readonly type: PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; triggerTargetEl: { readonly type: PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; stopPopperMouseEvent: import("element-plus/es/utils/vue/props/types").EpPropFinalized; virtualTriggering: BooleanConstructor; loop: BooleanConstructor; boundariesPadding: import("element-plus/es/utils/vue/props/types").EpPropFinalized; fallbackPlacements: import("element-plus/es/utils/vue/props/types").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | (((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[])) | null)[], unknown, unknown, undefined, boolean>; placement: import("element-plus/es/utils/vue/props/types").EpPropFinalized; popperOptions: import("element-plus/es/utils/vue/props/types").EpPropFinalized<(new (...args: any[]) => Partial) | (() => Partial) | (((new (...args: any[]) => Partial) | (() => Partial)) | null)[], unknown, unknown, () => {}, boolean>; strategy: import("element-plus/es/utils/vue/props/types").EpPropFinalized; showArrow: import("element-plus/es/utils/vue/props/types").EpPropFinalized; persistent: BooleanConstructor; teleported: import("element-plus/es/utils/vue/props/types").EpPropFinalized; triggerKeys: import("element-plus/es/utils/vue/props/types").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => string[], boolean>; virtualRef: { readonly type: PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; open: BooleanConstructor; bg: StringConstructor; arrowBg: StringConstructor; }; export type DropdownProps = ExtractPropTypes; /** * 事件 */ export declare const dropdownEmits: { /** 内容按钮点击事件 */ click: (_e: MouseEvent) => boolean; /** 菜单项点击事件 */ command: (_command: DropdownItem["command"]) => boolean; /** 下拉框显示状态改变事件 */ visibleChange: (_visible: boolean) => boolean; /** 更新选中值 */ 'update:modelValue': (_value: DropdownItem["command"]) => boolean; /** 选中改变的事件 */ change: (_active: DropdownItem["command"]) => boolean; 'update:visible': (value: boolean) => boolean; 'before-enter': () => boolean; 'before-leave': () => boolean; 'after-enter': () => boolean; 'after-leave': () => boolean; }; export type DropdownEmitsProps = EmitsToProps; export type DropdownPropsAndEmits = DropdownProps & DropdownEmitsProps; /** * 属性名 */ export type ElDropdownPropKeys = Array>; export declare const elDropdownPropKeys: ElDropdownPropKeys; /** * 下拉菜单组件实例 */ export type ProDropdownInstance = InstanceType | null; export type DropdownInstance = ElDropdownInstance | ProDropdownInstance; export {};