Code Monkey home page Code Monkey logo

react-ui's Introduction

A collection of components for React. 文档 戳这里

使用

  • 直接引用

在线生成需要的组件,在页面中引用即可。(注意需要先引用 react 和 es5-shim

<script src="js/es5-shim.min.js"></script>
<script src="js/react.js"></script>
<script src="js/ReactUI.js"></script>
  • npm install
npm install rctui
var ReactUI = require('rctui')
var Form = ReactUI.Form
...
// 或者单独使用一个组件
var Input = require('rctui/Input')
var CheckboxGroup = require('rctui/CheckboxGroup')
var FormControl = require('rctui/FormControl')

build

使用 webpack 打包,可以修改 'src/js/index.js' 自定义需要的组件。

docs:    webpack --config webpack-docs.config.js [--min]
publish: webpack --config webpack-publish.config.js [--min]

Components

目前完成的组件,后续应该会不断加入新的组件

Change log

v0.4.0

  • 结构重新调整
  • 拆分Lang

v0.3.5

  • css 去除 local,使用 rct- 前缀
  • 加入 Upload

v0.3.4

  • 加入Modal
  • Message 改为动态创建

v0.3.3

  • Table, Tree的checkAble属性改为selectAble
  • 加入 Filter

v0.3.1

  • 加入Table
  • dataSource改为promise方式

v0.3.0

  • Component全部改为es6形式
  • grids的css改用js动态生成
  • 剥离需要服务端数据的Component内置ajax调用,改用dataSource实现
  • 移除全部Mixins,使用Higher Order

v0.2.3

v0.2.2

  • 使用webpack打包,减少体积,去除了 Refluxsuperagent 依赖。
  • 放弃bootstrap,使用yahoo/pure。
  • 在webpack中使用了babel-loader,所以用了部分es6语法,参考 babel 的文档,没有使用需要 polyfill 支持的部分(因为需要额外引入45KB左右的 polyfill 包)。不要忘记在页面中加入 es5-shim 引用。

react-ui's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

roselind

react-ui's Issues

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet.
We recommend using:

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

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.