Skip to content

Commit a15ba20

Browse files
committed
doc: 更新可编辑文档
1 parent 8d252d0 commit a15ba20

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050

5151
<DemoBlock Title="@Localizer["SelectTreesEditTitle"]"
5252
Introduction="@Localizer["SelectTreesEditIntro"]"
53-
Name="Edit">
53+
Name="IsEditable">
54+
<section ignore>
55+
<div>@((MarkupString)Localizer["SelectTreesEditDesc"].Value)</div>
56+
</section>
5457
<div class="row g-3">
5558
<div class="col-12 col-sm-6">
5659
<SelectTree Items="EditItems" @bind-Value="@Value" IsEditable="true"></SelectTree>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4891,6 +4891,7 @@
48914891
"SelectTreesClientValidationIntro": "validate the value when submit the form. Inside <code>ValidateForm</code>",
48924892
"SelectTreesEditTitle": "Edit",
48934893
"SelectTreesEditIntro": "By setting <code>IsEditable=\"true\"</code> you can edit the input textbox",
4894+
"SelectTreesEditDesc": "After setting <code>IsEditable=\"true\"</code>, the content displayed in the text box is the <code>Value</code> value of the node selected in the <code>TreeView</code>, the input value may not be in the <code>Items</code> collection",
48944895
"SelectTreesIsPopoverTitle": "IsPopover",
48954896
"SelectTreesIsPopoverIntro": "Set <code>IsPopover</code> to <b>true</b>, use popover render UI prevent The dropdown menu cannot be fully displayed because the parent container is set to <code>overflow: hidden</code>",
48964897
"SelectTreesClientValidationButtonText": "Submit"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4893,6 +4893,7 @@
48934893
"SelectTreesClientValidationIntro": "组件内置 <code>ValidateForm</code> 可设置验证规则",
48944894
"SelectTreesEditTitle": "可输入",
48954895
"SelectTreesEditIntro": "通过设置 <code>IsEditable=\"true\"</code> 可设置下拉框选择后文本框可输入",
4896+
"SelectTreesEditDesc": "设置 <code>IsEditable=\"true\"</code> 后,文本框显示的内容为 <code>TreeView</code> 选中节点的 <code>Value</code> 值,输入值可以不在 <code>Items</code> 集合中",
48964897
"SelectTreesIsPopoverTitle": "悬浮弹窗",
48974898
"SelectTreesIsPopoverIntro": "通过设置 <code>IsPopover</code> 参数,组件使用 <code>popover</code> 渲染 <code>UI</code> 防止由于父容器设置 <code>overflow: hidden;</code> 使弹窗无法显示问题",
48984899
"SelectTreesClientValidationButtonText": "提交"

0 commit comments

Comments
 (0)