Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 703 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 703 Bytes

v-select

it is to keep the same displaying on the ios and android

Build Setup

# install dependencies
npm install --save yh-select

# import

import vselect from 'yh-select'

# Template
<v-select name="school" v-model="school" :sel="school" :options="list" :val="val" :names="name"></v-select>

需要过滤的select 
<v-select name="school" v-model="school" :sel="school" :options="list" :val="val" :names="name" :search="true"></v-select>
v-model 值须与 sel一致
options 循环的option 数组
val 指定option的value值
names 指定option的显示文字

#style .select-wrapper开始可以修改select样式

#warn 移动端建议使用:yh-select, pc建议使用select