vuejs-avatar-crop
Version:
Support cutting of avatars of PC and mobile phones.
19 lines (14 loc) • 315 B
JavaScript
import Avatar from './components/avatar'
function install (Vue) {
if (install.installed) return
install.installed = true
Vue.component('vue-avatar', Avatar)
}
const avatar = {
install: install,
Avatar
}
if (typeof window !== undefined && window.Vue) {
window.Vue.use(avatar)
}
export default avatar