From 0db9536243686d7c8e66db93e91981eca08965b3 Mon Sep 17 00:00:00 2001 From: Isabelle Glasmacher Date: Thu, 21 Mar 2024 10:10:04 +0100 Subject: [PATCH] (fix) pass class to TreeNodes nodeIcon slot --- components/lib/tree/Tree.d.ts | 4 ++++ components/lib/tree/TreeNode.vue | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/components/lib/tree/Tree.d.ts b/components/lib/tree/Tree.d.ts index d945c9765..00ce629e8 100755 --- a/components/lib/tree/Tree.d.ts +++ b/components/lib/tree/Tree.d.ts @@ -361,6 +361,10 @@ export interface TreeSlots { * Tree node instance */ node: TreeNode; + /** + * Style class of the icon. + */ + class: string; }): VNode[]; /** * Custom checkbox icon diff --git a/components/lib/tree/TreeNode.vue b/components/lib/tree/TreeNode.vue index 015629953..f3140f4e5 100755 --- a/components/lib/tree/TreeNode.vue +++ b/components/lib/tree/TreeNode.vue @@ -32,7 +32,7 @@ - +