mirror of https://github.com/layui/layui
				
				
				
			
		
			
				
	
	
	
		
			1.5 KiB
		
	
	
	
	
			
		
		
	
	
			1.5 KiB
		
	
	
	
	
| 属性名 | 描述 | 类型 | 默认值 | 
|---|---|---|---|
| title | 
 菜单标题  | 
string | - | 
| id | 
 菜单 ID。用户菜单项唯一索引  | 
number/string | - | 
| type | 
 菜单项的类型,支持的可选值如下: 
  | 
string | 
 
  | 
    
| href | 
 菜单项的 url 地址。若填写,点击菜单将直接发生跳转。  | 
string | - | 
| target | 
 菜单 url 打开方式,需设置   | 
string | 
 
  | 
    
| disabled 2.8+ | 
 菜单项是否禁用状态  | 
boolean | 
 
  | 
    
| templet | 
 自定义当前菜单项模板,优先级高于基础属性   | 
string/function | - | 
| child | 
 子级菜单数据集合。参数同父级,可无限嵌套。  | 
array | - |