2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-10 07:52:23 +03:00

renderless / slot examples

This commit is contained in:
Jeff
2019-11-06 09:52:59 -08:00
parent 612d7153b4
commit 83c1c795db
4 changed files with 125 additions and 7 deletions
+16 -7
View File
@@ -1,19 +1,26 @@
<template>
<div id="app">
<sandbox hide-help v-slot="config">
<v-select v-bind="config" />
</sandbox>
<div id="app" class="font-sans px-5 py-5">
<!-- <v-select :options="countries"/>-->
<ListSelect :options="countries" />
<!-- <paginated />-->
</div>
</template>
<script>
import vSelect from '../src/components/Select';
import ListSelect from './ListSelect';
import Paginated from './Paginated';
import Sandbox from '../docs/.vuepress/components/Sandbox';
// import countries from '../docs/.vuepress/data/countryCodes';
// import books from '../docs/.vuepress/data/books';
import countries from '../docs/.vuepress/data/countryCodes';
import books from '../docs/.vuepress/data/books';
export default {
components: {Sandbox, vSelect},
components: {vSelect, Sandbox, ListSelect, Paginated},
computed: {
countries: () => countries,
books: () => books,
},
};
</script>
@@ -27,6 +34,8 @@ export default {
#app {
height: 100%;
max-width: 50rem;
margin: 0 auto;
}
hr {