feat: 完成70%全局样式与可读性优化

This commit is contained in:
rain
2026-07-31 11:27:15 +08:00
parent 96524e4d6c
commit 555aa00043
116 changed files with 1928 additions and 1169 deletions
+31
View File
@@ -0,0 +1,31 @@
<template>
<image class="app-avatar" :src="avatarSource" mode="aspectFill" />
</template>
<script setup>
import { computed } from "vue";
import { getDefaultAvatar } from "@/utils/avatar.js";
const props = defineProps({
sex: {
type: [String, Number],
default: "",
},
src: {
type: String,
default: "",
},
});
const avatarSource = computed(
() => props.src.trim() || getDefaultAvatar(props.sex),
);
</script>
<style scoped>
.app-avatar {
display: block;
width: 100%;
height: 100%;
}
</style>