Skip to content

h2570206577/taro-region-picker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

taro-region-picker

Taro省市区选择器

  • H5、微信小程序、百度小程序、字节跳动小程序
    使用多列选择器实现
  • 支付宝小程序
    使用支付宝小程序API:my.multiLevelSelect 实现

例子

// src/pages/index/index.js
import Taro, { Component } from '@tarojs/taro'
import { View } from '@tarojs/components'

import TaroRegionPicker from '../../components/taro-region-picker'

export default class Index extends Component {
  onGetRegion (region) {
    // 参数region为选择的省市区
    console.log(region);
  }

  render () {
    return (
      <View>
        <TaroRegionPicker onGetRegion={this.onGetRegion.bind(this)} />
      </View>
    )
  }
}

About

Taro省市区选择器

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.7%
  • CSS 0.3%