From e4f02f50ca9c76c19f8ad6362173882a4f24e680 Mon Sep 17 00:00:00 2001 From: zhuzihcu Date: Thu, 8 Jun 2023 14:01:18 +0800 Subject: [PATCH] update --- src/imports/FluentUI/Controls/FluNavigationView.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/imports/FluentUI/Controls/FluNavigationView.qml b/src/imports/FluentUI/Controls/FluNavigationView.qml index fe308b1..ded1919 100644 --- a/src/imports/FluentUI/Controls/FluNavigationView.qml +++ b/src/imports/FluentUI/Controls/FluNavigationView.qml @@ -301,7 +301,6 @@ Item { } } } - } Component{ id:com_panel_item @@ -314,7 +313,12 @@ Item { } } clip: true - height: visible ? 38 : 0 + height: { + if(model.parent){ + return model.parent.isExpand ? 38 : 0 + } + return 38 + } visible: { if(model.parent){ return model.parent.isExpand ? true : false