mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-20 14:25:14 +00:00
Basic email table
This commit is contained in:
35
src/components/MailTable.vue
Normal file
35
src/components/MailTable.vue
Normal file
@@ -0,0 +1,35 @@
|
||||
<template>
|
||||
<table>
|
||||
<thead>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="email in emails" :key="email.id">
|
||||
<td><input type="checkbox" /></td>
|
||||
<td>{{email.subject}}</td>
|
||||
<td>{{email.body}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
emails: {
|
||||
type: Array,
|
||||
default: []
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
table {
|
||||
max-width: 800px;
|
||||
margin: auto;
|
||||
}
|
||||
td {
|
||||
text-align: left;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user