fixed table scrollbar bug
This commit is contained in:
parent
6bc3b19f22
commit
47638ad84a
4 changed files with 38 additions and 7 deletions
|
@ -1,3 +1,17 @@
|
|||
<style>
|
||||
.table{
|
||||
margin:20px 0px;
|
||||
}
|
||||
.table .iview-table-cell{
|
||||
padding-left: 2px !important;
|
||||
padding-right: 2px !important;
|
||||
|
||||
}
|
||||
.table .iview-table-small td {
|
||||
height: 30px !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<Table border ref="selection" :columns="columns4" :data="data1"></Table>
|
||||
|
@ -5,8 +19,9 @@
|
|||
<Button @click="handleClearData">Clear Data</Button>
|
||||
<Button @click="handleSelectAll(true)">Set all selected</Button>
|
||||
<Button @click="handleSelectAll(false)">Cancel all selected</Button>
|
||||
<div style="margin:20px 0px;">
|
||||
<Table :data="tableData1" :columns="tableColumns1" style="width: 100%;" stripe></Table>
|
||||
|
||||
<div class="table1">
|
||||
<Table :data="tableData1" :columns="tableColumns1" :height='500' stripe size='small'></Table>
|
||||
<div style="margin: 10px;overflow: hidden">
|
||||
<div style="float: right;">
|
||||
<Page :total="100" show-sizer :current="1" @on-change="changePage"></Page>
|
||||
|
@ -65,7 +80,7 @@
|
|||
key: 'data5'
|
||||
},
|
||||
{
|
||||
title: 'Data6',
|
||||
title: '一二三四一二三四一二三四一二三四',
|
||||
key: 'data6'
|
||||
},
|
||||
]
|
||||
|
@ -118,7 +133,7 @@
|
|||
data3: Math.floor(Math.random () * 100000000),
|
||||
data4: Math.floor(Math.random () * Math.random () * 10000),
|
||||
data5: Math.floor(Math.random () * Math.random () * 1000000),
|
||||
data6: Math.floor(Math.random () * Math.random () * 100000000),
|
||||
data6: ''+Math.floor(Math.random () * Math.random () * 100000000)+Math.floor(Math.random () * 100000000)+Math.floor(Math.random () * 100000000),
|
||||
});
|
||||
}
|
||||
this.tableData1 = data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue