Skip to content

Commit

Permalink
v-slot:bodyで定義したth, tdにクラスを付与
Browse files Browse the repository at this point in the history
  • Loading branch information
kzhrk committed Apr 11, 2020
1 parent 349adcd commit c44d530
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions components/AgencyBarChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
<template v-slot:body="{ items }">
<tbody>
<tr v-for="item in items" :key="item.text">
<th>{{ item.text }}</th>
<td>{{ item[0] }}</td>
<td>{{ item[1] }}</td>
<td>{{ item[2] }}</td>
<th class="text-start">{{ item.text }}</th>
<td class="text-start">{{ item[0] }}</td>
<td class="text-start">{{ item[1] }}</td>
<td class="text-start">{{ item[2] }}</td>
</tr>
</tbody>
</template>
Expand Down
10 changes: 5 additions & 5 deletions components/DataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
<template v-slot:body="{ items }">
<tbody>
<tr v-for="item in items" :key="item.text">
<th>{{ item['公表日'] }}</th>
<td>{{ item['居住地'] }}</td>
<td>{{ item['年代'] }}</td>
<td>{{ item['性別'] }}</td>
<td>{{ item['退院'] }}</td>
<th class="text-start">{{ item['公表日'] }}</th>
<td class="text-start">{{ item['居住地'] }}</td>
<td class="text-start">{{ item['年代'] }}</td>
<td class="text-start">{{ item['性別'] }}</td>
<td class="text-center">{{ item['退院'] }}</td>
</tr>
</tbody>
</template>
Expand Down
8 changes: 4 additions & 4 deletions components/MetroBarChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
<template v-slot:body="{ items }">
<tbody>
<tr v-for="item in items" :key="item.text">
<th>{{ item.text }}</th>
<td>{{ item[0] }}</td>
<td>{{ item[1] }}</td>
<td>{{ item[2] }}</td>
<th class="text-start">{{ item.text }}</th>
<td class="text-start">{{ item[0] }}</td>
<td class="text-start">{{ item[1] }}</td>
<td class="text-start">{{ item[2] }}</td>
</tr>
</tbody>
</template>
Expand Down
4 changes: 2 additions & 2 deletions components/TimeBarChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
<template v-slot:body="{ items }">
<tbody>
<tr v-for="item in items" :key="item.text">
<th>{{ item.text }}</th>
<td>{{ item['0'] }}</td>
<th class="text-start">{{ item.text }}</th>
<td class="text-start">{{ item['0'] }}</td>
</tr>
</tbody>
</template>
Expand Down
6 changes: 3 additions & 3 deletions components/TimeStackedBarChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@
<template v-slot:body="{ items }">
<tbody>
<tr v-for="item in items" :key="item.text">
<th>{{ item.text }}</th>
<td>{{ item['0'] }}</td>
<td>{{ item['1'] }}</td>
<th class="text-start">{{ item.text }}</th>
<td class="text-start">{{ item['0'] }}</td>
<td class="text-start">{{ item['1'] }}</td>
</tr>
</tbody>
</template>
Expand Down

0 comments on commit c44d530

Please sign in to comment.