mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
This commit is contained in:
parent
eaa1e5834f
commit
e3ca2c42f1
2 changed files with 26 additions and 23 deletions
|
|
@ -412,10 +412,10 @@ export const resizeTabs = () => {
|
|||
setTimeout(() => {
|
||||
// .layout .fn__flex-shrink {transition: width .3s ease;} 时需要再次计算 padding
|
||||
setPadding(item.editor.protyle);
|
||||
if (echarts) {
|
||||
(item.editor.protyle.wysiwyg.element.querySelectorAll('[data-subtype="echarts"], [data-subtype="mindmap"]').forEach((chartItem: HTMLElement) => {
|
||||
if (typeof echarts !== "undefined") {
|
||||
item.editor.protyle.wysiwyg.element.querySelectorAll('[data-subtype="echarts"], [data-subtype="mindmap"]').forEach((chartItem: HTMLElement) => {
|
||||
echarts.getInstanceById(chartItem.firstElementChild.nextElementSibling.getAttribute("_echarts_instance_")).resize();
|
||||
}))
|
||||
});
|
||||
}
|
||||
}, 200);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue