caiku-ui
Version:
caiku-ui for caiku
20 lines (18 loc) • 410 B
JavaScript
const ckOcr = require('../packages/ckOcr');
const { ckToast, toastComponent} = require('../packages/ckToast');
const ck = {
ckOcr,
toastComponent
}
const install = function (Vue) {
if (install.installed) return;
Object.keys(ck).forEach(key => {
Vue.component(key , ck[key]);
})
Vue.prototype.$toast = ckToast;
}
module.exports = {
install,
ckOcr,
toastComponent
};