import { DropdownItem } from './types'; import { ElIconProps } from '../ele-app/el'; import { PropType, ExtractPropTypes } from 'vue'; /** * 属性 */ export declare const dropdownProps: { /** 下拉菜单数据 */ items: PropType; /** 选中的菜单 */ modelValue: PropType | undefined>; /** 自定义下拉菜单样式 */ menuStyle: PropType>; /** 自定义图标属性 */ iconProps: PropType; trigger: import('element-plus/es/utils').EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import('element-plus').TooltipTriggerType[]) | (() => import('element-plus/es/utils').Arrayable) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import('element-plus').TooltipTriggerType[]) | (() => import('element-plus/es/utils').Arrayable))[], unknown, unknown, "hover", boolean>; effect: { readonly default: "light"; readonly type: PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; readonly __epPropKey: true; }; type: { readonly type: PropType "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger") | (() => import('element-plus/es/utils').EpPropMergeType) | ((new (...args: any[]) => "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger") | (() => import('element-plus/es/utils').EpPropMergeType))[], unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; placement: import('element-plus/es/utils').EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import('element-plus').Placement) | ((new (...args: any[]) => "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import('element-plus').Placement))[], unknown, unknown, "bottom", boolean>; popperOptions: import('element-plus/es/utils').EpPropFinalized<(new (...args: any[]) => Partial) | (() => Partial) | ((new (...args: any[]) => Partial) | (() => Partial))[], unknown, unknown, () => {}, boolean>; id: StringConstructor; size: import('element-plus/es/utils').EpPropFinalized; splitButton: BooleanConstructor; hideOnClick: import('element-plus/es/utils').EpPropFinalized; loop: import('element-plus/es/utils').EpPropFinalized; showTimeout: import('element-plus/es/utils').EpPropFinalized; hideTimeout: import('element-plus/es/utils').EpPropFinalized; tabindex: import('element-plus/es/utils').EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>; maxHeight: import('element-plus/es/utils').EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>; popperClass: import('element-plus/es/utils').EpPropFinalized; disabled: import('element-plus/es/utils').EpPropFinalized; role: import('element-plus/es/utils').EpPropFinalized; buttonProps: { readonly type: PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; teleported: import('element-plus/es/utils').EpPropFinalized; }; export type DropdownProps = ExtractPropTypes; /** * 事件 */ export declare const dropdownEmits: { /** SplitButton 点击事件 */ click: () => boolean; /** 菜单项点击事件 */ command: (_command: DropdownItem['command']) => boolean; /** 下拉框出现/隐藏事件 */ visibleChange: (_visible: boolean) => boolean; /** 更新选中值 */ 'update:modelValue': (_value: DropdownItem['command']) => boolean; /** 选中改变的事件 */ change: (_active: DropdownItem['command']) => boolean; };