官网开发中 0803
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user