mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-13 08:32:26 +03:00
@@ -1,5 +1,9 @@
|
||||
<template>
|
||||
<v-select :options="paginated" :filterable="false" @search="onSearch">
|
||||
<v-select
|
||||
:options="paginated"
|
||||
:filterable="false"
|
||||
@search="(query) => (search = query)"
|
||||
>
|
||||
<li slot="list-footer" class="pagination">
|
||||
<button :disabled="!hasPrevPage" @click="offset -= limit">Prev</button>
|
||||
<button :disabled="!hasNextPage" @click="offset += limit">Next</button>
|
||||
|
||||
@@ -188,11 +188,11 @@
|
||||
v-bind="configuration"
|
||||
placeholder="country objects, using option scoped slots"
|
||||
>
|
||||
<template slot="selected-option" slot-scope="option">
|
||||
{{ option.label }} -- {{ option.value }}
|
||||
<template slot="selected-option" slot-scope="{ label, value }">
|
||||
{{ label }} -- {{ value }}
|
||||
</template>
|
||||
<template slot="option" slot-scope="option">
|
||||
{{ option.label }} ({{ option.value }})
|
||||
<template slot="option" slot-scope="{ label, value }">
|
||||
{{ label }} ({{ value }})
|
||||
</template>
|
||||
</v-select>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user