Package Exports
- dwb-city
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dwb-city) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Dwb-City
Install
npm i dwb-city --saveMount
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