1.1.2 • Published 4 years ago

react-input-fbt v1.1.2

Weekly downloads
11
License
MIT
Repository
github
Last release
4 years ago

react-input-groups

  • 仿支付宝微信密码输入框 钉钉验证码输入框

  • 使用方法

    安装

    npm install react-input-groups;

    api

     1:type目前支持两种'line'和'box'
     2:length目前两种长度 4和6
     3:getValue获取组件返回值的方法

    引入

     import InputGroup from 'react-input-groups';
     import 'react-input-groups/lib/css/styles.css';
    
     export class Inputarea extends React.Component {
         constructor(props) {
             super(props);
             this.state = {
    
             };
             this.getValue = this.getValue.bind(this)
         }
         getValue(value) {
             console.log(value)
         }
         render() {
             return (
               <div>
                 <InputGroup
                     getValue={this.getValue}
                     length={4}
                     type={'box'}
                 />
                 <InputGroup
                     getValue={this.getValue}
                     length={4}
                     type={'line'}
                 />
               </div>
             );
         }
     }
1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.1.2

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago