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 ++++++++++++++++------
src/main/webapp/views/cstmr/cstmr.html | 17 +++++++-
2 files changed, 48 insertions(+), 14 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
+ }
+ }
});
// 鏍戝舰鍥�
diff --git a/src/main/webapp/views/cstmr/cstmr.html b/src/main/webapp/views/cstmr/cstmr.html
index 9f09d8c..d9d18dd 100644
--- a/src/main/webapp/views/cstmr/cstmr.html
+++ b/src/main/webapp/views/cstmr/cstmr.html
@@ -22,9 +22,13 @@
margin-right: 5px;
}
- .layui-border-box,.layui-border-box * {
- box-sizing:inherit
+ .layui-dropdown.layui-border-box,.layui-border-box * {
+ box-sizing:inherit;
}
+ .layui-dropdown-menu .layui-border-box,.layui-border-box * {
+ /*text-align: center;*/
+ }
+
.layui-menu li {
width: inherit;
}
@@ -35,6 +39,15 @@
text-align: center;
border: 1px solid #c0c4cc;
}
+
+ .site-dropdown-demo,
+ .site-dropdown-demo .layui-menu{background: #32363F;border-color: #484e58;}
+ .site-dropdown-demo .layui-menu li{color: #a1a8b8;}
+ .site-dropdown-demo .layui-menu li:hover{background-color: #32363F;}
+ .layui-menu-body-title>.layui-icon {
+ position: relative;
+ margin-right: 5px;
+ }
</style>
</head>
<body>
--
Gitblit v1.9.1