Skip to content

Instantly share code, notes, and snippets.

@iFwu
Created July 21, 2017 10:36
Show Gist options
  • Save iFwu/fdd4737c8b082aa610bfa47aab3a3b67 to your computer and use it in GitHub Desktop.
Save iFwu/fdd4737c8b082aa610bfa47aab3a3b67 to your computer and use it in GitHub Desktop.
<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