summaryrefslogtreecommitdiff
path: root/day9/task5_vue/src/components/Table.vue
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2019-07-23 12:26:38 +0400
committerAndrew <saintruler@gmail.com>2019-07-23 12:26:38 +0400
commit38055bcd23527a36d77468ce2dfd0b4766e7fc00 (patch)
tree5cc6d3c69fcdb66ea6b666c23c8996918b4096f2 /day9/task5_vue/src/components/Table.vue
parent3bc79068d5d7bae4bb4ecd3a50ff1c7cade4a3a7 (diff)
Бэкенд:
Добавлены тесты, исправлены ошибки в валидаторах и полях схем баз данных. Фронтенд: Добавлен компонент для показа всплывающих сообщений.
Diffstat (limited to 'day9/task5_vue/src/components/Table.vue')
-rw-r--r--day9/task5_vue/src/components/Table.vue48
1 files changed, 24 insertions, 24 deletions
diff --git a/day9/task5_vue/src/components/Table.vue b/day9/task5_vue/src/components/Table.vue
index d9296d9..a186277 100644
--- a/day9/task5_vue/src/components/Table.vue
+++ b/day9/task5_vue/src/components/Table.vue
@@ -1,29 +1,29 @@
<template>
<table>
- <thead>
- <tr>
- <th v-for="header in tableData.headers">
- {{ header }}
- </th>
- <th></th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <tr v-for="(row) in tableData.content">
- <td>{{ row[0] }}</td>
- <td v-for="(column) in row.slice(1)">
- {{ column }}
- </td>
- <td>
- <button @click="showEditForm(`${row[0]}`)">&#9998</button>
- </td>
- <td>
- <button @click="removeField(`${row[0]}`)">&#10006</button>
- </td>
- </tr>
- </tbody>
- </table>
+ <thead>
+ <tr>
+ <th v-for="header in tableData.headers">
+ {{ header }}
+ </th>
+ <th></th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr v-for="(row) in tableData.content">
+ <td>{{ row[0] }}</td>
+ <td v-for="(column) in row.slice(1)">
+ {{ column }}
+ </td>
+ <td>
+ <button @click="showEditForm(`${row[0]}`)">&#9998</button>
+ </td>
+ <td>
+ <button @click="removeField(`${row[0]}`)">&#10006</button>
+ </td>
+ </tr>
+ </tbody>
+ </table>
</template>
<script>