@vant/area-data 1.2.0 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/index.cjs.js +25 -8
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +6 -6
- package/package.json +2 -2
- package/src/index.ts +6 -6
- package/lib/index.d.ts +0 -3888
- package/lib/index.js +0 -3888
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Vant Area Data
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
中国省市区数据,适用于 Vant Area 组件。
|
|
4
4
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
@@ -20,3 +20,7 @@ pnpm add @vant/area-data
|
|
|
20
20
|
```ts
|
|
21
21
|
import { areaList } from '@vant/area-data';
|
|
22
22
|
```
|
|
23
|
+
|
|
24
|
+
## 数据更新
|
|
25
|
+
|
|
26
|
+
中国的行政区划每年都会有变动,如果发现省市区数据未及时更新,欢迎提 Pull Request 帮助我们更新。
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,13 +1,29 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2
5
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
3
6
|
var __export = (target, all) => {
|
|
4
|
-
__markAsModule(target);
|
|
5
7
|
for (var name in all)
|
|
6
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
7
9
|
};
|
|
10
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
11
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(module2))
|
|
13
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
14
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
19
|
+
return (module2, temp) => {
|
|
20
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
|
+
};
|
|
22
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
8
23
|
|
|
9
24
|
// src/index.ts
|
|
10
|
-
|
|
25
|
+
var src_exports = {};
|
|
26
|
+
__export(src_exports, {
|
|
11
27
|
areaList: () => areaList
|
|
12
28
|
});
|
|
13
29
|
var areaList = {
|
|
@@ -402,7 +418,7 @@ var areaList = {
|
|
|
402
418
|
711100: "新北市",
|
|
403
419
|
711200: "宜兰县",
|
|
404
420
|
711300: "新竹县",
|
|
405
|
-
711400: "
|
|
421
|
+
711400: "桃园市",
|
|
406
422
|
711500: "苗栗县",
|
|
407
423
|
711700: "彰化县",
|
|
408
424
|
711900: "嘉义县",
|
|
@@ -521,15 +537,14 @@ var areaList = {
|
|
|
521
537
|
130471: "邯郸经济技术开发区",
|
|
522
538
|
130473: "邯郸冀南新区",
|
|
523
539
|
130481: "武安市",
|
|
524
|
-
130502: "
|
|
525
|
-
130503: "
|
|
526
|
-
|
|
540
|
+
130502: "襄都区",
|
|
541
|
+
130503: "信都区",
|
|
542
|
+
130505: "任泽区",
|
|
543
|
+
130506: "南和区",
|
|
527
544
|
130522: "临城县",
|
|
528
545
|
130523: "内丘县",
|
|
529
546
|
130524: "柏乡县",
|
|
530
547
|
130525: "隆尧县",
|
|
531
|
-
130526: "任县",
|
|
532
|
-
130527: "南和县",
|
|
533
548
|
130528: "宁晋县",
|
|
534
549
|
130529: "巨鹿县",
|
|
535
550
|
130530: "新河县",
|
|
@@ -1188,6 +1203,7 @@ var areaList = {
|
|
|
1188
1203
|
320105: "建邺区",
|
|
1189
1204
|
320106: "鼓楼区",
|
|
1190
1205
|
320111: "浦口区",
|
|
1206
|
+
320112: "江北新区",
|
|
1191
1207
|
320113: "栖霞区",
|
|
1192
1208
|
320114: "雨花台区",
|
|
1193
1209
|
320115: "江宁区",
|
|
@@ -3898,3 +3914,4 @@ var areaList = {
|
|
|
3898
3914
|
820204: "圣方济各堂区"
|
|
3899
3915
|
}
|
|
3900
3916
|
};
|
|
3917
|
+
module.exports = __toCommonJS(src_exports);
|
package/dist/index.d.ts
CHANGED
|
@@ -511,13 +511,12 @@ export declare const areaList: {
|
|
|
511
511
|
130481: string;
|
|
512
512
|
130502: string;
|
|
513
513
|
130503: string;
|
|
514
|
-
|
|
514
|
+
130505: string;
|
|
515
|
+
130506: string;
|
|
515
516
|
130522: string;
|
|
516
517
|
130523: string;
|
|
517
518
|
130524: string;
|
|
518
519
|
130525: string;
|
|
519
|
-
130526: string;
|
|
520
|
-
130527: string;
|
|
521
520
|
130528: string;
|
|
522
521
|
130529: string;
|
|
523
522
|
130530: string;
|
|
@@ -1176,6 +1175,7 @@ export declare const areaList: {
|
|
|
1176
1175
|
320105: string;
|
|
1177
1176
|
320106: string;
|
|
1178
1177
|
320111: string;
|
|
1178
|
+
320112: string;
|
|
1179
1179
|
320113: string;
|
|
1180
1180
|
320114: string;
|
|
1181
1181
|
320115: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -391,7 +391,7 @@ var areaList = {
|
|
|
391
391
|
711100: "新北市",
|
|
392
392
|
711200: "宜兰县",
|
|
393
393
|
711300: "新竹县",
|
|
394
|
-
711400: "
|
|
394
|
+
711400: "桃园市",
|
|
395
395
|
711500: "苗栗县",
|
|
396
396
|
711700: "彰化县",
|
|
397
397
|
711900: "嘉义县",
|
|
@@ -510,15 +510,14 @@ var areaList = {
|
|
|
510
510
|
130471: "邯郸经济技术开发区",
|
|
511
511
|
130473: "邯郸冀南新区",
|
|
512
512
|
130481: "武安市",
|
|
513
|
-
130502: "
|
|
514
|
-
130503: "
|
|
515
|
-
|
|
513
|
+
130502: "襄都区",
|
|
514
|
+
130503: "信都区",
|
|
515
|
+
130505: "任泽区",
|
|
516
|
+
130506: "南和区",
|
|
516
517
|
130522: "临城县",
|
|
517
518
|
130523: "内丘县",
|
|
518
519
|
130524: "柏乡县",
|
|
519
520
|
130525: "隆尧县",
|
|
520
|
-
130526: "任县",
|
|
521
|
-
130527: "南和县",
|
|
522
521
|
130528: "宁晋县",
|
|
523
522
|
130529: "巨鹿县",
|
|
524
523
|
130530: "新河县",
|
|
@@ -1177,6 +1176,7 @@ var areaList = {
|
|
|
1177
1176
|
320105: "建邺区",
|
|
1178
1177
|
320106: "鼓楼区",
|
|
1179
1178
|
320111: "浦口区",
|
|
1179
|
+
320112: "江北新区",
|
|
1180
1180
|
320113: "栖霞区",
|
|
1181
1181
|
320114: "雨花台区",
|
|
1182
1182
|
320115: "江宁区",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vant/area-data",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Vant 省市区数据",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"author": "chenjiahan",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"esbuild": "^0.
|
|
30
|
+
"esbuild": "^0.14.21",
|
|
31
31
|
"release-it": "^14.2.2",
|
|
32
32
|
"typescript": "~4.5.2"
|
|
33
33
|
},
|
package/src/index.ts
CHANGED
|
@@ -390,7 +390,7 @@ export const areaList = {
|
|
|
390
390
|
711100: '新北市',
|
|
391
391
|
711200: '宜兰县',
|
|
392
392
|
711300: '新竹县',
|
|
393
|
-
711400: '
|
|
393
|
+
711400: '桃园市',
|
|
394
394
|
711500: '苗栗县',
|
|
395
395
|
711700: '彰化县',
|
|
396
396
|
711900: '嘉义县',
|
|
@@ -509,15 +509,14 @@ export const areaList = {
|
|
|
509
509
|
130471: '邯郸经济技术开发区',
|
|
510
510
|
130473: '邯郸冀南新区',
|
|
511
511
|
130481: '武安市',
|
|
512
|
-
130502: '
|
|
513
|
-
130503: '
|
|
514
|
-
|
|
512
|
+
130502: '襄都区',
|
|
513
|
+
130503: '信都区',
|
|
514
|
+
130505: '任泽区',
|
|
515
|
+
130506: '南和区',
|
|
515
516
|
130522: '临城县',
|
|
516
517
|
130523: '内丘县',
|
|
517
518
|
130524: '柏乡县',
|
|
518
519
|
130525: '隆尧县',
|
|
519
|
-
130526: '任县',
|
|
520
|
-
130527: '南和县',
|
|
521
520
|
130528: '宁晋县',
|
|
522
521
|
130529: '巨鹿县',
|
|
523
522
|
130530: '新河县',
|
|
@@ -1176,6 +1175,7 @@ export const areaList = {
|
|
|
1176
1175
|
320105: '建邺区',
|
|
1177
1176
|
320106: '鼓楼区',
|
|
1178
1177
|
320111: '浦口区',
|
|
1178
|
+
320112: '江北新区',
|
|
1179
1179
|
320113: '栖霞区',
|
|
1180
1180
|
320114: '雨花台区',
|
|
1181
1181
|
320115: '江宁区',
|