You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
514 B

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