Skip to content

Commit c07f9e9

Browse files
committed
doc: 更新参数文档
1 parent 260551c commit c07f9e9

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,6 @@ private AttributeItem[] GetAttributes() =>
194194
DefaultValue = "false"
195195
},
196196
new()
197-
{
198-
Name = "TabStyle",
199-
Description = Localizer["TabAtt2TabStyle"].Value,
200-
Type = "enum",
201-
ValueList = "Default|Chrome",
202-
DefaultValue = "Default"
203-
},
204-
new()
205197
{
206198
Name = "IsOnlyRenderActiveTab",
207199
Description = Localizer["TabAtt3IsOnlyRenderActiveTab"].Value,
@@ -212,7 +204,7 @@ private AttributeItem[] GetAttributes() =>
212204
new()
213205
{
214206
Name = "IsLazyLoadTabItem",
215-
Description = Localizer["AttributeIsLazyLoadTabItem"].Value,
207+
Description = Localizer["TabAttIsLazyLoadTabItem"].Value,
216208
Type = "boolean",
217209
ValueList = "true/false",
218210
DefaultValue = "false"
@@ -230,21 +222,21 @@ private AttributeItem[] GetAttributes() =>
230222
Name = "ShowExtendButtons",
231223
Description = Localizer["TabAtt5ShowExtendButtons"].Value,
232224
Type = "boolean",
233-
ValueList = "",
225+
ValueList = "true|false",
234226
DefaultValue = "false"
235227
},
236228
new()
237229
{
238-
Name = "ShowExtendButtons",
239-
Description = Localizer["TabAttrShowNavigatorButtons"].Value,
230+
Name = "ShowNavigatorButtons",
231+
Description = Localizer["TabAttShowNavigatorButtons"].Value,
240232
Type = "boolean",
241233
ValueList = "true|false",
242234
DefaultValue = "true"
243235
},
244236
new()
245237
{
246-
Name = "ShowExtendButtons",
247-
Description = Localizer["TabAttrShowActiveBar"].Value,
238+
Name = "ShowActiveBar",
239+
Description = Localizer["TabAttShowActiveBar"].Value,
248240
Type = "boolean",
249241
ValueList = "true|false",
250242
DefaultValue = "true"
@@ -258,6 +250,14 @@ private AttributeItem[] GetAttributes() =>
258250
DefaultValue = "false"
259251
},
260252
new()
253+
{
254+
Name = "TabStyle",
255+
Description = Localizer["TabAtt2TabStyle"].Value,
256+
Type = "TabStyle",
257+
ValueList = "Default|Chrome",
258+
DefaultValue = "Default"
259+
},
260+
new()
261261
{
262262
Name = "Placement",
263263
Description = Localizer["TabAtt7Placement"].Value,

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2083,6 +2083,7 @@
20832083
"TabAtt5ShowExtendButtons": "Whether to display the extension button",
20842084
"TabAttShowNavigatorButtons": "Whether to display the previous and next navigation buttons",
20852085
"TabAttShowActiveBar": "Whether to display active bar",
2086+
"TabAttIsLazyLoadTabItem": "Whether lazy load tab item",
20862087
"TabAtt6ClickTabToNavigation": "Whether to navigate when you click on the title",
20872088
"TabAtt7Placement": "Set the label position",
20882089
"TabAtt8Height": "Set the label height",
@@ -2118,7 +2119,8 @@
21182119
"TabsDisabledTitle": "Disabled",
21192120
"TabsDisabledIntro": "Disable the current <code>TabItem</code> by setting <code>IsDisabled=\"true\"</code> to prohibit click, drag, close etc.",
21202121
"TabsChromeStyleTitle": "Chrome Style",
2121-
"TabsChromeStyleIntro": "Set the Chrome browser tab style by setting <code>TabStyle=\"TabStyle.Chrome\"</code>"
2122+
"TabsChromeStyleIntro": "Set the Chrome browser tab style by setting <code>TabStyle=\"TabStyle.Chrome\"</code>",
2123+
"TabAtt2TabStyle": "Set the tab style"
21222124
},
21232125
"BootstrapBlazor.Server.Components.Components.DemoTabItem": {
21242126
"Info": "Reset the title of this <code>TabItem</code> by click the button",

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2083,6 +2083,7 @@
20832083
"TabAtt5ShowExtendButtons": "是否显示扩展按钮",
20842084
"TabAttShowNavigatorButtons": "是否显示前后导航按钮",
20852085
"TabAttShowActiveBar": "是否显示活动标签",
2086+
"TabAttIsLazyLoadTabItem": "是否延时加载标签内容",
20862087
"TabAtt6ClickTabToNavigation": "点击标题时是否导航",
20872088
"TabAtt7Placement": "设置标签位置",
20882089
"TabAtt8Height": "设置标签高度",
@@ -2118,7 +2119,8 @@
21182119
"TabsDisabledTitle": "禁用",
21192120
"TabsDisabledIntro": "通过设置 <code>IsDisabled=\"true\"</code> 禁用当前 <code>TabItem</code> 禁止点击、拖动、关闭等操作",
21202121
"TabsChromeStyleTitle": "Chrome 样式",
2121-
"TabsChromeStyleIntro": "通过设置 <code>TabStyle=\"TabStyle.Chrome\"</code> 设置 Chrome 浏览器标签页样式"
2122+
"TabsChromeStyleIntro": "通过设置 <code>TabStyle=\"TabStyle.Chrome\"</code> 设置 Chrome 浏览器标签页样式",
2123+
"TabAtt2TabStyle": "设置标签页样式"
21222124
},
21232125
"BootstrapBlazor.Server.Components.Components.DemoTabItem": {
21242126
"Info": "点击下方按钮,本 <code>TabItem</code> 标题更改为当前分钟与秒",

0 commit comments

Comments
 (0)