mirror of
https://github.com/501351981/vue-office.git
synced 2025-07-15 07:32:19 +08:00
28 lines
620 B
JavaScript
28 lines
620 B
JavaScript
import VueOfficeDocxCom from './docx'
|
|
import VueOfficePdfCom from './pdf'
|
|
import VueOfficeExcelDom from './excel'
|
|
|
|
const components = [
|
|
VueOfficeDocxCom,
|
|
VueOfficePdfCom,
|
|
VueOfficeExcelDom
|
|
]
|
|
|
|
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 const VueOfficeExcel = VueOfficeExcelDom
|
|
export default {
|
|
install,
|
|
VueOfficeDocx,
|
|
VueOfficePdf,
|
|
VueOfficeExcel
|
|
}
|