Skip to content

Commit e1f1352

Browse files
authored
doc(MultiSelect): update sample code support flags enum (#5257)
* chore: 更新脚本 * doc: 更新示例 * chore: bump version 9.3.1-beta06
1 parent 34a6a8a commit e1f1352

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

scripts/linux/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ sudo cp BootstrapBlazor/scripts/linux/cert/* /etc/nginx/cert/
3636

3737
echo "*********************** install chrome ***********************"
3838
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
39-
sudo apt install ./google-chrome-stable_current_amd64.deb
39+
sudo yes|sudo apt install ./google-chrome-stable_current_amd64.deb
4040

4141
echo "*********************** install support font ***********************"
4242
sudo apt install fonts-wqy-microhei

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<h4>@Localizer["MultiSelectsDescription"]</h4>
77

8-
@* <DemoBlock Title="@Localizer["MultiSelectColorTitle"]" Introduction="@Localizer["MultiSelectColorIntro"]" Name="Color">
8+
<DemoBlock Title="@Localizer["MultiSelectColorTitle"]" Introduction="@Localizer["MultiSelectColorIntro"]" Name="Color">
99
<div class="row g-3">
1010
<div class="col-12 col-sm-6">
1111
<MultiSelect TValue="string" Items="@Items1" />
@@ -81,7 +81,7 @@
8181
<section ignore>@((MarkupString)Localizer["MultiSelectBindingNumberDescription"].Value)</section>
8282
<div class="row g-3">
8383
<div class="col-12 col-sm-6">
84-
<MultiSelect Items="@LongItems" @bind-Value="@SelectedIntArrayValues" />
84+
<MultiSelect Items="@LongItems" @bind-Value="@SelectedIntArrayValues"></MultiSelect>
8585
</div>
8686
<div class="col-12 col-sm-6">
8787
<Button Icon="fa-solid fa-plus" Text="@Localizer["MultiSelectAdd"]" OnClick="@AddArrayItems" class="me-1"></Button>
@@ -96,7 +96,7 @@
9696
<section ignore>@((MarkupString)Localizer["MultiSelectBindingEnumCollectionDescription"].Value)</section>
9797
<MultiSelect @bind-Value="@SelectedEnumValues"></MultiSelect>
9898
<section ignore>@(string.Join(",", SelectedEnumValues))</section>
99-
</DemoBlock> *@
99+
</DemoBlock>
100100

101101
<DemoBlock Title="@Localizer["MultiSelectFlagsEnumTitle"]" Introduction="@Localizer["MultiSelectFlagsEnumIntro"]"
102102
Name="Flags">
@@ -113,36 +113,36 @@ private enum MultiSelectEnumFoo
113113
<MultiSelect @bind-Value="@EnumFoo"></MultiSelect>
114114
</DemoBlock>
115115

116-
@* <DemoBlock Title="@Localizer["MultiSelectSearchTitle"]" Introduction="@Localizer["MultiSelectSearchIntro"]" Name="Search">
116+
<DemoBlock Title="@Localizer["MultiSelectSearchTitle"]" Introduction="@Localizer["MultiSelectSearchIntro"]" Name="Search">
117117
<section ignore>@((MarkupString)Localizer["MultiSelectSearchDescription"].Value)</section>
118-
<MultiSelect Items="@Items" @bind-Value="@SelectedSearchItemsValue" ShowSearch="true" OnSearchTextChanged="@OnSearch" />
118+
<MultiSelect Items="@Items" @bind-Value="@SelectedSearchItemsValue" ShowSearch="true" OnSearchTextChanged="@OnSearch"></MultiSelect>
119119
<section ignore>@SelectedSearchItemsValue</section>
120-
<ConsoleLogger @ref="Logger" />
120+
<ConsoleLogger @ref="Logger"></ConsoleLogger>
121121
</DemoBlock>
122122

123123
<DemoBlock Title="@Localizer["MultiSelectGroupTitle"]" Introduction="@Localizer["MultiSelectGroupIntro"]" Name="Group">
124124
<div class="row g-3">
125125
<div class="col-12 col-sm-6">
126-
<MultiSelect TValue="string" Items="GroupItems" />
126+
<MultiSelect TValue="string" Items="GroupItems"></MultiSelect>
127127
</div>
128128
</div>
129129
</DemoBlock>
130130

131131
<DemoBlock Title="@Localizer["MultiSelectDisableTitle"]" Introduction="@Localizer["MultiSelectDisableIntro"]" Name="Disable">
132132
<section ignore>@Localizer["MultiSelectDisableDescription"]</section>
133-
<MultiSelect Items="@Items" Value="@SelectedDisableItemsValue" IsDisabled="true" />
133+
<MultiSelect Items="@Items" Value="@SelectedDisableItemsValue" IsDisabled="true"></MultiSelect>
134134
</DemoBlock>
135135

136136
<DemoBlock Title="@Localizer["MultiSelectOptionChangeTitle"]" Introduction="@Localizer["MultiSelectOptionChangeIntro"]" Name="OptionChange">
137-
<MultiSelect Items="@Items" OnSelectedItemsChanged="@OnSelectedItemsChanged8" Value="@SelectedOptionItemsValue" />
137+
<MultiSelect Items="@Items" OnSelectedItemsChanged="@OnSelectedItemsChanged8" Value="@SelectedOptionItemsValue"></MultiSelect>
138138
</DemoBlock>
139139

140140
<DemoBlock Title="@Localizer["MultiSelectClientValidationTitle"]" Introduction="@Localizer["MultiSelectClientValidationIntro"]" Name="ClientValidation">
141141
<section ignore>@((MarkupString)Localizer["MultiSelectClientValidationDescription"].Value)</section>
142142
<ValidateForm Model="@Model">
143143
<div class="row g-3">
144144
<div class="col-12 col-sm-8">
145-
<MultiSelect Items="Items" @bind-Value="@Model.Address" />
145+
<MultiSelect Items="Items" @bind-Value="@Model.Address"></MultiSelect>
146146
</div>
147147
<div class="col-12 col-sm-4 align-self-end">
148148
<Button ButtonType="ButtonType.Submit">@Localizer["MultiSelectClientValidationSubmit"]</Button>
@@ -154,12 +154,12 @@ private enum MultiSelectEnumFoo
154154
<DemoBlock Title="@Localizer["MultiSelectDisplayLabelTitle"]" Introduction="@Localizer["MultiSelectDisplayLabelIntro"]" Name="DisplayLabel">
155155
<section ignore>
156156
<p>@((MarkupString)Localizer["MultiSelectDisplayLabelDescription"].Value)</p>
157-
<Divider Text="@Localizer["MultiSelectDisplayLabelShowLabel"]" Alignment="Alignment.Left" style="margin: 2rem 0;" />
157+
<Divider Text="@Localizer["MultiSelectDisplayLabelShowLabel"]" Alignment="Alignment.Left" style="margin: 2rem 0;"></Divider>
158158
</section>
159159
<ValidateForm Model="@Foo">
160160
<div class="row g-3">
161161
<div class="col-12">
162-
<MultiSelect Color="Color.Primary" Items="@Items1" @bind-Value="@Foo.Name" />
162+
<MultiSelect Color="Color.Primary" Items="@Items1" @bind-Value="@Foo.Name"></MultiSelect>
163163
</div>
164164
</div>
165165
</ValidateForm>
@@ -177,19 +177,19 @@ private enum MultiSelectEnumFoo
177177

178178
<DemoBlock Title="@Localizer["MultiSelectButtonTitle"]" Introduction="@Localizer["MultiSelectButtonIntro"]" Name="Button">
179179
<div style="max-width: 400px">
180-
<MultiSelect Items="@LongItems" @bind-Value="@SelectedLongItemsValue1" ShowToolbar="true" ShowSearch="true" />
180+
<MultiSelect Items="@LongItems" @bind-Value="@SelectedLongItemsValue1" ShowToolbar="true" ShowSearch="true"></MultiSelect>
181181
<p>@SelectedLongItemsValue1</p>
182182
</div>
183183
</DemoBlock>
184184

185185
<DemoBlock Title="@Localizer["MultiSelectMaxMinTitle"]" Introduction="@Localizer["MultiSelectMaxMinIntro"]" Name="MaxMin">
186186
<div style="max-width: 300px">
187187
<p>@Localizer["MultiSelectMaxMinMax"]</p>
188-
<MultiSelect Items="@LongItems" @bind-Value="@SelectedMaxItemsValue" Max="2" />
188+
<MultiSelect Items="@LongItems" @bind-Value="@SelectedMaxItemsValue" Max="2"></MultiSelect>
189189
</div>
190190
<div style="max-width: 300px" class="mt-3">
191191
<p>@Localizer["MultiSelectMaxMinMin"]</p>
192-
<MultiSelect Items="@LongItems" @bind-Value="@SelectedMinItemsValue" Min="2" />
192+
<MultiSelect Items="@LongItems" @bind-Value="@SelectedMinItemsValue" Min="2"></MultiSelect>
193193
</div>
194194
</DemoBlock>
195195

@@ -210,7 +210,7 @@ private enum MultiSelectEnumFoo
210210
<Select TValue="string" Items="@_cascadingItems2" OnSelectedItemChanged="@OnCascadeBindSelectClick"></Select>
211211
</div>
212212
<div class="col-12 col-sm-6">
213-
<MultiSelect TValue="string" Items="@CascadingItems1" />
213+
<MultiSelect TValue="string" Items="@CascadingItems1"></MultiSelect>
214214
</div>
215215
</div>
216216
</DemoBlock>
@@ -251,7 +251,7 @@ private enum MultiSelectEnumFoo
251251
<DemoBlock Title="@Localizer["MultiSelectPopoverTitle"]" Introduction="@Localizer["MultiSelectPopoverIntro"]" Name="Popover">
252252
<div class="row">
253253
<div class="col-12 col-sm-6 overflow-hidden">
254-
<MultiSelect TValue="string" Items="@Items" IsPopover="true" ShowSearch="true" ShowToolbar />
254+
<MultiSelect TValue="string" Items="@Items" IsPopover="true" ShowSearch="true" ShowToolbar="true"></MultiSelect>
255255
</div>
256256
</div>
257257
</DemoBlock>
@@ -262,14 +262,14 @@ private enum MultiSelectEnumFoo
262262
</section>
263263
<div class="row g-3">
264264
<div class="col-12 col-sm-6">
265-
<MultiSelect @bind-Value="@_editString" Items="@EditableItems" IsEditable="true" Max="2" EditSubmitKey="EditSubmitKey.Enter" OnEditCallback="OnEditCallback" />
265+
<MultiSelect @bind-Value="@_editString" Items="@EditableItems" IsEditable="true" Max="2" EditSubmitKey="EditSubmitKey.Enter" OnEditCallback="OnEditCallback"></MultiSelect>
266266
</div>
267267
<div class="col-12 col-sm-6">
268268
<Display Value="@_editString"></Display>
269269
</div>
270270
</div>
271-
</DemoBlock> *@
271+
</DemoBlock>
272272

273-
<AttributeTable Items="@GetAttributes()" />
273+
<AttributeTable Items="@GetAttributes()"></AttributeTable>
274274

275-
<EventTable Items="@GetEvents()" />
275+
<EventTable Items="@GetEvents()"></EventTable>

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.3.1-beta05</Version>
4+
<Version>9.3.1-beta06</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

0 commit comments

Comments
 (0)