Skip to content

Commit da189b5

Browse files
committed
refactor: 增加约束
1 parent f99ad91 commit da189b5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/BootstrapBlazor/Components/Table/Table.razor.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,11 @@ protected override void OnParametersSet()
909909
{
910910
base.OnParametersSet();
911911

912+
if (ScrollMode == ScrollMode.Virtual && IsTree)
913+
{
914+
throw new InvalidOperationException($"{GetType()} does not support virtual scrolling in tree mode. ${GetType()} 目前不支持虚拟滚动模式下设置 IsTree=\"true\"");
915+
}
916+
912917
OnInitParameters();
913918

914919
if (Items != null && OnQueryAsync != null)

0 commit comments

Comments
 (0)