news
This commit is contained in:
@ -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')
|
||||
|
||||
Reference in New Issue
Block a user