@@ -200,6 +200,7 @@ window.ComponentDot = class {
200
200
}
201
201
} ) ;
202
202
queue . forEach ( ( D ) => D . click ( ) ) ;
203
+ if ( menu_mode === true ) this . DOM . querySelector ( '.menu-list' ) . style . display = 'none' ;
203
204
} ) ;
204
205
if ( menu_mode === false ) {
205
206
this . make ( selected , select ) ;
@@ -866,11 +867,12 @@ window.ComponentLine = class {
866
867
if ( val . type === 'hidden' ) {
867
868
continue ;
868
869
}
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>` ;
870
872
let insert_type = val . insert_type ? val . insert_type : val . type ;
871
873
switch ( insert_type ) {
872
874
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>` ;
874
876
break ;
875
877
case 'select' :
876
878
@@ -889,14 +891,15 @@ window.ComponentLine = class {
889
891
break ;
890
892
}
891
893
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>` ;
893
896
break ;
894
897
case 'hidden' :
895
898
foot += `<th><input data-column="${ column } " type="hidden"/></th>` ;
896
899
break ;
897
900
default :
898
901
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>` ;
900
903
break ;
901
904
}
902
905
}
0 commit comments