# v-region **Repository Path**: almin/v-region ## Basic Information - **Project Name**: v-region - **Description**: 基于 Vue2 的简洁、易用的中国行政区划选择器,支持“省/直辖市”、“市”、“区/县”、“乡/镇/街道” 4级行政区域级别 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: https://terryz.gitee.io/vue/#/region - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 70 - **Created**: 2018-11-14 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

v-region



v-region

A simple region selector for Vue2, provide Chinese administrative division data






## Demo、Document、Changelog Explorer on - [English site](https://terryz.github.io/vue/#/region) - [国内站点](https://terryz.gitee.io/vue/#/region)

## Vue plugin series | Plugin | Status | Description | | :---------------- | :-- | :-- | | [v-page](https://github.com/TerryZ/v-page) | [![npm version](https://img.shields.io/npm/v/v-page.svg)](https://www.npmjs.com/package/v-page) | A simple pagination bar, including length Menu, i18n support | | [v-dialogs](https://github.com/TerryZ/v-dialogs) | [![npm version](https://img.shields.io/npm/v/v-dialogs.svg)](https://www.npmjs.com/package/v-dialogs) | A simple and powerful dialog, including Modal, Alert, Mask and Toast modes | | [v-tablegrid](https://github.com/TerryZ/v-tablegrid) | [![npm version](https://img.shields.io/npm/v/v-tablegrid.svg)](https://www.npmjs.com/package/v-tablegrid) | A simpler to use and practical datatable | | [v-uploader](https://github.com/TerryZ/v-uploader) | [![npm version](https://img.shields.io/npm/v/v-uploader.svg)](https://www.npmjs.com/package/v-uploader) | A Vue2 plugin to make files upload simple and easier,
you can drag files or select file in dialog to upload | | [v-ztree](https://github.com/TerryZ/v-ztree) | [![npm version](https://img.shields.io/npm/v/v-ztree.svg)](https://www.npmjs.com/package/v-ztree) | A simple tree for Vue2, support single or multiple(check) select tree,
and support server side data | | [v-gallery](https://github.com/TerryZ/v-gallery) | [![npm version](https://img.shields.io/npm/v/v-gallery.svg)](https://www.npmjs.com/package/v-gallery) | A Vue2 plugin make browsing images in gallery | | [v-region](https://github.com/TerryZ/v-region) | [![npm version](https://img.shields.io/npm/v/v-region.svg)](https://www.npmjs.com/package/v-region) | A simple region selector, provide Chinese administrative division data | | [v-selectpage](https://github.com/TerryZ/v-selectpage) | [![npm version](https://img.shields.io/npm/v/v-selectpage.svg)](https://www.npmjs.com/package/v-selectpage) | A powerful selector for Vue2, list or table view of pagination,
use tags for multiple selection, i18n and server side resources supports |

## Plugin preview *form element mode* ![base](https://terryz.github.io/image/v-region/v-region-base.png) *dropdown selector mode* ![ui](https://terryz.github.io/image/v-region/v-region-ui.png)

## Install ``` bash npm install v-region --save ``` Include plugin in your `main.js` file. ```js import Vue from 'vue' import vRegion from 'v-region'; Vue.use(vRegion); ``` ## Deploy on your component(base mode) template code ```html ``` script code ```js export default { methods:{ //receive selected region data regionChange(data){ console.log(data); } } }; ``` ## Data Source region data come from repo: [mumuy/data_location](https://github.com/mumuy/data_location)