@vant/area-data
Advanced tools
Comparing version 1.3.2 to 1.4.0
{ | ||
"name": "@vant/area-data", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"description": "Vant 省市区数据", | ||
@@ -14,2 +14,3 @@ "main": "dist/index.cjs.js", | ||
}, | ||
"sideEffects": false, | ||
"files": [ | ||
@@ -40,5 +41,6 @@ "dist" | ||
"devDependencies": { | ||
"esbuild": "^0.14.29", | ||
"release-it": "^15.1.1", | ||
"typescript": "^4.7.4" | ||
"esbuild": "^0.16.10", | ||
"release-it": "^15.4.1", | ||
"rimraf": "^4.0.4", | ||
"typescript": "^4.8.2" | ||
}, | ||
@@ -45,0 +47,0 @@ "release-it": { |
@@ -1,4 +0,4 @@ | ||
# Vant Area Data | ||
# Vant China Area Data | ||
中国省市区数据,适用于 Vant Area 组件。 | ||
中国省市区数据,适用于 Vant 的 Area 和 Cascader 等组件。 | ||
@@ -20,2 +20,4 @@ ## 安装 | ||
在 Vant 的 Area 组件中使用时,直接引用 `areaList` 对象即可: | ||
```ts | ||
@@ -25,4 +27,12 @@ import { areaList } from '@vant/area-data'; | ||
在 Vant 的 Cascader 组件中使用时,请使用 `useCascaderAreaData` 方法: | ||
```ts | ||
import { useCascaderAreaData } from '@vant/area-data'; | ||
const cascaderAreaData = useCascaderAreaData(); | ||
``` | ||
## 数据更新 | ||
中国的行政区划每年都会有变动,如果发现省市区数据未及时更新,欢迎提 Pull Request 帮助我们更新。 | ||
中国的行政区划每年都会有变动,如果发现省市区数据未及时更新,欢迎提 Pull Request 帮助我们更新。你可以在[「国家统计局 - 全国区划代码」](http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/) 和[「民政部 - 行政区划代码」](https://www.mca.gov.cn/article/sj/xzqh/1980/)上查询到最新数据,请根据官方数据进行核实。 |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37
211041
4
7882