vue组件 iview
iview区域 (iview-area)
An area-linkage-component bases on Vue and iView-UI components, data include China's provinces (municipalities), cities, counties and streets.
基于Vue和iView-UI组件的区域链接组件,数据包括中国的省(市),市,县和街道。
安装 (install)
npm install iview-area --save
用 (use)
write follow code in main.js
在main.js中编写关注代码
import iviewArea from 'iview-area';
import Vue from 'vue';
Vue.use(iviewArea);
and then, you can use iview-area anywhere
然后,您可以在任何地方使用iview-area
<template>
<al-selector v-model="res_s"/>
<al-cascader v-model="res_c"/>
</template>
<script>
export default {
data () {
return {
res_s: [],
res_c: []
}
}
}
</script>
配置 (config)
选择器: (al-selector:)
props | note | type | default |
---|---|---|---|
value | Array for storing results, it is recommended to use the v-model | none | none |
v-model | Array used to |