1.1.1 • Published 8 years ago

vue-address-picker v1.1.1

Weekly downloads
107
License
-
Repository
github
Last release
8 years ago

vue-address-picker

基于vue2的省市区三级联动组件

安装

npm  i  vue-address-picker  --save

导入

import Vue from 'Vue'
import addressPicker from 'vue-address-picker'

Vue.use(addressPicker)

在组件中使用

<address-picker :opts="obj" v-model="address"></address-picker>

父组件通过绑定v-model(或者手动监听input事件)获取选值。

opts参数对象属性表

属性描述类型默认
noDistrict不显示区选项(只要省市)Booleanfalse
noLabel不显示labelBooleanfalse
label自定义labelobject{province: '省',city:'市',district:'区'}
default默认选项object{province: '',city:'',district:''}

例: obj: { label: { province: '所在省', city: '所在市', district: '' }, default: { province: '河南', city: '平顶山', district: '湛河区' }, noLabel: true }

License

(The MIT License)

Copyright (c) 2016 gaoge <314013991@qq.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

1.1.1

8 years ago

1.1.0

8 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago