mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
This commit is contained in:
parent
717f3b356c
commit
d725d414c9
2 changed files with 6 additions and 0 deletions
|
|
@ -412,6 +412,11 @@ 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) => {
|
||||
echarts.getInstanceById(chartItem.firstElementChild.nextElementSibling.getAttribute("_echarts_instance_")).resize();
|
||||
}))
|
||||
}
|
||||
}, 200);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
1
app/src/types/protyle.d.ts
vendored
1
app/src/types/protyle.d.ts
vendored
|
|
@ -1,6 +1,7 @@
|
|||
declare const echarts: {
|
||||
init(element: HTMLElement, theme?: string, options?: { width: number }): IEChart;
|
||||
dispose(element: Element): void;
|
||||
getInstanceById(id: string): { resize: () => void };
|
||||
};
|
||||
|
||||
declare const hljs: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue