beehive/app/components/TitleDescription.vue

32 lines
617 B
Vue
Raw Normal View History

2025-10-23 17:23:26 +08:00
<!-- components/TitleSection.vue -->
<template>
<view class="flex flex-col items-center">
<view class="text-sm mt-4 lg:mt-20 text-primary font-bold">
{{ subtitle }}
</view>
<view class="text-4xl my-6 font-bold">
{{ title }}
</view>
<view class="text-xl lg:mx-32 mx-6 mb-6 text-muted">
2025-10-23 18:04:47 +08:00
{{ description }}
2025-10-23 17:23:26 +08:00
</view>
</view>
2025-10-23 18:04:47 +08:00
2025-10-23 17:23:26 +08:00
</template>
<script setup>
defineProps({
title: {
type: String,
default: '默认标题'
},
subtitle: {
type: String,
default: '默认副标题'
2025-10-23 18:04:47 +08:00
},
description: {
type: String,
default: '默认描述'
2025-10-23 17:23:26 +08:00
}
})
</script>