From f8412ba70e4a480a21400dddbbc3c13088856008 Mon Sep 17 00:00:00 2001 From: jianglinjun Date: Tue, 28 May 2024 19:13:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E6=A0=91=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=A4=9A=E8=8A=82=E7=82=B9=E5=88=B7=E6=96=B0=EF=BC=8C?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=9C=80=E5=B0=8F=E5=8C=96=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../toolbar/short-cut-button/short-cut-button.scss | 8 +++++++- src/control/tree/tree.tsx | 13 +++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/control/toolbar/short-cut-button/short-cut-button.scss b/src/control/toolbar/short-cut-button/short-cut-button.scss index 82a470f17..b189788fe 100644 --- a/src/control/toolbar/short-cut-button/short-cut-button.scss +++ b/src/control/toolbar/short-cut-button/short-cut-button.scss @@ -1 +1,7 @@ -@include b('short-cut-button') {} \ No newline at end of file +@include b('short-cut-button') { + .ibiz-icon svg{ + width: getCssVar(font-size,regular); + height: getCssVar(font-size,regular);; + font-size: getCssVar(font-size,regular);; + } +} \ No newline at end of file diff --git a/src/control/tree/tree.tsx b/src/control/tree/tree.tsx index 02747284c..db044b72c 100644 --- a/src/control/tree/tree.tsx +++ b/src/control/tree/tree.tsx @@ -183,6 +183,19 @@ export const TreeControl = defineComponent({ } }); + // 更新树节点数据 + c.evt.on('onRefreshNodes', event => { + if (treeRef.value) { + const { nodes } = event; + nodes.forEach((node: { _children: ITreeNodeData[]; _id: string }) => { + const { _children, _id } = node; + const elNodes = toElNodes(_children); + treeRef.value!.updateKeyChildren(_id, elNodes); + }); + updateUI(); + } + }); + c.evt.on('onAfterNodeDrop', event => { if (event.isChangedParent) { // 变更父节点的时候强刷 -- Gitee