@amaury-tobias/v-avatar
Version:
Componente de avatar basado en Vue.js
18 lines (13 loc) • 309 B
JavaScript
import component from './component'
export const vAvatar = component
const plugin = {
install(Vue) {
if (this.installed) return
this.installed = true
Vue.component('v-avatar', vAvatar)
}
}
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(plugin)
}
export default plugin