#31 : Add progress indicator prop

This commit is contained in:
Vadim
2021-07-02 19:16:16 +03:00
parent ecca0c3892
commit 903f665197
4 changed files with 24 additions and 0 deletions

View File

@@ -86,6 +86,11 @@
*/
export let pauseOnFocus = true
/**
* Show autoplay duration progress indicator
*/
export let autoplayProgressVisible = false
/**
* Current page indicator dots
*/

View File

@@ -47,6 +47,11 @@
*/
export let pauseOnFocus = false
/**
* Show autoplay duration progress indicator
*/
export let autoplayProgressVisible = false
/**
* Current page indicator dots
*/
@@ -83,6 +88,7 @@
{autoplayDuration}
{autoplayDirection}
{pauseOnFocus}
{autoplayProgressVisible}
{dots}
on:pageChange={
event => console.log(`Current page index: ${event.detail}`)
@@ -108,6 +114,7 @@
{autoplayDuration}
{autoplayDirection}
{pauseOnFocus}
{autoplayProgressVisible}
{dots}
>
{#each colors2 as { color, text } (color)}

View File

@@ -47,6 +47,11 @@
*/
export let pauseOnFocus = false
/**
* Show autoplay duration progress indicator
*/
export let autoplayProgressVisible = false
/**
* Current page indicator dots
*/
@@ -77,6 +82,7 @@
{autoplayDuration}
{autoplayDirection}
{pauseOnFocus}
{autoplayProgressVisible}
{dots}
let:showPrevPage
let:showNextPage

View File

@@ -47,6 +47,11 @@
*/
export let pauseOnFocus = false
/**
* Show autoplay duration progress indicator
*/
export let autoplayProgressVisible = false
/**
* Current page indicator dots
*/
@@ -81,6 +86,7 @@
{autoplayDuration}
{autoplayDirection}
{pauseOnFocus}
{autoplayProgressVisible}
{dots}
let:currentPageIndex
let:pagesCount