# vue-address-tky

> vue-address

Latest version **1.0.8** (published 2017-12-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-address-tky
pnpm add vue-address-tky
yarn add vue-address-tky
bun add vue-address-tky
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2017-12-08 |
| First published | 2017-12-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | leeshimin |
| Maintainers | leeshimin |
| Keywords | select, vue, custom, flexible, flexible select, vue select, dropdown, vue.js, vuejs, vue2, select2, ui, component |

## Links

- npm: https://www.npmjs.com/package/vue-address-tky
- Repository: https://github.com/Young1993/vue-address
- Homepage: https://github.com/Young1993/vue-address#readme
- Issues: https://github.com/Young1993/vue-address/issues
- npm.io page: https://npm.io/package/vue-address-tky

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.3.3
- [stf-vue-select](https://npm.io/package/stf-vue-select.md) ^0.1.6

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@mesalvo/react-ui](https://npm.io/package/@mesalvo/react-ui.md) — 1.7K weekly downloads

## Recent versions

- 1.0.8 (latest) — 2017-12-08
- 1.0.7 — 2017-12-08
- 1.0.6 — 2017-12-08
- 1.0.5 — 2017-12-07
- 1.0.4 — 2017-12-07
- 1.0.2 — 2017-12-07
- 1.0.1 — 2017-12-07
- 1.0.0 — 2017-12-07

## README

# vue-address

> 多级联动地址选择器


## install

>npm install vue-address-tky --save

## import

```js
import vueAddress from 'vue-address-tky'
import "vue-select/lib/vue-address.min.css";
...

Vue.component('vue-address-tky', vueAddress)
```

## usage

```html
<template>
  <div id="app">
    <img src="./assets/logo.png">
    <x-address @change="selectAddress"  @close="closeMask"></x-address>
    <div id="address" v-text="selectedAddress"></div>
  </div>
</template>

<script>
import xAddress from 'vue-address-tky'

export default {
  name: 'app',
  components: {
    xAddress
  },
  data: () => {
    return {
        selectedAddress: ''
    }
  },
  methods: {
    selectAddress(province, city, detail) {
        this.selectedAddress = `${province}, ${city}, ${detail}`
    }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
```

## 特别感谢

+   [Administrative-divisions-of-China](https://github.com/modood/Administrative-divisions-of-China) 中国行政区划数据：省份、城市、区县、乡镇，省市区镇三级四级联动。
+   [vue-address](https://github.com/WebCodeFarmer/vue-address) 多级联动地址选择器

---
_Source: https://npm.io/package/vue-address-tky · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
