Skip to content

Commit 499f686

Browse files
committed
doc: 增加参数说明文档
1 parent 6864130 commit 499f686

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,19 @@ private AttributeItem[] GetAttributes() =>
167167
},
168168
new()
169169
{
170-
Name = nameof(BootstrapBlazor.Components.Textarea.IsAutoScroll),
170+
Name = nameof(Textarea.IsAutoScroll),
171171
Description = Localizer["TextAreaAutoScroll"],
172172
Type = "bool",
173173
ValueList = "true|false",
174174
DefaultValue = "false"
175+
},
176+
new()
177+
{
178+
Name = nameof(Textarea.UseShiftEnter),
179+
Description = Localizer["TextAreaUseShiftEnter"],
180+
Type = "bool",
181+
ValueList = "true|false",
182+
DefaultValue = "false"
175183
}
176184
];
177185
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3283,7 +3283,8 @@
32833283
"TextAreaAutoScroll": "Automatic scrolling",
32843284
"TextAreaUseShiftEnterTitle": "Shift Enter",
32853285
"TextAreaUseShiftEnterIntro": "By setting <code>UseShiftEnter=\"true\"</code> you can start using <kbd>Shift</kbd> + <kbd>Enter</kbd> for line breaks, which is suitable for dialog applications.",
3286-
"TextAreaUseShiftEnterPlaceHolder": "Please enter some text, Enter sends Shift + Enter line break"
3286+
"TextAreaUseShiftEnterPlaceHolder": "Please enter some text, Enter sends Shift + Enter line break",
3287+
"TextAreaUseShiftEnter": "Whether to use Shift + Enter instead of the original Enter key behavior"
32873288
},
32883289
"BootstrapBlazor.Server.Components.Samples.Toggles": {
32893290
"TogglesOnText": "On",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3283,7 +3283,8 @@
32833283
"TextAreaAutoScroll": "自动滚屏",
32843284
"TextAreaUseShiftEnterTitle": "Shift Enter",
32853285
"TextAreaUseShiftEnterIntro": "通过设置 <code>UseShiftEnter=\"true\"</code> 开始使用 <kbd>Shift</kbd> + <kbd>Enter</kbd> 进行换行操作,适用于对话框类应用",
3286-
"TextAreaUseShiftEnterPlaceHolder": "请输入一些文字,Enter 发送 Shift + Enter 换行"
3286+
"TextAreaUseShiftEnterPlaceHolder": "请输入一些文字,Enter 发送 Shift + Enter 换行",
3287+
"TextAreaUseShiftEnter": "是否使用 Shift + Enter 代替原回车按键行为"
32873288
},
32883289
"BootstrapBlazor.Server.Components.Samples.Toggles": {
32893290
"TogglesOnText": "开启",

0 commit comments

Comments
 (0)