update Table
This commit is contained in:
parent
af6e81cd64
commit
367a4196a4
3 changed files with 7 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<Table :columns="columns7" :data="data6" @on-expand="expand"></Table>
|
<Table border :columns="columns7" :data="data6" @on-expand="expand"></Table>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import etable from '../components/table.vue';
|
import etable from '../components/table.vue';
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-if="rowExpanded(row._index)">
|
<tr v-if="rowExpanded(row._index)">
|
||||||
<td :colspan="columns.length">
|
<td :colspan="columns.length" :class="prefixCls + '-expanded-cell'">
|
||||||
<Expand :row="row" :render="expandRender" :index="row._index"></Expand>
|
<Expand :row="row" :render="expandRender" :index="row._index"></Expand>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -174,6 +174,11 @@
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
td&-expanded-cell{
|
||||||
|
padding: 20px 50px;
|
||||||
|
background: @table-thead-bg;
|
||||||
|
}
|
||||||
|
|
||||||
&-stripe &-body,
|
&-stripe &-body,
|
||||||
&-stripe &-fixed-body
|
&-stripe &-fixed-body
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue