menu.d.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. /** Whether the menu is collapsed (available only in vertical mode) */
  9. collapse: boolean
  10. /** Background color of Menu (hex format) */
  11. backgroundColor: string
  12. /** Text color of Menu (hex format) */
  13. textColor: string
  14. /** Text color of currently active menu item (hex format) */
  15. activeTextColor: string
  16. /** Index of currently active menu */
  17. defaultActive: string
  18. /** Array that contains keys of currently active sub-menus */
  19. defaultOpeneds: string[]
  20. /** Whether only one sub-menu can be active */
  21. uniqueOpened: boolean
  22. /** How sub-menus are triggered, only works when mode is 'horizontal' */
  23. menuTrigger: string
  24. /** Whether vue-router mode is activated. If true, index will be used as 'path' to activate the route action */
  25. router: boolean
  26. }