This commit is contained in:
winter_born
2026-04-10 13:46:23 +08:00
parent 8fbcafb8be
commit b1933043a2
6 changed files with 64 additions and 4 deletions

33
components/card.vue Normal file
View File

@@ -0,0 +1,33 @@
<template>
<view class="card">
<image :src="image_path" />
<p>{{value}}</p>
</view>
</template>
<script>
export default {
props: {
image_path: {
type: String,
default: ""
},
value: {
type: [String, Number],
default: ""
}
},
data() {
return {}
},
methods: {}
}
</script>
<style>
.card image{
width: 100%;
margin-top: 1vh;
height: 9vh;
border: 1px black solid;
}
</style>