mirror of https://github.com/layui/layui
更新 dropdown 测试用例
parent
1ab1a45e3a
commit
7578435420
|
@ -46,18 +46,18 @@ layui.use('dropdown', function(){
|
||||||
//,align: 'right'
|
//,align: 'right'
|
||||||
,data: [{
|
,data: [{
|
||||||
title: 'menu item 1'
|
title: 'menu item 1'
|
||||||
,templet: '<i class="layui-icon layui-icon-light"></i> {{d.title}} <span class="layui-badge-dot"></span>'
|
,templet: '<i class="layui-icon layui-icon-light"></i> {{= d.title }} <span class="layui-badge-dot"></span>'
|
||||||
,id: ''
|
,id: ''
|
||||||
,href: ''
|
,href: ''
|
||||||
,type: '' //菜单类型,支持:normal/group/parent
|
,type: '' //菜单类型,支持:normal/group/parent
|
||||||
},{
|
},{
|
||||||
title: 'menu item 2'
|
title: 'menu item <strong>2</strong>'
|
||||||
,templet: '<img src="//cdn.layui.com/avatar/168.jpg?t=123" style="width: 16px;"> {{d.title}}'
|
,templet: '<img src="https://unpkg.com/outeres@0.1.1/demo/avatar/0.png" style="width: 16px;"> {{- d.title }}'
|
||||||
,id: ''
|
,id: ''
|
||||||
,href: 'https://www.layui.com/'
|
,href: 'https://www.layui.com/'
|
||||||
,target: '_blank'
|
,target: '_blank'
|
||||||
},{type: '-'},{},{
|
},{type: '-'},{},{
|
||||||
title: 'menu item 3'
|
title: 'menu item 3 <hello>'
|
||||||
,id: ''
|
,id: ''
|
||||||
,type: 'group'
|
,type: 'group'
|
||||||
,child: [{
|
,child: [{
|
||||||
|
|
Loading…
Reference in New Issue