保誠-保戶業務員媒合平台
jack
2025-01-06 e0c6891acc471f9adf2e29b2a5bed3f8337a92b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import { ElementUIComponent } from './component'
 
export type MenuDisplayMode = 'horizontal' | 'vertical'
export type MenuTheme = 'light' | 'dark'
 
/** Menu that provides navigation for your website */
export declare class ElMenu extends ElementUIComponent {
  /** Menu display mode */
  mode: MenuDisplayMode
 
  /** Whether the menu is collapsed (available only in vertical mode) */
  collapse: boolean
 
  /** Background color of Menu (hex format) */
  backgroundColor: string
 
  /** Text color of Menu (hex format) */
  textColor: string
 
  /** Text color of currently active menu item (hex format) */
  activeTextColor: string
 
  /** Index of currently active menu */
  defaultActive: string
 
  /** Array that contains keys of currently active sub-menus */
  defaultOpeneds: string[]
 
  /** Whether only one sub-menu can be active */
  uniqueOpened: boolean
 
  /** How sub-menus are triggered, only works when mode is 'horizontal' */
  menuTrigger: string
 
  /** Whether vue-router mode is activated. If true, index will be used as 'path' to activate the route action */
  router: boolean
 
  /** Whether the menu collapse transition is active */
  collapseTransition: boolean
  
  /** Open the specified sub-menu */
  open (index: string): void
 
  /** Close the specified sub-menu */
  close (index: string): void
}