Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 494 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 494 Bytes

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