style(owner-vue): 주문 아이템이 2개 이상일 경우 표기법 변경

- 모든 아이템이 다 나오던 형식에서 외 n건으로 변경
This commit is contained in:
bum12ark
2022-03-15 16:48:44 +09:00
parent 44dc5a10ec
commit 1abb081718

View File

@@ -5,7 +5,12 @@
<v-spacer></v-spacer> <v-spacer></v-spacer>
<v-btn outlined color="grey grey lighten-1" small>상세보기</v-btn> <v-btn outlined color="grey grey lighten-1" small>상세보기</v-btn>
</v-toolbar> </v-toolbar>
<v-card-title>{{ itemNames.join(", ") }}</v-card-title> <v-card-title v-if="itemNames.length == 1">
{{ itemNames[0] }}
</v-card-title>
<v-card-title v-if="itemNames.length > 1">
{{ itemNames[0] }} {{ itemNames.length - 1 }}
</v-card-title>
<v-card-subtitle></v-card-subtitle> <v-card-subtitle></v-card-subtitle>
<v-card-text>{{ orderTime }}</v-card-text> <v-card-text>{{ orderTime }}</v-card-text>
<v-card-actions> <v-card-actions>
@@ -56,7 +61,7 @@ export default {
}, },
props: { props: {
id: Number, id: Number,
userName: Number, userName: String,
itemNames: [], itemNames: [],
orderTime: String, orderTime: String,
orderStatus: String orderStatus: String