2 changed files with 32 additions and 10 deletions
@ -0,0 +1,22 @@ |
|||
<template> |
|||
<article> |
|||
<div class="route-map" :class="mapClass"> |
|||
<svg><use href="#i-route" /></svg> |
|||
<span>{{ distance }}</span> |
|||
</div> |
|||
<div> |
|||
<strong>{{ name }}</strong> |
|||
<small>{{ waypoints }} 个航点 · 采集于 {{ collectedAt }}</small> |
|||
</div> |
|||
</article> |
|||
</template> |
|||
|
|||
<script setup> |
|||
defineProps({ |
|||
name: { type: String, required: true }, |
|||
waypoints: { type: Number, required: true }, |
|||
distance: { type: String, required: true }, |
|||
collectedAt: { type: String, required: true }, |
|||
mapClass: { type: String, required: true } |
|||
}) |
|||
</script> |
|||
Loading…
Reference in new issue