nuke-biz-address-picker
v1.0.6
Published
address-picker
Downloads
17
Readme
AddressPicker
地址选择器,支持静态调用
组件占地 750 x 600
API
// 安装
tnpm install nuke-biz-address-picker --save;
import AddressPicker from 'nuke-biz-address-picker';
class Demo extends Component {
constructor() {
super();
this.onSelect = this.onSelect.bind(this);
this.selectAddress = this.selectAddress.bind(this);
}
selectAddress(){
AddressPicker.show({
onSelect: this.onSelect
});
}
onSelect(addr){
AddressPicker.hide();
console.log(addr[0].n , addr[1].n , addr[2].n);
}
render() {
return (
<Button onPress={this.selectAddress} type="primary" block>
选择地址
</Button>
);
}
};