Browse Source

📃 docs: update docs (#41511)

pull/41516/head
lijianan 2 years ago
committed by GitHub
parent
commit
3c454496ef
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/carousel/index.en-US.md
  2. 4
      components/carousel/index.zh-CN.md

4
components/carousel/index.en-US.md

@ -33,8 +33,8 @@ A carousel component. Scales with its container.
| dots | Whether to show the dots at the bottom of the gallery, `object` for `dotsClass` and any others | boolean \| { className?: string } | true | |
| easing | Transition interpolation function name | string | `linear` | |
| effect | Transition effect | `scrollx` \| `fade` | `scrollx` | |
| afterChange | Callback function called after the current index changes | function(current) | - | |
| beforeChange | Callback function called before the current index changes | function(from, to) | - | |
| afterChange | Callback function called after the current index changes | (current: number) => void | - | |
| beforeChange | Callback function called before the current index changes | (current: number, next: number) => void | - | |
## Methods

4
components/carousel/index.zh-CN.md

@ -34,8 +34,8 @@ demo:
| dots | 是否显示面板指示点,如果为 `object` 则同时可以指定 `dotsClass` 或者 | boolean \| { className?: string } | true | |
| easing | 动画效果 | string | `linear` | |
| effect | 动画效果函数 | `scrollx` \| `fade` | `scrollx` | |
| afterChange | 切换面板的回调 | function(current) | - | |
| beforeChange | 切换面板的回调 | function(from, to) | - | |
| afterChange | 切换面板的回调 | (current: number) => void | - | |
| beforeChange | 切换面板的回调 | (current: number, next: number) => void | - | |
## 方法

Loading…
Cancel
Save