Move actions to separate dir, fix demo image
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import Dots from '../Dots/Dots.svelte'
|
||||
import Arrow from '../Arrow/Arrow.svelte'
|
||||
import { NEXT, PREV } from '../../direction'
|
||||
import { swipeable } from '../../utils/swipeable'
|
||||
import { swipeable } from '../../actions/swipeable'
|
||||
import {
|
||||
addResizeEventListener,
|
||||
removeResizeEventListener
|
||||
|
||||
@@ -69,6 +69,7 @@
|
||||
|
||||
<div class="main-container">
|
||||
<Carousel
|
||||
{timingFunction}
|
||||
{arrows}
|
||||
{infinite}
|
||||
{initialPageIndex}
|
||||
@@ -77,7 +78,6 @@
|
||||
{autoplayDuration}
|
||||
{autoplayDirection}
|
||||
{dots}
|
||||
{timingFunction}
|
||||
on:pageChange={
|
||||
event => console.log(`Current page index: ${event.detail}`)
|
||||
}
|
||||
@@ -93,6 +93,7 @@
|
||||
</Carousel>
|
||||
|
||||
<Carousel
|
||||
{timingFunction}
|
||||
{arrows}
|
||||
{infinite}
|
||||
{initialPageIndex}
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
|
||||
<div class="main-container">
|
||||
<Carousel
|
||||
{timingFunction}
|
||||
{arrows}
|
||||
{infinite}
|
||||
{initialPageIndex}
|
||||
@@ -71,7 +72,6 @@
|
||||
{autoplayDuration}
|
||||
{autoplayDirection}
|
||||
{dots}
|
||||
{timingFunction}
|
||||
let:showPrevPage
|
||||
let:showNextPage
|
||||
>
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
|
||||
<div class="main-container">
|
||||
<Carousel
|
||||
{timingFunction}
|
||||
{arrows}
|
||||
{infinite}
|
||||
{initialPageIndex}
|
||||
@@ -75,7 +76,6 @@
|
||||
{autoplayDuration}
|
||||
{autoplayDirection}
|
||||
{dots}
|
||||
{timingFunction}
|
||||
let:currentPageIndex
|
||||
let:pagesCount
|
||||
let:showPage
|
||||
|
||||
Reference in New Issue
Block a user