From 1732bd84d68521db0c6eff6d8b3b202370063c1c Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 15 Feb 2026 20:46:38 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16633 --- app/src/protyle/gutter/index.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts index 06a976b24..25d45b526 100644 --- a/app/src/protyle/gutter/index.ts +++ b/app/src/protyle/gutter/index.ts @@ -65,6 +65,7 @@ import * as path from "path"; import {hideMessage, showMessage} from "../../dialog/message"; import {checkFold} from "../../util/noRelyPCFunction"; import {clearSelect} from "../util/clear"; +import {chartRender} from "../render/chartRender"; export class Gutter { public element: HTMLElement; @@ -2300,6 +2301,10 @@ export class Gutter { id: e.getAttribute("data-node-id"), data: e.outerHTML }); + if (e.getAttribute("data-subtype") === "echarts") { + e.removeAttribute("data-render"); + chartRender(e); + } }); transaction(protyle, operations, undoOperations); window.siyuan.menus.menu.remove(); @@ -2337,6 +2342,10 @@ export class Gutter { this.genClick(nodeElements, protyle, (e: HTMLElement) => { e.style.width = item; e.style.flex = "none"; + if (e.getAttribute("data-subtype") === "echarts") { + e.removeAttribute("data-render"); + chartRender(e); + } }); } }); @@ -2377,6 +2386,10 @@ export class Gutter { if (e.style.width) { e.style.width = ""; e.style.flex = ""; + if (e.getAttribute("data-subtype") === "echarts") { + e.removeAttribute("data-render"); + chartRender(e); + } } }); }