#31 : Fix spelling 'auto play' -> autoplay
This commit is contained in:
@@ -41,8 +41,8 @@ Import component
|
|||||||
| `initialPageIndex` | `number` | `0` | Page to start on |
|
| `initialPageIndex` | `number` | `0` | Page to start on |
|
||||||
| `duration` | `number` | `500` | Transition duration (ms) |
|
| `duration` | `number` | `500` | Transition duration (ms) |
|
||||||
| `autoplay` | `boolean` | `false` | Enables auto play of pages |
|
| `autoplay` | `boolean` | `false` | Enables auto play of pages |
|
||||||
| `autoplayDuration` | `number` | `3000` | Auto play change interval (ms) |
|
| `autoplayDuration` | `number` | `3000` | Autoplay change interval (ms) |
|
||||||
| `autoplayDirection` | `string` | `'next'` | Auto play change direction (`next` or `prev`) |
|
| `autoplayDirection` | `string` | `'next'` | Autoplay change direction (`next` or `prev`) |
|
||||||
| `pauseOnFocus` | `boolean` | `false` | Pause autoplay on focus |
|
| `pauseOnFocus` | `boolean` | `false` | Pause autoplay on focus |
|
||||||
| `dots` | `boolean` | `true` | Current page indicator dots |
|
| `dots` | `boolean` | `true` | Current page indicator dots |
|
||||||
| `timingFunction` | `string` | `'ease-in-out'` | CSS animation timing function |
|
| `timingFunction` | `string` | `'ease-in-out'` | CSS animation timing function |
|
||||||
|
|||||||
@@ -72,12 +72,12 @@
|
|||||||
export let autoplay = false
|
export let autoplay = false
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Auto play change interval (ms)
|
* Autoplay change interval (ms)
|
||||||
*/
|
*/
|
||||||
export let autoplayDuration = 3000
|
export let autoplayDuration = 3000
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Auto play change direction ('next', 'prev')
|
* Autoplay change direction ('next', 'prev')
|
||||||
*/
|
*/
|
||||||
export let autoplayDirection = NEXT
|
export let autoplayDirection = NEXT
|
||||||
|
|
||||||
|
|||||||
@@ -32,12 +32,12 @@
|
|||||||
export let autoplay = false
|
export let autoplay = false
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Auto play change interval
|
* Autoplay change interval
|
||||||
*/
|
*/
|
||||||
export let autoplayDuration = 3000
|
export let autoplayDuration = 3000
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Auto play change direction ('next', 'prev')
|
* Autoplay change direction ('next', 'prev')
|
||||||
*/
|
*/
|
||||||
export let autoplayDirection = 'next'
|
export let autoplayDirection = 'next'
|
||||||
|
|
||||||
|
|||||||
@@ -32,12 +32,12 @@
|
|||||||
export let autoplay = false
|
export let autoplay = false
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Auto play change interval
|
* Autoplay change interval
|
||||||
*/
|
*/
|
||||||
export let autoplayDuration = 3000
|
export let autoplayDuration = 3000
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Auto play change direction ('next', 'prev')
|
* Autoplay change direction ('next', 'prev')
|
||||||
*/
|
*/
|
||||||
export let autoplayDirection = 'next'
|
export let autoplayDirection = 'next'
|
||||||
|
|
||||||
|
|||||||
@@ -32,12 +32,12 @@
|
|||||||
export let autoplay = false
|
export let autoplay = false
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Auto play change interval
|
* Autoplay change interval
|
||||||
*/
|
*/
|
||||||
export let autoplayDuration = 3000
|
export let autoplayDuration = 3000
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Auto play change direction ('next', 'prev')
|
* Autoplay change direction ('next', 'prev')
|
||||||
*/
|
*/
|
||||||
export let autoplayDirection = 'next'
|
export let autoplayDirection = 'next'
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
## Autoplay
|
## Autoplay
|
||||||
<Carousel
|
<Carousel
|
||||||
autoplay={true}
|
autoplay
|
||||||
autoplayDuration={2000}
|
autoplayDuration={2000}
|
||||||
>
|
>
|
||||||
{#each colors as { color, text } (color)}
|
{#each colors as { color, text } (color)}
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
<Carousel
|
<Carousel
|
||||||
autoplay={true}
|
autoplay
|
||||||
autoplayDuration={2000}
|
autoplayDuration={2000}
|
||||||
>
|
>
|
||||||
{#each colors as { color, text } (color)}
|
{#each colors as { color, text } (color)}
|
||||||
|
|||||||
Reference in New Issue
Block a user