0.1.18 • Published 3 years ago

vue-amazing-selecter v0.1.18

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

vue-amazing-select

安装插件

npm install vue-amazing-selecter
或:yarn add vue-amazing-selecter

引入并注册插件

import Vue from 'vue'
import VueAmazingSelecter from 'vue-amazing-selecter'
import 'vue-amazing-selecter/lib/selecter.css' // 引入样式
Vue.use(VueAmazingSelecter)

基本用法示例

<VueAmazingSelecter
  :selectData="selectData"
  :selValue="selValue"
  name="name"
  value="value"
  placeholder="请选择城市"
  :disabled="false"
  :width="160"
  :num="6"
  @getValue="getValue"
/>

Props

属性说明类型默认值
selectData下拉列表数据Array[]
selValue下拉列表默认选中String/Numberundefined
name下拉列表每项的key名称Stringname
value下拉列表每项的value名称Stringvalue
placeholder下拉框的placeholderString请选择
disabled是否禁用Booleanfalse
width下拉框的宽度Number200
num下拉列表最多展示的条数Number8

Events

事件名说明返回值
getValue选择某项下拉后的回调函数name, value, index(key值,value值,索引值)
0.1.18

3 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago