0.1.3 • Published 4 years ago

vue-areacode-components v0.1.3

Weekly downloads
16
License
-
Repository
-
Last release
4 years ago

vue-areacode-components

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

下载

npm i vue-areacode-components

使用

在main.js文件中 

import vueAreacodeComponents from 'vue-areacode-components'
Vue.use(vueAreacodeComponents)

在要使用的组件中
<area-code 
    :styelData="styelData" 
    :listStyle="listStyle" 
    @selectChange="selectChange"></area-code>


styelData是样式参数必须是Object类型  例如

    styelData: {
        width: "100px",
        height: "35px"
    },

listStyle是下拉菜单的样式参数必须是Object类型  例如

    listStyle: {
        width: "200px",
        height: "300px"
    }

selectChange是监听选择完毕后返回选中的数据事件
   
    selectChange(value) {
        console.log(value);
    }

Customize configuration

See Configuration Reference.

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago