添加页面代码

This commit is contained in:
kron
2025-11-25 16:53:19 +08:00
parent 4d470ea44a
commit aecd2cea61
68 changed files with 5081 additions and 274 deletions

View File

@@ -0,0 +1,39 @@
<script setup>
const props = defineProps({
name: {
type: String,
default: "",
},
src: {
type: String,
default: "",
},
onClick: {
type: Function,
default: () => {},
},
width: {
type: Number,
default: 22,
},
});
</script>
<template>
<view class="container" @click="onClick">
<image :src="src" mode="widthFix" :style="{ width: width + 'px' }" />
<text>{{ name }}</text>
</view>
</template>
<style scoped>
.container {
display: flex;
flex-direction: column;
align-items: center;
}
.container > text {
color: #666666;
font-size: 12px;
margin-top: 5px;
}
</style>