fix table changing small scrollbar bug

This commit is contained in:
huanghong 2018-03-17 02:16:19 +08:00
parent ebaf3c1d89
commit 14d1de0573
4 changed files with 32 additions and 13 deletions

View file

@ -1,6 +1,6 @@
<template>
<div>
<Table border ref="selection" :columns="columns4" :data="data1"></Table>
<Table border ref="selection" :columns="columns4" :data="data1" :height='258'></Table>
<Button @click="handleSetData">Set Data</Button>
<Button @click="handleClearData">Clear Data</Button>
<Button @click="handleSelectAll(true)">Set all selected</Button>
@ -28,7 +28,8 @@
},
{
title: 'Name',
key: 'name'
key: 'name',
width: 260
},
{
title: 'Age',
@ -36,7 +37,13 @@
},
{
title: 'Address',
key: 'address'
key: 'address',
width: 260
},
{
title: 'Address',
key: 'address',
width: 260
}
],
data1: [