feat: add @vant/area-data package (#8490)
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
# Vant Area Data
|
||||||
|
|
||||||
|
省市区数据,适用于 Vant Area 组件。
|
||||||
|
|
||||||
|
## 安装
|
||||||
|
|
||||||
|
#### NPM
|
||||||
|
|
||||||
|
```shell
|
||||||
|
npm i @vant/area-data -D
|
||||||
|
```
|
||||||
|
|
||||||
|
#### YARN
|
||||||
|
|
||||||
|
```shell
|
||||||
|
yarn add @vant/area-data --dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## 使用
|
||||||
|
|
||||||
|
```ts
|
||||||
|
import { areaList } from '@vant/area-data';
|
||||||
|
```
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"name": "@vant/area-data",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "Vant 省市区数据",
|
||||||
|
"main": "lib/index.js",
|
||||||
|
"publishConfig": {
|
||||||
|
"access": "public",
|
||||||
|
"registry": "https://registry.npmjs.org/"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"build": "tsc",
|
||||||
|
"release": "yarn build && npm publish"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"repository": "https://github.com/youzan/vant"
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "ES2019",
|
||||||
|
"outDir": "./lib",
|
||||||
|
"module": "commonjs",
|
||||||
|
"strict": true,
|
||||||
|
"declaration": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"lib": ["esnext"]
|
||||||
|
},
|
||||||
|
"include": ["src/**/*"]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user