mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 03:58:05 +08:00
c7492a0b59
* refactor: carousel * refactor: carousel * style: update vc-slick path
28 lines
609 B
JavaScript
28 lines
609 B
JavaScript
const initialState = {
|
|
animating: false,
|
|
autoplaying: null,
|
|
currentDirection: 0,
|
|
currentLeft: null,
|
|
currentSlide: 0,
|
|
direction: 1,
|
|
dragging: false,
|
|
edgeDragged: false,
|
|
initialized: false,
|
|
lazyLoadedList: [],
|
|
listHeight: null,
|
|
listWidth: null,
|
|
scrolling: false,
|
|
slideCount: null,
|
|
slideHeight: null,
|
|
slideWidth: null,
|
|
swipeLeft: null,
|
|
swiped: false, // used by swipeEvent. differentites between touch and swipe.
|
|
swiping: false,
|
|
touchObject: { startX: 0, startY: 0, curX: 0, curY: 0 },
|
|
trackStyle: {},
|
|
trackWidth: 0,
|
|
targetSlide: 0,
|
|
};
|
|
|
|
export default initialState;
|