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