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>
|
2025-10-24 10:03:31 +08:00
|
|
|
<view class="text-5xl my-6 font-bold">
|
2025-10-23 17:23:26 +08:00
|
|
|
{{ title }}
|
|
|
|
|
</view>
|
2025-10-24 10:03:31 +08:00
|
|
|
<view class="text-xl lg:mx-32 mx-6 mb-6 ">
|
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>
|