2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-23 03:54:04 +03:00
Files
vue-select/dev/Dev.vue
T
2019-10-25 18:07:45 -07:00

57 lines
1.0 KiB
Vue

<template>
<div id="app">
<sandbox hide-help v-slot="config">
<v-select taggable multiple no-drop :map-keydown="handlers"/>
</sandbox>
</div>
</template>
<script>
import vSelect from '../src/components/Select';
import Sandbox from '../docs/.vuepress/components/Sandbox';
// import countries from '../docs/.vuepress/data/countryCodes';
// import books from '../docs/.vuepress/data/books';
export default {
components: {Sandbox, vSelect},
methods: {
handlers (map, vm) {
const createTag = e => {
e.preventDefault();
vm.typeAheadSelect();
vm.searchEl.focus();
};
return {
...map,
9: createTag,
13: createTag,
32: createTag,
188: createTag,
};
},
},
};
</script>
<style>
html,
body {
margin: 0;
height: 100%;
font-family: -apple-system, sans-serif;
}
#app {
height: 100%;
}
hr {
border: none;
border-bottom: 1px solid #cacaca;
margin-bottom: 1em;
padding-top: 1em;
width: 90%;
}
</style>