update
This commit is contained in:
parent
f1dfa8ffab
commit
5c9c4dff44
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<br><br><br><br><br>
|
<br><br><br><br><br>
|
||||||
<Table border :columns="columns1" height="500" :data="data1"></Table>
|
<Table border :show-header='false' :columns="columns1" height="500" :data="data1"></Table>
|
||||||
<!-- <Table border :columns="columns1" height='300'></Table> -->
|
<!-- <Table border :columns="columns1" height='300'></Table> -->
|
||||||
<!-- <br><br><br><br><br> -->
|
<!-- <br><br><br><br><br> -->
|
||||||
<!-- <Table width="550" height="200" border :columns="columns2" :data="data4"></Table> -->
|
<!-- <Table width="550" height="200" border :columns="columns2" :data="data4"></Table> -->
|
||||||
|
|
|
@ -590,7 +590,7 @@
|
||||||
let bodyHeight = bodyEl.offsetHeight;
|
let bodyHeight = bodyEl.offsetHeight;
|
||||||
|
|
||||||
if (!this.$refs.header) {
|
if (!this.$refs.header) {
|
||||||
this.showHorizontalScrollBar = bodyEl.offsetWidth < bodyContentEl.offsetWidth;
|
this.showHorizontalScrollBar = bodyEl.offsetWidth < bodyContentEl.offsetWidth + (this.showVerticalScrollBar?this.scrollBarWidth:0);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.showVerticalScrollBar = this.bodyHeight? bodyHeight - (this.showHorizontalScrollBar?this.scrollBarWidth:0) < bodyContentHeight : false;
|
this.showVerticalScrollBar = this.bodyHeight? bodyHeight - (this.showHorizontalScrollBar?this.scrollBarWidth:0) < bodyContentHeight : false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue