Skip to content

Commit d6cb8fe

Browse files
committed
refactor: 更新文档说明
1 parent 9e18054 commit d6cb8fe

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<div>@((MarkupString)Localizer["MindMapExtensionDesc"].Value)</div>
4747
</div>
4848
</div>
49-
<Pre>window.BootstrapBlazor.MindMap = {
49+
<Pre class="mt-3">window.BootstrapBlazor.MindMap = {
5050
callbacks: {
5151
clickCustom: function (args) {
5252
console.log(this, args);

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6344,7 +6344,8 @@
63446344
"NodeGeneralizationText": "Generalization",
63456345
"NodeExpandText": "Node is expanded",
63466346
"SetTheme": "switch themes",
6347-
"SetLayout": "switch layout"
6347+
"SetLayout": "switch layout",
6348+
"MindMapExtensionDesc": "<p>Because <code>MindMap</code> encapsulates many <b>api</b> methods, the component library cannot fully encapsulate them, so extension methods are provided. For example, if you need a combination button to use the component, you can call your own <code>Javascript</code> through your own code to control <code>MindMap</code></p><ul><li>The custom button calls the component instance method <code>MindMap.Execute(\"clickCustom\", \"args1\")</code>, assuming the parameter is <code>args1</code></li><li>Your own <code>Javascript</code> is responsible for handling the <code>clickCustom</code> event</li><li><code>this</code> in the <code>clickCustom</code> method is the current <code>MindMap</code> instance, and you can call any of its methods to develop your own business</li></ul><p>The complete example is as follows:</p>"
63486349
},
63496350
"BootstrapBlazor.Server.Components.Samples.Mermaids": {
63506351
"MermaidTitle": "Mermaid",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6345,7 +6345,7 @@
63456345
"NodeExpandText": "节点是否展开",
63466346
"SetTheme": "切换主题",
63476347
"SetLayout": "切换布局",
6348-
"MindMapExtensionDesc": "由于 <code>MindMap</code> 封装的 <b>api</b> 方法比较多,组件库无法完全封装,所以提供了扩展方法。例如使用组件需要一个组合按钮,可以通过自己的代码调用自己的 <code>Javascript</code> 来控制 <code>MindMap</code>完整示例如下:"
6348+
"MindMapExtensionDesc": "<p>由于 <code>MindMap</code> 封装的 <b>api</b> 方法比较多,组件库无法完全封装,所以提供了扩展方法。例如使用组件需要一个组合按钮,可以通过自己的代码调用自己的 <code>Javascript</code> 来控制 <code>MindMap</code></p><ul><li>自定义按钮调用组件实例方法 <code>MindMap.Execute(\"clickCustom\", \"args1\")</code>,假设参数为 <code>args1</code></li><li>自己实现 <code>Javascript</code> 负责处理 <code>clickCustom</code> 事件</li><li><code>clickCustom</code> 方法内 <code>this</code> 即为 <code>MindMap</code> 当前实例,可以调用其任意方法进行自己业务开发</li></ul><p>完整示例如下:</p>"
63496349
},
63506350
"BootstrapBlazor.Server.Components.Samples.Mermaids": {
63516351
"MermaidTitle": "Mermaid 构图工具",

0 commit comments

Comments
 (0)