Coder Social home page Coder Social logo

knarf7112 / react-yui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from forthealllight/react-yui

0.0 1.0 0.0 198 KB

一个简易的React组件库,包含日期、日历、关联选择、树形列表、下拉选框、多级联动、提示等等。

JavaScript 59.77% CSS 40.05% HTML 0.18%

react-yui's Introduction

react-yui

是一个简易的React组件库,包含了常用的Select、CheckBox、 InputNumber、DatePicker等等。

安装

npm install -s react-yui

使用

import React from 'react'
import {DatePicker} from 'react-yui'
class Demo extends from React.Component{
   render(){
     return <DatePicker format={"yyyy-MM-dd"} mode={"day"}
     date={"2012-12-12"} onSelect={function(x){console.log(x)}}/>
   }
}

示例

react-yui在每一个组件的源代码中都提供了示例,可以查看

./src/components/datePicker/demo

文件夹下的index.md查看配置项,以及code.md查看如果使用的示例。

应用举例

  1. 关联选择

关联选择

  1. 日历选项

日历

  1. 日期选项

日期

  1. 日期选项(月) 此处输入图片的描述

更多组件,敬请期待

react-yui's People

Contributors

forthealllight avatar

Watchers

 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.