2.0.12 • Published 11 months ago

znui-react-form v2.0.12

Weekly downloads
2
License
MIT
Repository
github
Last release
11 months ago

znui-react-form

Form Component.

npm npm

Demo

Take a look at the demo

Installation

npm install znui-react-form -s

Usage

var ReactDOM = require('react-dom');
var form = require('znui-react-form');

var inputs = require('znui-react-input');
var selector = require('znui-react-selector');


znui.react.createApplication({
    render: <div className="form-container">
        <form.Form data={[
            { label: '姓名', name: 'name', input: inputs.Input },
            { label: '学校', name: 'school', input: selector.Select, data: [ { value: 1, text: 'A'}, { value: 2, text: 'B'} ] },
            { label: '兴趣', name: 'hos', input: selector.Checkboxs, value: [1], data: [ { value: 1, text: 'A'}, { value: 2, text: 'B'} ] },
            { label: '性别', name: 'sex', input: selector.Radio, value: 1, data: [ { value: 1, text: 'A'}, { value: 2, text: 'B'} ] }
        ]} />
    </div>
});

License

MIT

2.0.12

11 months ago

2.0.11

3 years ago

2.0.10

4 years ago

2.0.9

4 years ago

2.0.8

4 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.2

4 years ago