#47 : Add swiping prop

This commit is contained in:
Vadim
2021-07-24 15:14:45 +03:00
parent da7d8ac705
commit f51421b5bf
4 changed files with 27 additions and 3 deletions

View File

@@ -56,6 +56,11 @@
*/
export let dots = true
/**
* Enable swiping
*/
export let swiping = true
const colors = [
{ color: '#e5f9f0', text: '0' },
{ color: '#ccf3e2', text: '1' },
@@ -89,6 +94,7 @@
{pauseOnFocus}
{autoplayProgressVisible}
{dots}
{swiping}
on:pageChange={
event => console.log(`Current page index: ${event.detail}`)
}
@@ -115,6 +121,7 @@
{pauseOnFocus}
{autoplayProgressVisible}
{dots}
{swiping}
>
{#each colors2 as { color, text } (color)}
<div
@@ -145,4 +152,4 @@
font-style: italic;
font-size: 18px;
}
</style>
</style>