Skip to content

Commit 01b9ad4

Browse files
committed
feat: 增加参数约束逻辑
1 parent 606f67b commit 01b9ad4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/BootstrapBlazor/Components/Modal/ModalDialog.razor.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,18 @@ protected override void OnParametersSet()
331331
ExportPdfButtonOptions.Icon ??= IconTheme.GetIconByKey(ComponentIcons.TableExportPdfIcon);
332332

333333
MaximizeIconString = MaximizeWindowIcon;
334+
335+
if (FullScreenSize != FullScreenSize.None)
336+
{
337+
ShowMaximizeButton = false;
338+
ShowResize = false;
339+
IsDraggable = false;
340+
}
341+
else if (ShowMaximizeButton)
342+
{
343+
ShowResize = false;
344+
IsDraggable = false;
345+
}
334346
}
335347

336348
/// <summary>

0 commit comments

Comments
 (0)