Skip to content

Commit 154baa7

Browse files
committed
doc: 更新 ColorPicker 示例
1 parent ea42fd0 commit 154baa7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212

1313
<DemoBlock Title="@Localizer["ValueTitle"]" Introduction="@Localizer["ValueIntro"]" Name="Value">
1414
<p>@((MarkupString)Localizer["ValueDescription"].Value)</p>
15-
<ColorPicker Value="@Value" />
15+
<ColorPicker Value="@Value"></ColorPicker>
1616
</DemoBlock>
1717

1818
<DemoBlock Title="@Localizer["BindValueTitle"]" Introduction="@Localizer["BindValueIntro"]" Name="BindValue">
19-
<ColorPicker @bind-Value="@Value" />
19+
<ColorPicker @bind-Value="@Value"></ColorPicker>
2020
<div class="mt-3">Value: @Value</div>
2121
</DemoBlock>
2222

2323
<DemoBlock Title="@Localizer["DisabledTitle"]" Introduction="@Localizer["DisabledIntro"]" Name="Disabled">
24-
<ColorPicker Value="@Value" IsDisabled="true" />
24+
<ColorPicker Value="@Value" IsDisabled="true"></ColorPicker>
2525
</DemoBlock>
2626

2727
<DemoBlock Title="@Localizer["TemplateTitle"]" Introduction="@Localizer["TemplateIntro"]" Name="Template">
@@ -40,7 +40,7 @@
4040
<ValidateForm Model="Dummy">
4141
<div class="row g-3 form-inline">
4242
<div class="col-6">
43-
<ColorPicker @bind-Value="@Dummy.Name" />
43+
<ColorPicker @bind-Value="@Dummy.Name"></ColorPicker>
4444
</div>
4545
</div>
4646
</ValidateForm>
@@ -50,14 +50,14 @@
5050
<section ignore>
5151
<div class="row form-inline">
5252
<div class="col-12 col-sm-6">
53-
<Switch @bind-Value="_opacityIsSupport" DisplayText="SupportOpacity" ShowLabel="true"></Switch>
53+
<Switch @bind-Value="_opacityIsSupport" DisplayText="@Localizer["SupportOpacity"]" ShowLabel="true"></Switch>
5454
</div>
5555
<div class="col-12 col-sm-6">
56-
<Switch @bind-Value="_opacityIsDisabled" DisplayText="Disabled" ShowLabel="true"></Switch>
56+
<Switch @bind-Value="_opacityIsDisabled" DisplayText="@Localizer["Disabled"]" ShowLabel="true"></Switch>
5757
</div>
5858
</div>
5959
</section>
60-
<ColorPicker @bind-Value="@_opacityValue" IsSupportOpacity="_opacityIsSupport" IsDisabled="_opacityIsDisabled" />
60+
<ColorPicker @bind-Value="@_opacityValue" IsSupportOpacity="_opacityIsSupport" IsDisabled="_opacityIsDisabled"></ColorPicker>
6161
</DemoBlock>
6262

6363
<AttributeTable Items="@GetAttributes()" />

0 commit comments

Comments
 (0)