diff --git a/components/carousel/index.en-US.md b/components/carousel/index.en-US.md index 9554e6125a9b..f66bf5df20ff 100644 --- a/components/carousel/index.en-US.md +++ b/components/carousel/index.en-US.md @@ -21,7 +21,7 @@ A carousel component. Scales with its container. | vertical | Whether to use a vertical display | boolean | `false` | | autoplay | Whether to scroll automatically | boolean | `false` | | easing | Transition interpolation function name | string | `linear` | -| beforeChange | Callback function called before the current index changes | function(from, to) | -| 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 | function(current) | - | For more info on the parameters, refer to the https://github.com/akiran/react-slick diff --git a/components/carousel/index.zh-CN.md b/components/carousel/index.zh-CN.md index 34dc2174893a..1a40b66f0b98 100644 --- a/components/carousel/index.zh-CN.md +++ b/components/carousel/index.zh-CN.md @@ -22,7 +22,7 @@ subtitle: 走马灯 | vertical | 垂直显示 | boolean | false | | autoplay | 是否自动切换 | boolean | false | | easing | 动画效果 | string | linear | -| beforeChange | 切换面板的回调 | function(from, to) | 无 -| afterChange | 切换面板的回调 | function(current) | 无 +| beforeChange | 切换面板的回调 | function(from, to) | 无 | +| afterChange | 切换面板的回调 | function(current) | 无 | 更多参数可参考:https://github.com/akiran/react-slick