tips:當(dāng)前源碼下載日期20220817
一、發(fā)現(xiàn)問(wèn)題,當(dāng)單元格里存在換行時(shí),復(fù)制粘貼后報(bào)錯(cuò)導(dǎo)致粘貼失敗

粘貼失敗
二、解決問(wèn)題
src/global/formula.js文件下ltGtSignDeal方法將if (str.substr(0, 5) === "<span" || str.startsWith('='))改為if (str.slice(0, 5) === "<span" || str.startsWith('=')||str.slice(0, 5) === "<font"),避免報(bào)錯(cuò)。src/controllers/handler.js文件下將const storeValue = v.replace(/\n/g,'').replace(/\s/g,' ')改為const storeValue = v.replace(/\n|\r/g,'').replace(/\s/g,' ')避免復(fù)制后內(nèi)容空格被去掉導(dǎo)致樣式不一致

不報(bào)錯(cuò)且復(fù)制成功
最后
- 當(dāng)前版本,開發(fā)者已修復(fù)了單元格內(nèi)輸入內(nèi)容
<abc>后雙擊內(nèi)容消失的bug - 官網(wǎng)的demo上復(fù)制換行的單元格不會(huì)報(bào)錯(cuò),發(fā)現(xiàn)官網(wǎng)的代碼沒有
if(isInlineStr){...}的判斷