Skip to content

sishuguojixuefu/antd-mobile-area-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

antd-mobile-area-data

安装

$ yarn add antd-mobile-area-data

使用

import { pc, pca, pcas } from 'antd-mobile-area-data'
  • pc:二级联动
  • pca:三级联动
  • pcas:四级联动

label == value

function handleData(datas) {
  datas.forEach(item => {
    item.value = item.label
    if (item.children) {
      this.handleData(item.children)
    }
  })
}

数据来源

感谢 https://github.com/modood/Administrative-divisions-of-China

Releases

No releases published

Packages

No packages published