breeze-vue-select
v1.0.0
Published
Vue custom select components,support search function.
Downloads
39
Readme
BreezeSelect
This is a vue select component.
Install
Use npm to download code:
npm install breeze-vue-select --save
import it into your project.
import BreezeSelectTemplate from 'breeze-vue-select'
Usage
import BreezeSelectTemplate from 'breeze-vue-select'
export default {
data() {
return {
data: [
{
text: '选项1',
value: 1
}, {
text: '选项2',
value: 2
}
]
}
},
methods: {
change(value) {
console.log(value)
}
},
components: {
BreezeSelectTemplate
}
}
Props
| Prop | Type | Default | Description | |-------------------|----------|----------|-------------------------------------| | data | Array | 空 | drop-drown box option data | | width | Number | 120 | drop-drown box width | | placeholder | String | 请选择 | drop-drown box placeholder | | placeholderSearch | String | 查找内容 | drop-drown box placeholder | | selectAllText | String | 空 | full selection button text | | search | Boolean | false | whether the search box is displayed | | multiple | Boolean | false | whether multi selection | | callbackChange | Function | 空函数 | change callback function |