Giter Site home page Giter Site logo

react-wenui's Introduction

朱博文的React-UI组件

Lazyload 图片懒加载

<LazyLoad imgList={imgList} />

Grid 栅格

import Grid from '../../components/Grid';

const Row = Grid.Row;
const Col = Grid.Col;

// 基础用法
<Row>
  <Col span={12}>col-12</Col>
  <Col span={12}>col-12</Col>
</Row>

// flex 布局 offset 偏移
<Row type="flex" justify="space-around">
  <Col span={6} offset={6}>col-6</Col>
  <Col span={6}>col-6</Col>
</Row>

// 区块间隔
<Row gutter={16}>
  <Col span={6}>col-6</Col>
  <Col span={6}>col-6</Col>
  <Col span={6}>col-6</Col>
  <Col span={6}>col-6</Col>
</Row>

Pagination 分页

<Pagination
  sizeChange={[20, 10, 50]} // 更改每页条数
  defaultCurrent={1} // 默认第几页
  total={990} // 总条数
  pageSize={20} // 每页多少条
  onChange={this.pageChange.bind(this)} />

Progress 进度条

// 基于 svg 的进度条组件 percentage 进度 color 颜色

// 环形进度条 type
<Progress type="circle" percentage={80} color="#1890ff" />

// 自定义宽度 width
<Progress type="circle" percentage={60} color="orange" width={300} />
  
// 直线形进度条    
<Progress percentage={100} color="#ff520e" />
    
// 自定义宽度 width   
<Progress percentage={40} color="skyblue" width={500} />

持续更新中...

react-wenui's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.