0.0.15 • Published 6 years ago

dwb-city v0.0.15

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Dwb-City

npm.io npm.io npm.io npm.io

Install

npm i dwb-city --save

Mount

mount with global

import Vue from 'vue'
import City from 'dwb-city'

Vue.use(City)

mount with component

import { dwbCity } from 'dwb-city'

export default {
  components: {
    dwbCity
  }
}

Use

<dwb-city v-model="show"
      :data="cityData"
      :city="city"
      ref="city"
      @change="getData"/>
data () {
  return {
    cityData: [CITY JSON], // 省市区json 不传默认引入
    show: [True/False],
    city: [110000, 110100, 110112]
  }
}
// set Data Method or
this.$refs.city.setCurr(this.city)

Example

npm install

npm run dev

[Dwb City]

Author

[Dengwb]

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago