mirror of
https://github.com/tenrok/vue-select.git
synced 2026-05-17 02:29:37 +03:00
201e135964
- separate environment for developing docs - clear out discarded couscous files - start converting docs markdown
37 lines
767 B
JavaScript
37 lines
767 B
JavaScript
import 'prismjs'
|
|
import Vue from 'vue'
|
|
import Docs from './Docs.vue'
|
|
import store from './vuex/store'
|
|
import Resource from 'vue-resource'
|
|
import vSelect from '../src/components/Select.vue'
|
|
import vCode from './components/Code.vue'
|
|
import countries from './data/advanced'
|
|
|
|
Vue.use(Resource)
|
|
|
|
Vue.component('v-select', vSelect)
|
|
Vue.component('v-code', vCode)
|
|
|
|
Vue.filter('score', function (value) {
|
|
return Math.round(value)
|
|
})
|
|
|
|
Vue.config.debug = true
|
|
Vue.config.devtools = true
|
|
|
|
import { setSelected, toggleMultiple, setPlaceholder, toggleOptionType } from './vuex/actions'
|
|
|
|
|
|
/* eslint-disable no-new */
|
|
new Vue({
|
|
el: '#app',
|
|
store,
|
|
components: { Docs },
|
|
data () {
|
|
return {
|
|
options: countries,
|
|
placeholder: 'Choose a country..',
|
|
}
|
|
}
|
|
})
|