Skip to content

Commit da174b7

Browse files
committed
doc: 更新示例
1 parent b813ce8 commit da174b7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/BootstrapBlazor.Server/Components/Samples/Selects.razor

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,11 @@
384384
Introduction="@Localizer["SelectsPopoverIntro"]"
385385
Name="Popover">
386386
<div class="row">
387+
<div class="col-12 col-sm-6">
388+
<Switch @bind-Value="_showPopoverSearch"></Switch>
389+
</div>
387390
<div class="col-12 col-sm-6 overflow-hidden">
388-
<Select TValue="string" Items="Items" IsPopover="true" ShowSearch="true" />
391+
<Select TValue="string" Items="Items" IsPopover="true" ShowSearch="_showPopoverSearch" />
389392
</div>
390393
</div>
391394
</DemoBlock>

src/BootstrapBlazor.Server/Components/Samples/Selects.razor.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ public sealed partial class Selects
4343

4444
private bool _showSearch;
4545

46+
private bool _showPopoverSearch = true;
47+
4648
private bool _isShowSearchClearable;
4749

4850
private bool _isClearable;

0 commit comments

Comments
 (0)