cbim-ui-test
Version:
cbim Component Library for Vue.js.
30 lines (25 loc) • 690 B
JavaScript
import { version } from '../package.json'
import CbimCkEditor from '../packages/ck-editor'
import CbimPersonSelect from '../packages/person-select'
import ElSelectExt from '../packages/select-fix-empty'
import CbimThreePreview from '../packages/three-ops'
const components = {
CbimCkEditor,
CbimPersonSelect,
CbimThreePreview,
ElSelectExt
}
const install = function(Vue, opts = {}) {
Object.values(components).forEach(component => {
// Vue.component(component.name, component)
component.install(Vue)
})
}
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue)
}
export default {
version,
install,
...components
}