mirror of
https://github.com/501351981/vue-office.git
synced 2025-07-15 07:32:19 +08:00
24 lines
523 B
JavaScript
24 lines
523 B
JavaScript
import VueOfficeDocxCom from './docx'
|
|
import VueOfficePdfCom from './pdf'
|
|
|
|
const components = [
|
|
VueOfficeDocxCom,
|
|
VueOfficePdfCom
|
|
]
|
|
|
|
const install = function (Vue) {
|
|
components.map(component => Vue.component(component.name, component))
|
|
}
|
|
|
|
if (typeof window !== 'undefined' && window.Vue) {
|
|
install(window.Vue)
|
|
}
|
|
|
|
export const VueOfficeDocx = VueOfficeDocxCom;
|
|
export const VueOfficePdf = VueOfficePdfCom
|
|
export default {
|
|
install,
|
|
VueOfficeDocx: VueOfficeDocxCom,
|
|
VueOfficePdf: VueOfficePdfCom
|
|
}
|