@mixd-id/web-scaffold 0.1.230406210 → 0.1.230406211
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -130,19 +130,15 @@ export default{
|
|
|
130
130
|
|
|
131
131
|
const index = this.index
|
|
132
132
|
let left = 0
|
|
133
|
+
const gapPx = parseInt(window.getComputedStyle(this.$refs.inner).getPropertyValue('column-gap'))
|
|
133
134
|
for(let curIndex = 0 ; curIndex < this.items.length ; curIndex++){
|
|
134
135
|
const item = this.$refs.inner.children[curIndex]
|
|
135
136
|
if(curIndex < index)
|
|
136
|
-
left += item.clientWidth
|
|
137
|
+
left += (item.clientWidth + gapPx)
|
|
137
138
|
}
|
|
138
139
|
|
|
139
|
-
const gapPx = parseInt(window.getComputedStyle(this.$refs.inner).getPropertyValue('column-gap'))
|
|
140
|
-
left += gapPx
|
|
141
|
-
|
|
142
140
|
left *= -1
|
|
143
141
|
|
|
144
|
-
console.log('left', left)
|
|
145
|
-
|
|
146
142
|
if(!noAnimation){
|
|
147
143
|
this.$el.firstElementChild.addEventListener('transitionend', function(){
|
|
148
144
|
this.classList.remove('transition-carousel')
|