menu.d.ts 815 B

12345678910111213141516171819202122232425262728
  1. import { ElementUIComponent } from './component'
  2. export type MenuDisplayMode = 'horizontal' | 'vertical'
  3. export type MenuTheme = 'light' | 'dark'
  4. /** Menu that provides navigation for your website */
  5. export declare class ElMenu extends ElementUIComponent {
  6. /** Menu display mode */
  7. mode: MenuDisplayMode
  8. /** Theme color */
  9. theme: MenuTheme
  10. /** Index of currently active menu */
  11. defaultActive: string
  12. /** Array that contains keys of currently active sub-menus */
  13. defaultOpeneds: string[]
  14. /** Whether only one sub-menu can be active */
  15. uniqueOpened: boolean
  16. /** How sub-menus are triggered, only works when mode is 'horizontal' */
  17. menuTrigger: string
  18. /** Whether vue-router mode is activated. If true, index will be used as 'path' to activate the route action */
  19. router: boolean
  20. }