fixed #591
This commit is contained in:
parent
b164f7c05c
commit
67c9b1c8b9
6 changed files with 87 additions and 44 deletions
|
@ -1,13 +1,14 @@
|
|||
<template>
|
||||
<Table :columns="columns1" :data="data1">
|
||||
<div slot="header">头部</div>
|
||||
<div slot="footer">底部</div>
|
||||
</Table>
|
||||
<div>
|
||||
<Table :height="height" border :columns="columns1" :data="data2"></Table>
|
||||
<Button @click="height=800">change height</Button>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
height: 200,
|
||||
columns1: [
|
||||
{
|
||||
title: '姓名',
|
||||
|
@ -22,7 +23,27 @@
|
|||
key: 'address'
|
||||
}
|
||||
],
|
||||
data1: [
|
||||
data2: [
|
||||
{
|
||||
name: '王小明',
|
||||
age: 18,
|
||||
address: '北京市朝阳区芍药居'
|
||||
},
|
||||
{
|
||||
name: '张小刚',
|
||||
age: 25,
|
||||
address: '北京市海淀区西二旗'
|
||||
},
|
||||
{
|
||||
name: '李小红',
|
||||
age: 30,
|
||||
address: '上海市浦东新区世纪大道'
|
||||
},
|
||||
{
|
||||
name: '周小伟',
|
||||
age: 26,
|
||||
address: '深圳市南山区深南大道'
|
||||
},
|
||||
{
|
||||
name: '王小明',
|
||||
age: 18,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue