A Vue.js project
# install dependencies
npm install lyh-select --save
# import method main.js
import lyhselect from 'lyh-select'
Vue.use(lyhselect)
<npm-Progrem @selectresult="getvalue" :selectoption="optionList" :width='300' :showBoxStyle="{fontSize:'19px'}"></npm-Progrem>
# 选项列表
selectoption
# 获取结果
selectresult
# 整个下拉框的宽度
width
# 展示框的样式
showBoxStyle
For a detailed explanation on how things work, check out the guide and docs for vue-loader.