mirror of
https://github.com/tenrok/vue-select.git
synced 2026-05-17 02:29:37 +03:00
98c278b2bb
BREAKING: mixins are no longer exported from the index (and will likely be converted to hooks)
44 lines
657 B
Vue
44 lines
657 B
Vue
<template>
|
|
<div id="app">
|
|
<v-select v-model="selected" v-bind="config" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import vSelect from '@/components/Select.vue'
|
|
import countries from '../docs/.vuepress/data/countryCodes.js'
|
|
|
|
export default {
|
|
components: { vSelect },
|
|
data: () => ({
|
|
selected: null,
|
|
config: {
|
|
options: countries,
|
|
},
|
|
}),
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
height: 100%;
|
|
font-family: -apple-system, sans-serif;
|
|
}
|
|
|
|
#app {
|
|
height: 100%;
|
|
max-width: 20rem;
|
|
margin: 10rem auto 0;
|
|
}
|
|
|
|
hr {
|
|
border: none;
|
|
border-bottom: 1px solid #cacaca;
|
|
margin-bottom: 1em;
|
|
padding-top: 1em;
|
|
width: 90%;
|
|
}
|
|
</style>
|