feat: 通过wangeditor自定义打印模板

This commit is contained in:
Lesan
2025-08-29 14:19:52 +08:00
parent 97e538539e
commit 84de7fcd46
13 changed files with 482 additions and 2 deletions

View File

@ -0,0 +1,16 @@
import {IModuleConf} from '@wangeditor/editor'
import withProcessRecord from './plugin'
import renderElemConf from './render-elem'
import elemToHtmlConf from './elem-to-html'
import parseHtmlConf from './parse-elem-html'
import processRecordMenu from "./menu/ProcessRecordMenu"
const module: Partial<IModuleConf> = {
editorPlugin: withProcessRecord,
renderElems: [renderElemConf],
elemsToHtml: [elemToHtmlConf],
parseElemsHtml: [parseHtmlConf],
menus: [processRecordMenu],
}
export default module