官网开发中 0803
This commit is contained in:
@@ -4,7 +4,7 @@ import type { SectionBlock } from '~/types/site';
|
||||
const props = defineProps<{ section: SectionBlock }>();
|
||||
|
||||
// 引言评价:正文 content 作为引用语,subtitle 作为作者/出处
|
||||
const { content, subtitle, isDark } = useSectionContent(props.section);
|
||||
const { content, subtitle, isDark, titleStyle, bodyStyle } = useSectionContent(props.section);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -13,9 +13,10 @@ const { content, subtitle, isDark } = useSectionContent(props.section);
|
||||
<blockquote
|
||||
class="mt-8px text-2xl md:text-3xl font-medium leading-relaxed"
|
||||
:class="isDark ? 'text-white' : 'text-gray-900 dark:text-white'"
|
||||
:style="titleStyle"
|
||||
v-html="content"
|
||||
/>
|
||||
<p v-if="subtitle" class="mt-24px text-sm tracking-wide" :class="isDark ? 'text-gray-400' : 'text-gray-500 dark:text-gray-400'">
|
||||
<p v-if="subtitle" class="mt-24px text-sm tracking-wide" :class="isDark ? 'text-gray-400' : 'text-gray-500 dark:text-gray-400'" :style="bodyStyle">
|
||||
—— {{ subtitle }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user