antd-mobile-area-data

area data for antd-mobile

Usage no npm install needed!

<script type="module">
  import antdMobileAreaData from 'https://cdn.skypack.dev/antd-mobile-area-data';
</script>

README

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)
    }
  })
}