feat: 通过wangeditor自定义打印模板
This commit is contained in:
16
src/views/bpm/model/form/PrintTemplate/module/index.ts
Normal file
16
src/views/bpm/model/form/PrintTemplate/module/index.ts
Normal 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
|
||||
Reference in New Issue
Block a user