Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vant/area-data

Package Overview
Dependencies
Maintainers
6
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vant/area-data

Vant 省市区数据

  • 1.5.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
6
Weekly downloads
 
Created
Source

Vant China Area Data

中国省市区数据,适用于 Vant 的 Area 和 Cascader 等组件。

安装

# 通过 npm
npm i @vant/area-data

# 通过 yarn
yarn add @vant/area-data

# 通过 pnpm
pnpm add @vant/area-data

使用

在 Vant 的 Area 组件中使用时,直接引用 areaList 对象即可:

import { areaList } from '@vant/area-data';

在 Vant 的 Cascader 组件中使用时,请使用 useCascaderAreaData 方法:

import { useCascaderAreaData } from '@vant/area-data';

const cascaderAreaData = useCascaderAreaData();

数据更新

中国的行政区划每年都会有变动,如果发现省市区数据未及时更新,欢迎提 Pull Request 帮助我们更新。你可以在「国家统计局 - 全国区划代码」「民政部 - 行政区划代码」上查询到最新数据,请根据官方数据进行核实。

FAQs

Package last updated on 29 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc