vue组件 iview_基于Vue和iView-UI组件的区域链接组件

iview-area是一个基于Vue和iView-UI的组件,提供中国省市区街道的数据。通过安装、配置,可在项目中使用。配置选项包括选择器的数据类型,如'all'、'name'、'code',并有处理默认值的规则。
摘要由CSDN通过智能技术生成

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
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值