feat:重构模块

This commit is contained in:
2025-10-08 22:06:39 +08:00
parent f60d78fe8b
commit 2e81e57774
222 changed files with 2267 additions and 3059 deletions

View File

@@ -0,0 +1,20 @@
<template>
<svg-icon v-if="props.weather.includes('晴')" name="weather-sunny" />
<svg-icon v-else-if="props.weather.includes('多云')" name="weather-cloudy" />
<svg-icon v-else-if="props.weather.includes('雨')" name="weather-rainy" />
<svg-icon v-else-if="props.weather.includes('雪')" name="weather-snowy" />
<svg-icon v-else-if="props.weather.includes('雾')" name="weather-smog" />
<svg-icon v-else name="weather-cloudy" />
</template>
<script setup lang="ts">
import { SvgIcon } from 'vue3-common'
import { defineProps } from 'vue'
const props = defineProps({
weather: {
required: true,
type: String
}
})
</script>