fixex #1353
This commit is contained in:
parent
82d90c4f8f
commit
68b308ee83
4 changed files with 138 additions and 60 deletions
|
@ -44,7 +44,7 @@
|
|||
:styleObject="fixedTableStyle"
|
||||
:columns="leftFixedColumns"
|
||||
:obj-data="objData"
|
||||
:columns-width.sync="columnsWidth"
|
||||
:columns-width="columnsWidth"
|
||||
:data="rebuildData"></table-head>
|
||||
</div>
|
||||
<div :class="[prefixCls + '-fixed-body']" :style="fixedBodyStyle" ref="fixedBody">
|
||||
|
@ -95,6 +95,9 @@
|
|||
|
||||
const prefixCls = 'ivu-table';
|
||||
|
||||
let rowKey = 1;
|
||||
let columnKey = 1;
|
||||
|
||||
export default {
|
||||
name: 'Table',
|
||||
mixins: [ Locale ],
|
||||
|
@ -562,7 +565,10 @@
|
|||
},
|
||||
makeData () {
|
||||
let data = deepCopy(this.data);
|
||||
data.forEach((row, index) => row._index = index);
|
||||
data.forEach((row, index) => {
|
||||
row._index = index;
|
||||
row._rowKey = rowKey++;
|
||||
});
|
||||
return data;
|
||||
},
|
||||
makeDataWithSort () {
|
||||
|
@ -629,6 +635,7 @@
|
|||
|
||||
columns.forEach((column, index) => {
|
||||
column._index = index;
|
||||
column._columnKey = columnKey++;
|
||||
column._width = column.width ? column.width : ''; // update in handleResize()
|
||||
column._sortType = 'normal';
|
||||
column._filterVisible = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue