Skip to content

Instantly share code, notes, and snippets.

@Phunky
Created March 2, 2016 21:24
Show Gist options
  • Save Phunky/6839eaed72d1806c6647 to your computer and use it in GitHub Desktop.
Save Phunky/6839eaed72d1806c6647 to your computer and use it in GitHub Desktop.
import svg from 'vue-svg-directive'
import sidebar from './v-sidebar.vue'
import items from './v-sidebar-items.vue'
import item from './v-sidebar-item.vue'
export default {
install (Vue, opts) {
Vue.use(svg, {
sprites : opts.sprites,
prefix : opts.prefix,
class : opts.class
})
Vue.component('v-sidebar', sidebar)
Vue.component('v-sidebar-items', items)
Vue.component('v-sidebar-item', item)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment