vue-cropperjs-ex
Version:
a vue copper component based on cropperjs
20 lines (16 loc) • 380 B
JavaScript
import Copper from './copper.vue'
const install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) {
Vue = window.Vue
}
Vue.component(Copper.name, Copper)
}
/* istanbul ignore if */
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue);
}
export { Copper }
export default {
install,
Copper
}