update
This commit is contained in:
@@ -120,9 +120,10 @@
|
||||
</vxe-table-column>
|
||||
</vxe-table>
|
||||
|
||||
<!-- <vxe-table
|
||||
<vxe-table
|
||||
border
|
||||
resizable
|
||||
:show-header="false"
|
||||
height="400"
|
||||
:data.sync="tableData">
|
||||
<vxe-table-column type="index" width="60" fixed="left"></vxe-table-column>
|
||||
@@ -138,7 +139,7 @@
|
||||
<span>{{ row.address }}</span>
|
||||
</template>
|
||||
</vxe-table-column>
|
||||
</vxe-table> -->
|
||||
</vxe-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -201,7 +201,7 @@ export default {
|
||||
let { $parent: $table, fixedType } = this
|
||||
let { scrollLoad } = $table
|
||||
let { tableHeader, tableBody, leftBody, rightBody } = $table.$refs
|
||||
let headerElem = tableHeader.$el
|
||||
let headerElem = tableHeader ? tableHeader.$el : null
|
||||
let bodyElem = tableBody.$el
|
||||
let leftElem = leftBody ? leftBody.$el : null
|
||||
let rightElem = rightBody ? rightBody.$el : null
|
||||
|
||||
@@ -6,19 +6,14 @@ export default {
|
||||
tableColumn: Array,
|
||||
fixedType: String
|
||||
},
|
||||
mounted () {
|
||||
this.$el.onscroll = this.scrollEvent
|
||||
this.$el._onscroll = this.scrollEvent
|
||||
},
|
||||
destroyed () {
|
||||
this.$el._onscroll = null
|
||||
this.$el.onscroll = null
|
||||
},
|
||||
render (h) {
|
||||
let { _e, $parent: $table, fixedType, tableColumn, footerData } = this
|
||||
let { footerRowClassName, footerCellClassName, tableWidth, scrollYWidth } = $table
|
||||
return h('div', {
|
||||
class: ['vxe-table--footer-wrapper', fixedType ? `fixed--${fixedType}-wrapper` : 'footer--wrapper']
|
||||
class: ['vxe-table--footer-wrapper', fixedType ? `fixed--${fixedType}-wrapper` : 'footer--wrapper'],
|
||||
on: {
|
||||
scroll: this.scrollEvent
|
||||
}
|
||||
}, [
|
||||
h('table', {
|
||||
attrs: {
|
||||
|
||||
Reference in New Issue
Block a user