1.0.1 • Published 6 years ago

ue-carousel v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

ue-carousel

  • ue-carousel(轮播组件)

参数说明

参数说明
loop是否循环播放
indicators是否展示指示器
auto间隔多少毫秒执行切换一次

使用示例

import React from 'react';
import Carousel from 'ue-carousel';

class Index extends React.PureComponent {
  constructor(props) {
    super(props);
  }

  render() {
    return (
      <Carousel
        loop
        indicators
        auto={10000}
      >
        {
          this.state.carousel.map((v, i) => (
            <li>
              <img src="" alt="" />
            </li>
          ))
        }
      </Carousel>
    )
  }
}