1.3.0 • Published 4 years ago

my-city-picker v1.3.0

Weekly downloads
5
License
-
Repository
-
Last release
4 years ago

用法:

  • 安装: npm i vue-city-picker

  • 使用:

<template>

	<city-picker @select="haha" pindex="1"><city-picker>

</template>

<script>
	methods:{
		haha:function(d){
			console.log(d);
		}
	}	
</script>	

说明:

  1. 默认的省市区对应的属性:pindex,cindex,ccindex,对应的是选择后 pro,city,county 中的 index 的值
  2. 如果后端需要对应的数据的话,可以使用 这个文件

demo 请下载后运行:网址