Skip to content

Commit c8eaf3b

Browse files
committed
column hidden unit test
1 parent a598d13 commit c8eaf3b

File tree

2 files changed

+435
-1
lines changed

2 files changed

+435
-1
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`veTable column hidden columnHiddenOption defaultHiddenColumnKeys prop 1`] = `
4+
<div class="ve-table">
5+
<div class="ve-table-container ve-table-border-around" style="height: 2px;">
6+
<table class="ve-table-content ve-table-border-x">
7+
<colgroup>
8+
<col style="width: 130px;">
9+
<col style="width: 140px;">
10+
<col style="width: 140px;">
11+
<col style="width: 150px;">
12+
<col style="width: 160px;">
13+
</colgroup>
14+
<thead class="ve-table-fixed-header ve-table-header">
15+
<tr class="ve-table-header-tr">
16+
<th rowspan="1" colspan="3" class="ve-table-header-th" style="text-align: center; top: 0px;">col4-col5-col6</th>
17+
<th rowspan="3" colspan="1" class="ve-table-header-th" style="text-align: center; top: 0px;">col7</th>
18+
<th rowspan="3" colspan="1" class="ve-table-header-th ve-table-last-column" style="text-align: center; top: 0px;">col8</th>
19+
</tr>
20+
<tr class="ve-table-header-tr">
21+
<th rowspan="1" colspan="2" class="ve-table-header-th" style="text-align: center; top: 0px;">col4-col5</th>
22+
<th rowspan="2" colspan="1" class="ve-table-header-th" style="text-align: center; top: 0px;">col6</th>
23+
</tr>
24+
<tr class="ve-table-header-tr">
25+
<th rowspan="1" colspan="1" class="ve-table-header-th" style="text-align: center; top: 0px;">col4</th>
26+
<th rowspan="1" colspan="1" class="ve-table-header-th" style="text-align: center; top: 0px;">col5</th>
27+
</tr>
28+
</thead>
29+
<tbody class="ve-table-body ve-table-row-hover ve-table-row-highlight">
30+
<tr style="height: 0px;">
31+
<td style="padding: 0px; border: 0px; height: 0px;"></td>
32+
<td style="padding: 0px; border: 0px; height: 0px;"></td>
33+
<td style="padding: 0px; border: 0px; height: 0px;"></td>
34+
<td style="padding: 0px; border: 0px; height: 0px;"></td>
35+
<td style="padding: 0px; border: 0px; height: 0px;"></td>
36+
</tr>
37+
<tr class="ve-table-body-tr">
38+
<td rowspan="1" colspan="1" class="ve-table-body-td" style="text-align: center;">col4-1</td>
39+
<td rowspan="1" colspan="1" class="ve-table-body-td" style="text-align: center;">col5-1</td>
40+
<td rowspan="1" colspan="1" class="ve-table-body-td" style="text-align: center;">col6-1</td>
41+
<td rowspan="1" colspan="1" class="ve-table-body-td" style="text-align: center;">col7-1</td>
42+
<td rowspan="1" colspan="1" class="ve-table-body-td" style="text-align: center;">col8-1</td>
43+
</tr>
44+
</tbody>
45+
<tfoot class="ve-table-fixed-footer ve-table-footer"></tfoot>
46+
</table>
47+
</div>
48+
</div>
49+
`;

0 commit comments

Comments
 (0)