mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-13 08:32:26 +03:00
merge master, resolve upstream conflicts
This commit is contained in:
+30
-4
@@ -1,8 +1,28 @@
|
||||
<template>
|
||||
<div id="app" class="font-sans px-5 py-5">
|
||||
<v-select :options="countries"/>
|
||||
<!-- <ListSelect :options="countries" />-->
|
||||
<!-- <paginated />-->
|
||||
<v-select v-bind="jest" />
|
||||
<!-- <ListSelect :options="countries" />-->
|
||||
<!-- <paginated />-->
|
||||
|
||||
<!-- <v-select multiple :options="books" label="title">-->
|
||||
<!-- <template #selected-option="selected">-->
|
||||
<!-- <span :class="selected.bindings.class">-->
|
||||
<!-- {{ selected.title }} {{ selected.author.firstName }} {{ selected.author.lastName }}-->
|
||||
<!-- <component-->
|
||||
<!-- ref="deselectButtons"-->
|
||||
<!-- :is="selected.deselect.component"-->
|
||||
<!-- v-if="selected.deselect.bindings.multiple"-->
|
||||
<!-- v-bind="selected.deselect.bindings"-->
|
||||
<!-- v-on="selected.deselect.events"-->
|
||||
<!-- />-->
|
||||
<!-- </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- <template #option="{ title, author, attributes, events }">-->
|
||||
<!-- <li v-bind="attributes" v-on="events">{{ title }} {{ author.firstName }} {{-->
|
||||
<!-- author.lastName }}-->
|
||||
<!-- </li>-->
|
||||
<!-- </template>-->
|
||||
<!-- </v-select>-->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -15,11 +35,17 @@ import Sandbox from '../docs/.vuepress/components/Sandbox';
|
||||
import countries from '../docs/.vuepress/data/countryCodes';
|
||||
import books from '../docs/.vuepress/data/books';
|
||||
|
||||
const randomBook = (id) => {
|
||||
const rand = Math.floor(Math.random() * Math.floor(books.length - 1));
|
||||
return {...books[rand], id};
|
||||
}
|
||||
|
||||
export default {
|
||||
components: {vSelect, Sandbox, ListSelect, Paginated},
|
||||
computed: {
|
||||
countries: () => countries,
|
||||
books: () => books,
|
||||
books: () => Array(100).fill(0).map((num, index) => randomBook(index)),
|
||||
jest: () => ({value: [{label: "one"}], options: [{label: "one"}]}),
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user