mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-19 13:55:19 +00:00
Basic email table
This commit is contained in:
@@ -1,12 +1,39 @@
|
||||
<template>
|
||||
<h1>VMail Inbox</h1>
|
||||
|
||||
<div>Table will go here</div>
|
||||
<MailTable :emails="emails" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MailTable from '@/components/MailTable.vue';
|
||||
export default {
|
||||
|
||||
setup(props, {attrs, slots}){
|
||||
|
||||
let emails = [{
|
||||
id: 1,
|
||||
subject: 'First Steps',
|
||||
body: 'Learning Vue with Vue 3, cool!',
|
||||
read: false,
|
||||
archived: false,
|
||||
}, {
|
||||
id: 2,
|
||||
subject: 'Vue 3 - pretty cool',
|
||||
body: 'Lots of really good features happening here',
|
||||
read: false,
|
||||
archived: false
|
||||
}, {
|
||||
id: 3,
|
||||
subject: 'Do we have a released date?',
|
||||
body: "I hear Q2 2020.",
|
||||
read: true,
|
||||
archived: false
|
||||
}]
|
||||
|
||||
return {emails}
|
||||
},
|
||||
components: {
|
||||
MailTable
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user