19 lines
514 B
TypeScript
19 lines
514 B
TypeScript
import { VueConstructor } from 'vue'
|
|
import { VxeUI } from '@vxe-ui/core'
|
|
import { dynamicApp } from '../dynamics'
|
|
import VxePrintComponent from './src/print'
|
|
import { printHtml } from './src/util'
|
|
|
|
export const VxePrint = Object.assign({}, VxePrintComponent, {
|
|
install (app: VueConstructor) {
|
|
app.component(VxePrintComponent.name as string, VxePrintComponent)
|
|
}
|
|
})
|
|
|
|
dynamicApp.use(VxePrint)
|
|
VxeUI.component(VxePrintComponent)
|
|
VxeUI.print = printHtml
|
|
|
|
export const Print = VxePrint
|
|
export default VxePrint
|