publish 0.9.9-rc-2
fixed Table autowidth
This commit is contained in:
parent
872c1354b9
commit
5e7a3b293b
7 changed files with 35 additions and 259 deletions
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<table cellspacing="0" cellpadding="0" border="0" :style="style">
|
||||
<colgroup>
|
||||
<col v-for="column in columns" :width="setCellWidth(column, $index)">
|
||||
<col v-for="item in setCellWidth" :width="setCellWidth($index)">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -69,6 +69,7 @@
|
|||
columns: Array,
|
||||
objData: Object,
|
||||
data: Array, // rebuildData
|
||||
columnsWidth: Array,
|
||||
fixed: {
|
||||
type: [Boolean, String],
|
||||
default: false
|
||||
|
@ -97,9 +98,6 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
setCellWidth (column, index) {
|
||||
return this.$parent.setCellWidth(column, index);
|
||||
},
|
||||
renderHeader (column, $index) {
|
||||
if ('renderHeader' in this.columns[$index]) {
|
||||
return this.columns[$index].renderHeader(column, $index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue