Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
rename ConfirmCasesCard.vue to ConfirmedCasesCard.vue
Browse files Browse the repository at this point in the history
update ConfirmedCasesCard, TestedCasesCard scoped css to module
update TestedCasesCard change notes markup
  • Loading branch information
macropygia committed Mar 19, 2020
1 parent 64723b5 commit a9a92e4
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 42 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
<template>
<data-view class="SvgCard" :title="title" :title-id="titleId" :date="date">
<data-view :title="title" :title-id="titleId" :date="date">
<template v-slot:button>
<p class="Graph-Desc">
<p :class="$style.note">
{{ $t('(注)チャーター機帰国者、クルーズ船乗客等は含まれていない') }}
</p>
</template>
<slot />
</data-view>
</template>

<style lang="scss" scoped>
.SvgCard {
::v-deep svg {
width: 100%;
}
.Graph-Desc {
margin-top: 10px;
margin-bottom: 0;
font-size: 12px;
color: $gray-3;
}
<style lang="scss" module>
.note {
margin-top: 10px;
margin-bottom: 0;
font-size: 12px;
color: $gray-3;
}
</style>

Expand Down
54 changes: 29 additions & 25 deletions components/TestedCasesCard.vue
Original file line number Diff line number Diff line change
@@ -1,35 +1,39 @@
<template>
<data-view class="SvgCard" :title="title" :title-id="titleId" :date="date">
<data-view :title="title" :title-id="titleId" :date="date">
<template v-slot:button>
<p class="Graph-Desc">
{{ $t('(注)医療機関が保険適用で行った検査は含まれていない') }}<br />
{{
$t(
'(注)検査実施人数には、チャーター機帰国者、クルーズ船乗客等は含まれていない'
)
}}
<br />
{{
$t(
'(注)速報値として公開するものであり、後日確定データとして修正される場合あり'
)
}}
</p>
<ul :class="$style.notes">
<li>
{{ $t('(注)医療機関が保険適用で行った検査は含まれていない') }}
</li>
<li>
{{
$t(
'(注)検査実施人数には、チャーター機帰国者、クルーズ船乗客等は含まれていない'
)
}}
</li>
<li>
{{
$t(
'(注)速報値として公開するものであり、後日確定データとして修正される場合あり'
)
}}
</li>
</ul>
</template>
<slot />
</data-view>
</template>

<style lang="scss" scoped>
.SvgCard {
::v-deep svg {
width: 100%;
}
.Graph-Desc {
margin-top: 10px;
margin-bottom: 0;
font-size: 12px;
color: $gray-3;
<style lang="scss" module>
ul.notes {
margin-top: 10px;
margin-bottom: 0;
padding-left: 0 !important;
font-size: 12px;
color: $gray-3;
> li {
list-style-type: none;
}
}
</style>
Expand Down
8 changes: 4 additions & 4 deletions components/cards/ConfirmedCasesDetailsCard.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<v-col cols="12" md="6" class="DataCard">
<confirm-cases-card
<confirmed-cases-card
:title="$t('検査陽性者の状況')"
:title-id="'details-of-confirmed-cases'"
:date="Data.inspections_summary.date"
Expand All @@ -9,19 +9,19 @@
:aria-label="$t('検査陽性者の状況')"
v-bind="confirmedCases"
/>
</confirm-cases-card>
</confirmed-cases-card>
</v-col>
</template>

<script>
import Data from '@/data/data.json'
import formatConfirmedCases from '@/utils/formatConfirmedCases'
import ConfirmCasesCard from '@/components/ConfirmCasesCard.vue'
import ConfirmedCasesCard from '@/components/ConfirmedCasesCard.vue'
import ConfirmedCasesTable from '@/components/ConfirmedCasesTable.vue'
export default {
components: {
ConfirmCasesCard,
ConfirmedCasesCard,
ConfirmedCasesTable
},
data() {
Expand Down

0 comments on commit a9a92e4

Please sign in to comment.