박기범

complete

1 <template lang="html"> 1 <template lang="html">
2 <v-flex> 2 <v-flex>
3 <h1>연락처</h1> 3 <h1>연락처</h1>
4 + <v-text-field
5 + v-model="search"
6 + append-icon="mdi-magnify"
7 + label="Search"
8 + single-line
9 + hide-details
10 + ></v-text-field>
11 +<!--
4 <v-simple-table> 12 <v-simple-table>
5 <template v-slot:default> 13 <template v-slot:default>
6 <thead> 14 <thead>
...@@ -19,6 +27,13 @@ ...@@ -19,6 +27,13 @@
19 </tbody> 27 </tbody>
20 </template> 28 </template>
21 </v-simple-table> 29 </v-simple-table>
30 +-->
31 + <v-data-table
32 + :headers="headers"
33 + :items="contact_list"
34 + :search="search"
35 + >
36 + </v-data-table>
22 <v-divider></v-divider> 37 <v-divider></v-divider>
23 <div v-cloak @drop.prevnet="addContact" @dragover.prevent> 38 <div v-cloak @drop.prevnet="addContact" @dragover.prevent>
24 <input 39 <input
...@@ -41,6 +56,17 @@ ...@@ -41,6 +56,17 @@
41 export default { 56 export default {
42 data() { 57 data() {
43 return { 58 return {
59 + search:'',
60 + headers:[
61 + {
62 + text: 'Name',
63 + align: 'start',
64 + sortable: false,
65 + value: 'name'
66 + },
67 + {text: 'phone', value:'email'},
68 + {text:'email', value:'phone'}
69 + ],
44 contact_list : [], 70 contact_list : [],
45 contact_file : null 71 contact_file : null
46 } 72 }
......