Skip to content

Commit d051a1a

Browse files
committed
doc: 增加文档
1 parent cf61a6d commit d051a1a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
<DemoBlock Title="@Localizer["WatermarkNormalTitle"]" Introduction="@Localizer["WatermarkNormalIntro"]" Name="Normal">
99
<section ignore>
10+
@((MarkupString)Localizer["WatermarkDescription"].Value)
11+
<Pre>&lt;Layout&gt;&lt;/Layout&gt;
12+
&lt;Watermark IsPage="true" Text="BootstrapBlazor" FontSize="20" Color="#ddd" Rotate="-45" Gap="40"&gt;&lt;/Watermark&gt;</Pre>
1013
<div class="row form-inline g-3">
1114
<div class="col-12 col-sm-6">
1215
<BootstrapInputGroup>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7017,7 +7017,8 @@
70177017
"WatermarkTitle": "Watermark",
70187018
"WatermarkIntro": "Add specific text or patterns to the page",
70197019
"WatermarkNormalTitle": "Basic usage",
7020-
"WatermarkNormalIntro": "Use the <code>Text</code> property to set a string to specify the watermark text"
7020+
"WatermarkNormalIntro": "Use the <code>Text</code> property to set a string to specify the watermark text",
7021+
"WatermarkDescription": "<p>How to add a watermark globally</p><p>You can add a watermark component to the template page <code>MainLayout</code> and set <code>IsPage=\"true\"</code></p>"
70217022
},
70227023
"BootstrapBlazor.Server.Data.AttributeItem": {
70237024
"Name": "Name",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7017,7 +7017,8 @@
70177017
"WatermarkTitle": "Watermark 水印组件",
70187018
"WatermarkIntro": "在页面上添加文本或图片等水印信息",
70197019
"WatermarkNormalTitle": "基础用法",
7020-
"WatermarkNormalIntro": "使用 <code>Text</code> 属性设置一个字符串指定水印内容"
7020+
"WatermarkNormalIntro": "使用 <code>Text</code> 属性设置一个字符串指定水印内容",
7021+
"WatermarkDescription": "<p>全局增加水印实现方法</p><p>可以在模板页 <code>MainLayout</code> 中加水印组件并设置 <code>IsPage=\"true\"</code> 即可</p>"
70217022
},
70227023
"BootstrapBlazor.Server.Data.AttributeItem": {
70237024
"Name": "参数",

0 commit comments

Comments
 (0)