From c71d84ab945c73762ecf4fadc9bcc60113000742 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@63.com> Date: 星期五, 16 九月 2022 15:53:48 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/cstmr/cstmr.js | 45 +++++++++++++++++++++++++++++++++------------ 1 files changed, 33 insertions(+), 12 deletions(-) diff --git a/src/main/webapp/static/js/cstmr/cstmr.js b/src/main/webapp/static/js/cstmr/cstmr.js index 08fc096..f196335 100644 --- a/src/main/webapp/static/js/cstmr/cstmr.js +++ b/src/main/webapp/static/js/cstmr/cstmr.js @@ -32,18 +32,39 @@ // 鏁版嵁鍚屾 dropdown.render({ elem: '#data-btn' - ,align: 'right' //灞呬腑瀵归綈锛�2.6.8 鏂板锛� - ,style: 'width: 50px;' - ,data: [{ - title: 'menu' - ,id: 100 - },{ - title: 'menu' - ,id: 101 - },{ - title: 'menu ' - ,id: 102 - }] + ,align: 'right' + ,style: 'border-radius: 5px;' + ,className: 'site-dropdown-demo' + ,data: [ + { + title: '妯℃澘涓嬭浇' + ,templet: '<i class="layui-icon layui-icon-template-1"></i>{{d.title}}' + ,id: 1 + }, + { + title: '瀵煎叆 Excel' + ,templet: '<i class="layui-icon layui-icon-upload"></i>{{d.title}}' + ,id: 2 + }, + {type: '-'}, //鍒嗗壊绾� + { + title: '瀵煎嚭 Excel' + ,templet: '<i class="layui-icon layui-icon-export"></i>{{d.title}}' + ,id: 3 + } + ] + ,click: function(item){ + switch (item.id) { + case 1: + break + case 2: + break + case 3: + break + default: + break + } + } }); // 鏍戝舰鍥� -- Gitblit v1.9.1