官网开发中 0803

This commit is contained in:
eafonyang
2026-08-03 19:09:03 +08:00
parent eeccdb079c
commit f37b6451ef
36 changed files with 1906 additions and 78 deletions
+10 -1
View File
@@ -23,6 +23,12 @@ export function useSectionContent(section: SectionBlock) {
/** 深色主题区块 */
const isDark = computed(() => section.theme === 'dark');
// 前景文案自定义颜色(空 = 跟随 theme 默认配色,由布局组件的 class 控制)
// 内联 style 优先级高于 class,非空时直接覆盖默认色
const overlineStyle = computed(() => (section.overline_color ? { color: section.overline_color } : undefined));
const titleStyle = computed(() => (section.title_color ? { color: section.title_color } : undefined));
const bodyStyle = computed(() => (section.body_color ? { color: section.body_color } : undefined));
return {
isEn,
overline,
@@ -33,6 +39,9 @@ export function useSectionContent(section: SectionBlock) {
ctaSecondaryText,
mediaUrl,
config,
isDark
isDark,
overlineStyle,
titleStyle,
bodyStyle
};
}