Skip to content

Commit

Permalink
fix: fix addResizeListener params wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustAMan committed Nov 2, 2020
1 parent 2276e55 commit 89f40b8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/carousel/Carousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ import {
nextTick,
provide,
onMounted,
getCurrentInstance,
onUnmounted
} from 'vue'
import { throttle } from 'throttle-debounce'
Expand Down Expand Up @@ -151,9 +150,6 @@ export default {
startTimer
} = useInitSlide(props, initData, loop)
// 组件逻辑处理
const _this = getCurrentInstance()
const updateItems = (ElCarouselItem) => {
initData.items.push(ElCarouselItem)
}
Expand All @@ -162,7 +158,7 @@ export default {
onMounted(() => {
nextTick(() => {
addResizeListener(_this.vnode.el, resetItemPosition)
addResizeListener(resetItemPosition)
if (
props.initialIndex < initData.items.length &&
props.initialIndex >= 0
Expand Down

0 comments on commit 89f40b8

Please sign in to comment.