2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-16 09:10:33 +03:00

move demo related files to /docs/ add gh-pages module

This commit is contained in:
Jeff Sagal
2016-06-10 14:35:14 -07:00
parent 5331da9b4f
commit 2653e5ee0a
28 changed files with 145 additions and 139 deletions
+40
View File
@@ -0,0 +1,40 @@
import Vue from 'vue'
import App from './App.vue'
import store from './vuex/store'
import 'prismjs'
import vSelect from '../src/components/Select.vue'
Vue.component('v-select', vSelect)
Vue.config.debug = true
Vue.config.devtools = true
import { setSelected, toggleMultiple, setPlaceholder, toggleOptionType } from './vuex/actions'
/* eslint-disable no-new */
new Vue({
el: 'body',
store,
components: { App },
vuex: {
getters: {
placeholder (store) {
return store.placeholder
},
selected (store) {
return store.selected
},
type (store) {
return store.optionType
},
options (store) {
return store.options[store.optionType]
},
multiple (store) {
return store.multiple
}
},
actions: { setSelected, toggleMultiple, setPlaceholder, toggleOptionType }
}
})