|
@@ -2,7 +2,7 @@
|
|
|
<table class="com-table">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
- <th v-for="(col, index) of data.column" :key="index" :class="{ light: col.is_light }" :style="{ width: col.width }" @click="onSort(col)">
|
|
|
+ <th v-for="(col, index) of data.column" :key="index" :class="{ light: col.is_light }" :style="{ width: col.width , display : col.display }" @click="onSort(col)">
|
|
|
{{ col.name }}
|
|
|
</th>
|
|
|
</tr>
|
|
@@ -13,7 +13,7 @@
|
|
|
<td
|
|
|
v-for="(col, i) of data.column"
|
|
|
:key="i"
|
|
|
- :style="{ width: col.width }"
|
|
|
+ :style="{ width: col.width , display : col.display}"
|
|
|
:class="{ light: hoverRow == row || hoverCol == col, num: col.is_num, 'always-light': col.is_light || row.is_light }"
|
|
|
@mouseenter="hover(row, col)"
|
|
|
@mouseleave="leave()"
|