Skip to content

Commit c79c000

Browse files
committed
doc: 增加文档
1 parent c1caaab commit c79c000

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
</DemoBlock>
6161

6262
<DemoBlock Title="@Localizer["Block3Title"]" Introduction="@Localizer["Block3Intro"]" Name="Bind">
63+
<section ignore>
64+
@((MarkupString)Localizer["Block3Desc"].Value)
65+
</section>
6366
<div class="row g-3">
6467
<div class="col-12 col-sm-6">
6568
<Cascader Color="Color.Primary" Items="@_items" @bind-Value="@Value" IsClearable="true" />

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2284,6 +2284,7 @@
22842284
"Block2Intro": "Cascading selection is not available",
22852285
"Block3Title": "Two-way binding",
22862286
"Block3Intro": "The values in the text box change when you change the cascading selection option by binding the <code>Value</code> property with the <code>Select</code> component.",
2287+
"Block3Desc": "You can use <code>IsClearable</code> to control whether to display the clear button. The default value is <code>false</code>",
22872288
"Block4Title": "Client validation",
22882289
"Block4Intro": "When cascading selection is not selected, click the submit button to block.",
22892290
"Block5Title": "The binding generic is the Guid structure",

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2284,6 +2284,7 @@
22842284
"Block2Intro": "级联选择不可用状态",
22852285
"Block3Title": "Cascader 双向绑定",
22862286
"Block3Intro": "通过 <code>Select</code> 组件绑定 <code>Value</code> 属性,改变级联选择选项时,文本框内的数值随之改变。",
2287+
"Block3Desc": "通过设置 <code>Clearable=\"true\"</code> 参数,使组件获得焦点或者鼠标悬浮时显示一个 <b>清除</b> 小按钮",
22872288
"Block4Title": "Cascader 客户端验证",
22882289
"Block4Intro": "级联选择未选择时,点击提交按钮时拦截。",
22892290
"Block5Title": "绑定泛型为 Guid 结构",

0 commit comments

Comments
 (0)