mirror of https://github.com/layui/layui
更新 dropdown 示例
parent
105540efb8
commit
78609d9745
|
@ -172,14 +172,18 @@ layui.use('dropdown', function(){
|
||||||
title: 'menu item 1'
|
title: 'menu item 1'
|
||||||
,href: '#1'
|
,href: '#1'
|
||||||
},{
|
},{
|
||||||
title: 'menu item 2'
|
title: 'menu item 2(点击不关闭)'
|
||||||
,href: '#2'
|
,href: '#2'
|
||||||
|
,id: 'bbb'
|
||||||
},{
|
},{
|
||||||
title: 'menu item 3'
|
title: 'menu item 3'
|
||||||
,href: '#3'
|
,href: '#3'
|
||||||
}]
|
}]
|
||||||
,click: function(){
|
,click: function(data, othis){
|
||||||
|
console.log(data);
|
||||||
|
if(data.id === 'bbb'){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue