@beisen/upaas-location-select

import React, {Component, PropTypes} from 'react' import {render} from 'react-dom' import AreaCode from './locationData.js' import App from './src/index.js';

Stats

StarsIssuesVersionUpdatedCreatedSize
@beisen/upaas-location-select
0.0.153 years ago4 years agoMinified + gzip package size for @beisen/upaas-location-select in KB

Readme

import React, {Component, PropTypes} from 'react' import {render} from 'react-dom' import AreaCode from './locationData.js' import App from './src/index.js';

class Demo extends Component{

constructor (props) { super(props) this.state = { text: '', value: '' } }

render () { let self = this let data = { singleSelect: true, areaCode: AreaCode, title: '地区选择', placeholder: 'fsdfsf', required: true, readonly: false, disabled: false, errorStatus: true, errorMsg: 'sfsf', helpMsg: 'sfsf', showText: 'fsdf', text: '', value: '', status: 'edit', onChange: (val) => { console.info(val, 'onchange') self.setState({ text: val.text, value: val.value }) } } return (

<App {...data} {...this.state}/>
) } } render(, document.getElementById('content'))

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.