diff --git a/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs b/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs index f2664e41ea4..3c8fd4b4ff7 100644 --- a/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs +++ b/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs @@ -179,6 +179,11 @@ protected override async Task OnParametersSetAsync() // 组件未赋值 Value 通过 IsActive 设置默认值 await TriggerItemChanged(s => s.IsActive); } + else + { + // 组件已赋值 Value 通过 Value 设置默认值 + await TriggerItemChanged(s => Equals(s.Value, Value)); + } } ///