0.0.15 • Published 6 years ago

@beisen/upaas-location-select v0.0.15

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
6 years ago

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 (

  <div>
  	  <App {...data} {...this.state}/>
  </div>
)

} } render(, document.getElementById('content'))

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago