review:【bpm 工作流】流程打印

This commit is contained in:
YunaiV
2025-09-03 13:25:05 +08:00
parent 1c6e6eb24e
commit be964a6287
13 changed files with 139 additions and 126 deletions

View File

@@ -2,19 +2,20 @@ import { DOMElement } from './utils/dom'
import { IDomEditor, SlateDescendant, SlateElement } from '@wangeditor/editor'
function parseHtml(
elem: DOMElement,
children: SlateDescendant[],
editor: IDomEditor
_elem: DOMElement,
_children: SlateDescendant[],
_editor: IDomEditor
): SlateElement {
return {
// TODO @lesan这里有个红色告警可以去掉哇
type: 'process-record',
children: [{ text: '' }],
children: [{ text: '' }]
}
}
const parseHtmlConf = {
selector: 'span[data-w-e-type="process-record"]',
parseElemHtml: parseHtml,
parseElemHtml: parseHtml
}
export default parseHtmlConf