fix. GR_DETAIL_01 컨텐츠 네비게이션 타이틀에 전용 폰트 적용 안되는 이슈
This commit is contained in:
@@ -16,6 +16,8 @@ const props = defineProps<Props>()
|
|||||||
|
|
||||||
const { locale } = useI18n()
|
const { locale } = useI18n()
|
||||||
const { sendLog } = useAnalytics()
|
const { sendLog } = useAnalytics()
|
||||||
|
const gameDataStore = useGameDataStore()
|
||||||
|
const { fontFamily } = storeToRefs(gameDataStore)
|
||||||
|
|
||||||
const splideRef = ref<SplideSlide | null>(null)
|
const splideRef = ref<SplideSlide | null>(null)
|
||||||
const currentSlideIndex = ref<number | null>(null)
|
const currentSlideIndex = ref<number | null>(null)
|
||||||
@@ -40,6 +42,14 @@ const goToSlide = (index: number, title: string) => {
|
|||||||
sendLog(locale.value, analytics)
|
sendLog(locale.value, analytics)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 텍스트 스타일
|
||||||
|
const textStyle = (item: PageDataTemplateComponents) => {
|
||||||
|
const useGameFont = getComponentGroup(item, 'pagenaviTitle')?.display
|
||||||
|
?.use_game_font
|
||||||
|
|
||||||
|
return useGameFont === 1 ? { fontFamily: fontFamily.value } : {}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -107,7 +117,7 @@ const goToSlide = (index: number, title: string) => {
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<span class="item-bullet"></span>
|
<span class="item-bullet"></span>
|
||||||
<span class="item-title">
|
<span class="item-title" :style="textStyle(item)">
|
||||||
{{ getComponentGroup(item, 'pagenaviTitle')?.display?.text || '' }}
|
{{ getComponentGroup(item, 'pagenaviTitle')?.display?.text || '' }}
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user