docs(carousel): remove autoplay from non-autoplay examples

This commit is contained in:
Keagan Chisnall 2021-08-17 01:27:42 +10:00 committed by GitHub
parent 93727df2d3
commit 6e64c1fd1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@
Set `dot-placement` to change the indication point position.
```html
<n-carousel dot-placement="left" style="height: 240px;" autoplay>
<n-carousel dot-placement="left" style="height: 240px;">
<img
class="carousel-img"
src="https://s.anw.red/fav/1623979004.jpg!/fw/600/quality/77/ignore-error/true"

View File

@ -1,9 +1,9 @@
# Mouseover
Set `trigger` to `hover` to trigger the switch.
Set `trigger` to `hover` to switch when the dot is hovered over.
```html
<n-carousel autoplay trigger="hover">
<n-carousel trigger="hover">
<img
class="carousel-img"
src="https://s.anw.red/fav/1623979004.jpg!/fw/600/quality/77/ignore-error/true"

View File

@ -19,10 +19,10 @@ show-arrow
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| autoplay | `boolean` | `false` | Whether to scroll automatically. |
| interval | `number` | `5000` | Auto play interval. |
| interval | `number` | `5000` | Auto play interval (ms). |
| dot-placement | `'top' \| 'bottom' \| 'left' \| 'right'` | `'bottom'` | Dot placement in the panel. |
| show-arrow | `boolean` | `false` | Whether to show arrow button. |
| trigger | `'click' \| 'hover'` | `'click'` | The way to trigger the switch. |
| show-arrow | `boolean` | `false` | Whether to show arrow buttons. |
| trigger | `'click' \| 'hover'` | `'click'` | The method of manual switching. |
### Carousel Slots

View File

@ -3,7 +3,7 @@
设定 `dot-placement` 来更改指示点位置。
```html
<n-carousel dot-placement="left" style="height: 240px;" autoplay>
<n-carousel dot-placement="left" style="height: 240px;">
<img
class="carousel-img"
src="https://s.anw.red/fav/1623979004.jpg!/fw/600/quality/77/ignore-error/true"

View File

@ -3,7 +3,7 @@
设定 `trigger``hover` 来触发切换。
```html
<n-carousel autoplay trigger="hover">
<n-carousel trigger="hover">
<img
class="carousel-img"
src="https://s.anw.red/fav/1623979004.jpg!/fw/600/quality/77/ignore-error/true"