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 82a470f17c67000b15b3c2ca893c73a27673f7b6..b189788fef7bea5522023abb4b9c6b9781ccadb1 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 02747284c7ff61783e79f33075e46bf83604b10c..db044b72c1859e60306d2d4fe24664e7454da19b 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) { // 变更父节点的时候强刷