import type { StyleValue } from '../ele-app/types';
import type { ElIconProps, ElDropdownItemProps } from '../ele-app/el';

/**
 * 下拉菜单数据
 */
export interface DropdownItem extends ElDropdownItemProps {
  /** 循环的 key */
  key?: string | number | symbol;
  /** 标题 */
  title?: string;
  /** 图标属性 */
  iconProps?: ElIconProps;
  /** 图标样式 */
  iconStyle?: StyleValue;
  /** 插槽名称 */
  slot?: Exclude<string, 'default'>;
  /** 是否为主要样式 */
  primary?: boolean;
  /** 是否为危险样式 */
  danger?: boolean;
  /** 子菜单 */
  children?: DropdownItem[];
}
