批量文献提炼实用方法与核心要点梳理指引
2026/7/30 21:14:30
采用Ecode开发,复写组件方式实现
ecodeSDK.overwritePropsFnQueueMapSet('WeaRichText',{fn:(newProps,name)=>{if(newProps.id=='remark'){// 流程签字意见const{ckConfig={}}=newProps;const{toolbar}=ckConfig;consthasCopyFormatting=toolbar&&JSON.stringify(toolbar).indexOf("CopyFormatting")>-1;if(!hasCopyFormatting){// 配置格式刷按钮ckConfig.toolbar=Array.isArray(toolbar[0])?[[...toolbar[0],"-",'CopyFormatting']]:[...toolbar,{name:'CopyFormatting',items:["CopyFormatting"],},];newProps.ckConfig=ckConfig;}}returnnewProps;}});