Skip to content

Commit 55a29ca

Browse files
committed
1.7
1 parent 542261b commit 55a29ca

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

resources/assets/component.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
outline: 0;
1212
border: none;
1313
vertical-align: baseline;
14-
background: #e0e1e2 none;
14+
background: #d6d6d6;
1515
color: rgba(0,0,0,.6);
1616
font-family: Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;
1717
margin: 0 0.25em 0;
@@ -35,7 +35,7 @@
3535
}
3636

3737
.dlp-label:hover {
38-
background-color: #cacbcd;
38+
background-color: #bfbfbf;
3939
background-image: none;
4040
-webkit-box-shadow: 0 0 0 1px transparent inset, 0 0 0 0 rgb(34 36 38 / 15%) inset;
4141
box-shadow: 0 0 0 1px transparent inset, 0 0 0 0 rgb(34 36 38 / 15%) inset;
@@ -134,7 +134,7 @@
134134
border-radius: 5px;
135135
box-shadow: 0 .4rem 1.2rem rgba(0,0,0,.4)!important;
136136
text-align: left;
137-
background: #1c1c1c;
137+
background: #191919;
138138
color: rgba(255,255,255,.9);
139139
}
140140

@@ -143,9 +143,9 @@
143143
.dlp-table tr{display:table!important;width:100%!important;table-layout:fixed!important;}
144144
.dlp-table th,.dlp-table td{overflow: hidden!important;padding: 7px 3px 7px 3px!important;}
145145
.dlp-table thead>tr{height: 45px!important}
146-
.dlp-table tbody>tr{background:rgb(0 0 0)!important}
147-
.dlp-table tbody>tr:nth-child(even){background:#2b2b2b!important;}
148-
.dlp-table tbody>tr:hover{background:rgba(255,255,255,.07)!important;color:#fff!important}
146+
.dlp-table tbody>tr{background:rgb(43 43 43)!important;}
147+
.dlp-table tbody>tr:nth-child(even){background:#0c0c0c!important;}
148+
.dlp-table tbody>tr:hover{background:rgb(255 255 255 / 5%)!important;color:#fff!important}
149149
.dlp-table tfoot>tr{height: 40px!important}
150150
.dlp-table .operate-column{width:45px;text-align: center}
151151

resources/assets/component.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ class ComponentCascadeDot {
223223
});
224224
this.CONTENT_DOM.append(stackDom);
225225
}
226+
this.STACKS = this.CONTENT_DOM.childNodes;
226227
}
227228

228229
makeDimensional(data,dimension=0,parentNodes=[]){
@@ -249,20 +250,24 @@ class ComponentCascadeDot {
249250
}
250251
}
251252

252-
select(div,stack){
253-
let stacks = div.parentNode.parentNode.childNodes;
254-
div.parentNode.childNodes.forEach((D) => {
255-
D.classList.remove('dlp-label-active');
253+
select(element,stack){
254+
let currentStack = this.STACKS[stack].childNodes;
255+
let key = parseInt(element.getAttribute('data-id'));
256+
this.dimensional_data[stack].forEach((D,index)=>{
257+
if(key == D.key){
258+
currentStack[index].classList.add('dlp-label-active');
259+
return;
260+
}
261+
currentStack[index].classList.remove('dlp-label-active');
256262
});
257-
div.classList.add('dlp-label-active');
258263
}
259264

260-
selectToParent(){
265+
selectToParent(element,stack){
261266

262267
}
263268

264269
selectToChildren(){
265-
270+
266271
}
267272
}
268273

0 commit comments

Comments
 (0)