基于 Vue2 的中国行政区划选择器 v-region
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://terryz.gitee.io/vue/#/region
- 软件文档: https://terryz.gitee.io/vue/#/region
软件介绍
v-region
基于 Vue2 的简洁、易用的中国行政区划选择器,包含常规表单下拉列表模式和UI下拉选择器模式;支持 “省/直辖市”-“市”-“区/县”-“乡/镇/街道”4级行政级别
实例、文档
插件预览
基础表单模式
选择器模式
安装插件
npm install v-region --save
在入口文件 main.js 中导入插件
import Vue from 'vue' import vRegion from 'v-region'; Vue.use(vRegion);
在你的页面中使用(基础模式)
template code
<template> <v-region @values="regionChange" class="form-control"></v-region> </template>
script code
export default {
methods:{
//receive selected region data
regionChange(data){
console.log(data);
}
}
};Data Source
region data com from repo: mumuy/data_location
Automate This
Christopher Steiner / Portfolio / 2013-8-9 / USD 25.95
"The rousing story of the last gasp of human agency and how today's best and brightest minds are endeavoring to put an end to it." It used to be that to diagnose an illness, interpret legal docume......一起来看看 《Automate This》 这本书的介绍吧!
