## Project setup ``` npm install ```
npm install vue-areacode-components
npm install
`$3
`
npm run serve
`$3
`
npm run build
`$3
`
npm run lint
`
$3
`
npm i vue-areacode-components
`
使用
`
在main.js文件中 import vueAreacodeComponents from 'vue-areacode-components'
Vue.use(vueAreacodeComponents)
在要使用的组件中
:styelData="styelData"
:listStyle="listStyle"
@selectChange="selectChange">
styelData是样式参数必须是Object类型 例如
styelData: {
width: "100px",
height: "35px"
},
listStyle是下拉菜单的样式参数必须是Object类型 例如
listStyle: {
width: "200px",
height: "300px"
}
selectChange是监听选择完毕后返回选中的数据事件
selectChange(value) {
console.log(value);
}
``