27 lines
614 B
Vue
27 lines
614 B
Vue
<template>
|
|
<div class="day-summary">
|
|
<div class="day-total"
|
|
>合计 <strong>{{ total }}</strong
|
|
>车次</div
|
|
>
|
|
<dl class="product-totals">
|
|
<div v-for="product in products" :key="product.key" class="product-total">
|
|
<dt>{{ product.name }}</dt>
|
|
<dd
|
|
><strong>{{ product.count }}</strong
|
|
><span>车次</span></dd
|
|
>
|
|
</div>
|
|
</dl>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import type { CalendarProduct } from './model'
|
|
|
|
defineProps<{
|
|
total: number
|
|
products: Array<CalendarProduct & { count: number }>
|
|
}>()
|
|
</script>
|