UNPKG

hy-print

Version:

print for table

18 lines (15 loc) 443 B
import type { App } from 'vue' import directive from './directive' import Print from './print' import {printType} from './types.ts' export default { install(app: App) { app.directive('hyprint', directive) app.config.globalProperties.$print = (options: printType) => { const instance = new Print(options) instance.init() } } } // 3. 导出类和类型 export { Print }