diff --git a/components/carousel/demo/basic.md b/components/carousel/demo/basic.md index 2412636802..9358261331 100644 --- a/components/carousel/demo/basic.md +++ b/components/carousel/demo/basic.md @@ -29,3 +29,15 @@ ReactDOM.render( , mountNode); ```` + +````css +// For demo +.ant-carousel .slick-slide { + text-align: center; + height: 160px; + line-height: 160px; + background: #364d79; + color: #fff; + overflow: hidden; +} +```` diff --git a/components/carousel/index.en-US.md b/components/carousel/index.en-US.md index abba459927..e4aeccd23a 100644 --- a/components/carousel/index.en-US.md +++ b/components/carousel/index.en-US.md @@ -25,14 +25,3 @@ A carousel component. Scales with its container. | 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 c369d49578..34dc217489 100644 --- a/components/carousel/index.zh-CN.md +++ b/components/carousel/index.zh-CN.md @@ -26,14 +26,3 @@ subtitle: 走马灯 | afterChange | 切换面板的回调 | function(current) | 无 更多参数可参考:https://github.com/akiran/react-slick - -