Created
July 21, 2017 10:36
-
-
Save iFwu/fdd4737c8b082aa610bfa47aab3a3b67 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 id="app"> | |
<form id="search"> | |
Search <input name="query" v-model="searchQuery"> | |
</form> | |
<qrcode-table | |
:data="gridData" | |
:columns="gridColumns" | |
:filter-key="searchQuery"> | |
</qrcode-table> | |
</div> | |
</template> | |
<script> | |
import QrcodeTable from './Table.vue' | |
export default { | |
name: 'app', | |
components: { | |
QrcodeTable | |
}, | |
data: () => ({ | |
searchQuery: '', | |
gridColumns: ['name', 'power'], | |
gridData: [ | |
{ name: 'Chuck Norris', power: Infinity }, | |
{ name: 'Bruce Lee', power: 9000 }, | |
{ name: 'Jackie Chan', power: 7000 }, | |
{ name: 'Jet Li', power: 8000 } | |
] | |
}) | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment