File tree Expand file tree Collapse file tree
packages/cherry-markdown/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' cherry-markdown ' : patch
3+ ---
4+
5+ fix: #1622 表格左右滚动影响到图表的问题
Original file line number Diff line number Diff line change @@ -675,7 +675,7 @@ export default class Previewer {
675675 // 处理表格包含图表的特殊场景
676676 let hasUpdate = false ;
677677 if (
678- newContent [ change . newIndex ] . dom . className === 'cherry-table-container ' &&
678+ newContent [ change . newIndex ] . dom . className === 'cherry-table-wrapper ' &&
679679 newContent [ change . newIndex ] . dom . querySelector ( '.cherry-table-figure' ) &&
680680 oldContent [ change . oldIndex ] . dom . querySelector ( '.cherry-table-figure' )
681681 ) {
Original file line number Diff line number Diff line change @@ -313,8 +313,8 @@ export default class Table extends ParagraphBase {
313313 } )
314314 . replace ( / \\ \| / g, '|' ) ; // escape \|
315315 return {
316- html : `<div class="cherry-table-container " data-sign="${ sign } ${ dataLines } " data-lines="${ dataLines } ">
317- <table class="cherry-table">${ renderHtml } </table></div>` ,
316+ html : `<div class="cherry-table-wrapper " data-sign="${ sign } ${ dataLines } " data-lines="${ dataLines } ">
317+ <div class="cherry- table-container"><table class="cherry-table">${ renderHtml } </table></div ></div>` ,
318318 sign,
319319 } ;
320320 }
You can’t perform that action at this time.
0 commit comments