fix. 유튜브 영상 썸네일 퀄리티 조절
This commit is contained in:
@@ -81,7 +81,7 @@ const thumbOptions = computed<Options>(() => ({
|
||||
const getThumbnailSrc = (item: PageDataTemplateComponentSet) => {
|
||||
if (props.variant === 'media') {
|
||||
const mediaComponent = getComponentGroup(item, 'media')
|
||||
return mediaComponent ? getMediaImgSrc(mediaComponent) : ''
|
||||
return mediaComponent ? getMediaImgSrc(mediaComponent, 'high') : ''
|
||||
}
|
||||
|
||||
const thumbnailComponent = getComponentGroup(item, 'pagenaviThumbnail')
|
||||
@@ -111,9 +111,12 @@ onMounted(() => {
|
||||
mainInst.sync(thumbsInst)
|
||||
// 썸네일 슬라이드의 화살표 버튼에 이벤트 리스너 추가
|
||||
nextTick(() => {
|
||||
removeArrowListeners = addArrowClickListeners(thumbsInst, (direction, targetIndex) => {
|
||||
emit('arrowClick', direction, targetIndex)
|
||||
})
|
||||
removeArrowListeners = addArrowClickListeners(
|
||||
thumbsInst,
|
||||
(direction, targetIndex) => {
|
||||
emit('arrowClick', direction, targetIndex)
|
||||
}
|
||||
)
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -124,7 +127,7 @@ onBeforeUnmount(() => {
|
||||
removeArrowListeners()
|
||||
removeArrowListeners = null
|
||||
}
|
||||
|
||||
|
||||
// Splide 인스턴스 정리
|
||||
mainInst?.destroy?.()
|
||||
thumbsInst?.destroy?.()
|
||||
|
||||
Reference in New Issue
Block a user