Skip to content

Commit 96efe49

Browse files
author
hikki
committed
1.7
1 parent bcb61ed commit 96efe49

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

resources/assets/component.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
height: 25px;
9191
padding-left: 4px;
9292
padding-right: 4px;
93-
background: #fff;
93+
background: #ededed;;
9494
color: #666;
9595
border: 1px solid #e5e5e5;
9696
transition: .2s ease-in-out;
@@ -113,14 +113,14 @@
113113
color: rgba(255,255,255,.9);
114114
}
115115

116-
.dlp-table tbody{display:block!important;height:100%!important;overflow-y:scroll!important}
116+
.dlp-table tbody{display:block!important;height:100%!important;overflow-y:scroll!important;background: rgb(50 50 50 / 80%);}
117117

118118
.dlp-table tr{display:table!important;width:100%!important;table-layout:fixed!important;}
119-
.dlp-table th,td{overflow: hidden!important;padding: 3px!important;}
119+
.dlp-table th,.dlp-table td{overflow: hidden!important;padding: 7px 3px 7px 3px!important;}
120120
.dlp-table thead>tr{height: 45px!important}
121-
.dlp-table tbody>tr{background:rgb(64 64 64)!important;}
121+
.dlp-table tbody>tr{background:rgb(0 0 0)!important}
122122
.dlp-table tbody>tr:nth-child(even){background:#2b2b2b!important;}
123-
.dlp-table tbody>tr:hover{background:rgba(255,255,255,.1)!important;color:#fff!important}
123+
.dlp-table tbody>tr:hover{background:rgba(255,255,255,.07)!important;color:#fff!important}
124124
.dlp-table tfoot>tr{height: 40px!important}
125125
.dlp-table .operate-column{width:45px;text-align: center}
126126

src/DLPViewer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static function makeComponentLine(Form $form, string $column, string $tit
7272
{
7373
$strict = isset($settings['strict']) && $settings['strict'] ? true : false;
7474
$width = isset($settings['width']) ? $settings['width'] : '100%';
75-
$height = isset($settings['height']) ? $settings['height'] : '330px';
75+
$height = isset($settings['height']) ? $settings['height'] : '360px';
7676
$options = isset($settings['options']) ? json_encode($settings['options']) : '[]';
7777
if (!isset($settings['columns'])) return;
7878
$columns = $settings['columns'];

test/index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
<script src="../resources/assets/component.js"></script>
88
</head>
99
<body>
10-
<div id="test" style="width: 400px;height: 220px"></div>
10+
<div id="test" style="width: 400px;height: 200px"></div>
1111
<div style="height: 30px"></div>
12-
<div id="test2" style="width: 650px;height: 320px"></div>
12+
<div id="test2" style="width: 650px;height: 360px"></div>
1313
<div style="height: 30px"></div>
1414
<div id="test3">点击</div>
15+
<div style="height: 30px"></div>
16+
<div id="test4" style="width: 500px;height: 320px"></div>
1517
</body>
1618
<script>
1719
new ComponentDot('test',{1:'a',2:'b',3:'c'},{1:'a',2:'b',3:'c',4:'d',5:'e',6:'f',7:'g',8:'h321321312312313',9:'i'});
@@ -21,5 +23,7 @@
2123
document.getElementById('test3').addEventListener('click',function () {
2224
new ComponentPlane();
2325
});
26+
27+
new ComponentCascadeDot('test4',{1:'a',2:'b',3:'c'},{1:'a',2:'b',3:'c',4:'d',5:'e',6:'f',7:'g',8:'h321321312312313',9:'i'});
2428
</script>
2529
</html>

0 commit comments

Comments
 (0)