Created
September 27, 2017 02:19
-
-
Save aytdm/1c24033e84f193628656852cd8bdd5df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<el-table :data="tableData" style="width: 100%"> | |
<el-table-column prop="date" label="Date" width="180"></el-table-column> | |
<el-table-column prop="name" label="Name" width="180"></el-table-column> | |
<el-table-column prop="address" label="Address"></el-table-column> | |
</el-table> | |
</div> | |
</template> | |
<script lang="babel"> | |
export default { | |
layout: 'twocolumns', | |
data () { | |
return { | |
tableData: [{ | |
date: '2016-05-03', | |
name: 'Tom', | |
address: 'No. 189, Test St, Hoge Fuga' | |
}, { | |
date: '2010-01-12', | |
name: 'Lay', | |
address: 'No. 200, Test St, Hoge Fuga' | |
}, { | |
date: '2000-09-13', | |
name: 'George', | |
address: 'No. 89, Test St, Hoge Fuga' | |
}, { | |
date: '1994-12-21', | |
name: 'Mone', | |
address: 'No. 45, Test St, Hoge Fuga' | |
}] | |
} | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment