2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-19 09:50:33 +03:00

- move gitbook files into their own folder at docs/gitbook

- rebuild homepage at `docs/homepage`
This commit is contained in:
Jeff
2018-01-13 15:11:17 -08:00
parent 022f6e8874
commit 0d62251558
40 changed files with 6031 additions and 265 deletions
+28
View File
@@ -0,0 +1,28 @@
```html
<v-select
:debounce="250"
:on-search="getOptions"
:options="options"
placeholder="Search GitHub Repositories..."
label="full_name"
>
</v-select>
```
```js
data() {
return {
options: null
}
},
methods: {
getOptions(search, loading) {
loading(true)
this.$http.get('https://api.github.com/search/repositories', {
q: search
}).then(resp => {
this.options = resp.data.items
loading(false)
})
}
}
```