This commit is contained in:
辉 2024-05-30 11:19:01 +08:00
parent 4080453b74
commit 146ac9851f

View File

@ -316,7 +316,7 @@ function withAttachment(editor) { // JS 语法
Boot.registerPlugin(withAttachment) Boot.registerPlugin(withAttachment)
function renderAttachment(elem, children, editor) { // JS 语法 function renderAttachment(elem, children, editor) { // JS 语法
// 获取“附件”的数据,参考上文 myResume 数据结构 // 获取“附件”的数据,参考上文 myResume 数据结构
const { fileName = '', link = '', fileSpan = '', fieldMark } = elem const { fileName = '', link = '', fileSpan = '', fieldMark = '' } = elem
// 附件 icon 图标 vnode // 附件 icon 图标 vnode
const iconVnode = h( const iconVnode = h(
// HTML tag // HTML tag