From 5d4b04a7207818dfb6bc953636e4c1a5440fe718 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期五, 16 九月 2022 16:19:26 +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 f0c6e81..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: 'center' //灞呬腑瀵归綈锛�2.6.8 鏂板锛�
- ,style: 'width: 50px;'
- ,data: [{
- title: 'menu item test 111'
- ,id: 100
- },{
- title: 'menu item test 222'
- ,id: 101
- },{
- title: 'menu item test 333'
- ,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