# v-region **Repository Path**: geekcheng_admin/v-region ## Basic Information - **Project Name**: v-region - **Description**: 基于 Vue2 的简洁、易用的中国行政区划选择器 - **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-06-14 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

v-region



v-region

基于 Vue2 的简洁、易用的中国行政区划选择器






## 实例、文档 请浏览 - [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 |

## 插件预览 *常规表单模式* ![base](https://terryz.gitee.io/image/v-region/v-region-base.png) *选择器模式* ![ui](https://terryz.gitee.io/image/v-region/v-region-ui.png) ## 安装插件 ``` bash npm install v-region --save ``` 在入口文件 `main.js` 中导入插件 ```js import Vue from 'vue' import vRegion from 'v-region'; Vue.use(vRegion); ``` ## 在你的页面中使用(基础模式) template code ```html ``` script code ```js export default { methods:{ //receive selected region data regionChange(data){ console.log(data); } } }; ``` ## Data Source region data com from repo: [mumuy/data_location](https://github.com/mumuy/data_location)