mirror of https://github.com/layui/layui
更新 dropdown 测试用例
parent
bf4c6cad25
commit
37fd63d2ec
|
@ -207,6 +207,9 @@ layui.use('dropdown', function(){
|
||||||
,trigger: 'contextmenu' //contextmenu
|
,trigger: 'contextmenu' //contextmenu
|
||||||
,isAllowSpread: false
|
,isAllowSpread: false
|
||||||
//,style: 'width: 200px'
|
//,style: 'width: 200px'
|
||||||
|
,customName: {
|
||||||
|
children: 'children'
|
||||||
|
}
|
||||||
,data: [{
|
,data: [{
|
||||||
title: 'menu item 1'
|
title: 'menu item 1'
|
||||||
,id: '#1'
|
,id: '#1'
|
||||||
|
@ -216,7 +219,7 @@ layui.use('dropdown', function(){
|
||||||
},{type:'-'},{
|
},{type:'-'},{
|
||||||
title: 'menu item 3'
|
title: 'menu item 3'
|
||||||
,id: '#3'
|
,id: '#3'
|
||||||
,child: [{
|
,children: [{
|
||||||
title: 'menu item 3-1'
|
title: 'menu item 3-1'
|
||||||
,id: '#1'
|
,id: '#1'
|
||||||
},{
|
},{
|
||||||
|
|
Loading…
Reference in New Issue