export type MenuInfo = {
  id: string
  name: string
  icon?: string
  code?: string
  
  hideIcon?: boolean
  
  divise?: boolean
  [key: string]: any
}

export interface Props {
  globalTheme?: 'default' | 'kjl' | 'cjb' | 'ssl' | 'dkh'

  
  mode: 'vertical' | 'inline'

  
  collapse?: boolean

  
  menus?: MenuInfo[]

  
  currentOpenKeys?: any[]

  
  currentSelectKeys?: any[]

  
  parentSelectKeys?: any[]

  
  subMenuAttrs?: any
}

export interface Emits {
  (e: 'update:collapse', value: boolean): void

  (e: 'update:currentOpenKeys', value: string[]): void

  (e: 'menuClick', value: any): void

  (e: 'toggleCollapse', value: boolean): void
}
