Skip to content

Commit a783b75

Browse files
author
hikki
committed
v3.6
1 parent 72fb355 commit a783b75

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

resources/assets/component.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
vertical-align: middle;
6060
display: inline-block;
6161
width: 100%;
62-
height: 24px;
62+
height: 30px;
6363
background: #ededed;
6464
color: #666;
6565
border: 1px solid #e5e5e5;
@@ -138,7 +138,8 @@
138138
display: inline-block;
139139
border-radius: 2px;
140140
padding: 0 2px!important;
141-
height: 18px;
141+
height: 20px;
142+
line-height: 20px;
142143
margin-right: 2px!important;
143144
max-width: 5em;
144145
}
@@ -158,6 +159,7 @@
158159
padding: 0;
159160
border-radius: 3px;
160161
}
162+
.dlp-dot-menu>.menu-list .dot-search{height: 24px}
161163
.dlp-dot-menu>.menu-list>.list{width:100%;max-height: 150px;overflow-y: auto;}
162164
.dlp-dot-menu>.menu-list .option{
163165
display: flex;
@@ -304,7 +306,7 @@
304306
text-align: left;
305307
background: #181818;
306308
}
307-
309+
.dlp-table .dlp-input{height: 24px!important;}
308310
.dlp-table .dlp-tbody{display:block;height:100%;overflow-y:scroll!important;background: rgb(50 50 50 / 80%);}
309311
.dlp-table .dlp-tr{display:table;width:100%;table-layout:fixed;position: relative;}
310312
.dlp-tr>th,.dlp-tr>td{overflow: hidden;padding: 7px 3px 7px 3px;text-align: left}

resources/assets/component.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ window.ComponentDot = class {
200200
}
201201
});
202202
queue.forEach((D)=>D.click());
203+
if(menu_mode === true) this.DOM.querySelector('.menu-list').style.display = 'none';
203204
});
204205
if(menu_mode === false) {
205206
this.make(selected, select);
@@ -866,11 +867,12 @@ window.ComponentLine = class {
866867
if (val.type === 'hidden') {
867868
continue;
868869
}
869-
head += `<th class="dlp-text text-white" style="${val.style}">${val.name}</th>`;
870+
let style = val.style ? `style="${val.style}"` : '';
871+
head += `<th class="dlp-text text-white" ${style}>${val.name}</th>`;
870872
let insert_type = val.insert_type ? val.insert_type : val.type;
871873
switch (insert_type) {
872874
case 'input':
873-
foot += `<th style="${val.style}"><input class="dlp dlp-input" data-column="${column}" placeholder=":${val.name}"/></th>`;
875+
foot += `<th ${style}><input class="dlp dlp-input" data-column="${column}" placeholder=":${val.name}"/></th>`;
874876
break;
875877
case 'select':
876878

@@ -889,14 +891,15 @@ window.ComponentLine = class {
889891
break;
890892
}
891893
this.format_settings[column] = format;
892-
foot += `<th style="position: relative;overflow: unset;${val.style}"><input class="dlp dlp-input datetime-${column}" data-column="${column}"/></th>`;
894+
style = val.style ? `${val.style}` : '';
895+
foot += `<th style="position: relative;overflow: unset;${style}"><input class="dlp dlp-input datetime-${column}" data-column="${column}"/></th>`;
893896
break;
894897
case 'hidden':
895898
foot += `<th><input data-column="${column}" type="hidden"/></th>`;
896899
break;
897900
default:
898901
this.COLUMNS[column].insert_type = 'input';
899-
foot += `<th style="${val.style}"><input class="dlp dlp-input" data-column="${column}" placeholder=":${val.name}"/></th>`;
902+
foot += `<th ${style}><input class="dlp dlp-input" data-column="${column}" placeholder=":${val.name}"/></th>`;
900903
break;
901904
}
902905
}

0 commit comments

Comments
 (0)