This commit is contained in:
yiqiuyang
2025-10-16 17:36:27 +08:00
parent 5d93a81ec6
commit 3f5f76946d
9 changed files with 115 additions and 123 deletions

View File

@ -31,6 +31,7 @@ let autoPlayTimer = null
const itemWidth = computed(() => $fontSize(props.sourceWidth))
const itemHeight = computed(() => $fontSize(props.sourceHeight))
const itemGap = computed(() => $fontSize(props.sourceGap))
const itemTotalWidth = computed(() => itemWidth.value + itemGap.value)
const viewPortWidth = computed(() => props.pageSize * itemWidth.value + (props.pageSize - 1) * itemGap.value + 'px')
const trackWidth = computed(() => props.data.length * itemTotalWidth.value - itemGap.value + 'px')