|
1 | 1 | import { createVNode } from 'vue';
|
2 | 2 | import classnames from '../_util/classNames';
|
3 |
| -import { cloneElement } from '../_util/vnode'; |
4 | 3 | import { flattenChildren } from '../_util/props-util';
|
5 |
| -import { lazyStartIndex, lazyEndIndex, getPreClones } from './utils/innerSliderUtils'; |
| 4 | +import { lazyStartIndex, lazyEndIndex, getPreClones, cloneElement } from './utils/innerSliderUtils'; |
6 | 5 |
|
7 | 6 | // given specifications/props for a slide, fetch all the classes that need to be applied to the slide
|
8 | 7 | const getSlideClasses = spec => {
|
@@ -84,7 +83,6 @@ const renderSlides = function (spec, children) {
|
84 | 83 | const childrenCount = children.length;
|
85 | 84 | const startIndex = lazyStartIndex(spec);
|
86 | 85 | const endIndex = lazyEndIndex(spec);
|
87 |
| - |
88 | 86 | children.forEach((elem, index) => {
|
89 | 87 | let child;
|
90 | 88 | const childOnClickOptions = {
|
@@ -182,6 +180,7 @@ const renderSlides = function (spec, children) {
|
182 | 180 |
|
183 | 181 | const Track = (_, { attrs, slots }) => {
|
184 | 182 | const slides = renderSlides(attrs, flattenChildren(slots?.default()));
|
| 183 | + // const slides = renderSlides(attrs, slots?.default); |
185 | 184 | const { onMouseenter, onMouseover, onMouseleave } = attrs;
|
186 | 185 | const mouseEvents = { onMouseenter, onMouseover, onMouseleave };
|
187 | 186 | const trackProps = {
|
|
0 commit comments