BootstrapBlazor.MindMap
8.0.7
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package BootstrapBlazor.MindMap --version 8.0.7
NuGet\Install-Package BootstrapBlazor.MindMap -Version 8.0.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BootstrapBlazor.MindMap" Version="8.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BootstrapBlazor.MindMap --version 8.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BootstrapBlazor.MindMap, 8.0.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BootstrapBlazor.MindMap as a Cake Addin #addin nuget:?package=BootstrapBlazor.MindMap&version=8.0.7 // Install BootstrapBlazor.MindMap as a Cake Tool #tool nuget:?package=BootstrapBlazor.MindMap&version=8.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Blazor MindMap 思维导图组件
基于mind-map的Blazor组件
示例:
https://blazor.app1.es/MindMaps
使用方法:
1.nuget包
BootstrapBlazor.MindMap
2._Imports.razor 文件 或者页面添加 添加组件库引用
@using BootstrapBlazor.Components.MindMaps
3.razor页面
<a href="https://github.com/densen2014/Densen.Extensions/blob/master/Demo/DemoShared/Pages/MindMaps.razor"><h5>页面源码</h5></a>
<p>Tab:添加新节点</p>
<p>鼠标可拖动节点排列</p>
<MindMap @ref="MindMap" OnReceive="@OnReceive" OnError="@OnError" Options="Options" />
<Textarea @bind-Value="Message" />
<Button Text="下载为PNG" OnClick="Export" />
<Button Text="下载为json" OnClick="ExportJson" />
<Button Text="导出PNG" OnClick="ExportPng" />
<Button Text="导出对象" OnClick="GetFullData" />
<Button Text="导出json对象" OnClick="GetData" />
<Button Text="导入数据(json)" OnClick="SetData" />
<Button Text="复位" OnClick="Reset" />
@code{
[NotNull]
MindMap? MindMap;
string? Message { get; set; } = "";
MindMapOption Options { get; set; } = new();
private Task OnReceive(string? message)
{
Message = message;
return Task.CompletedTask;
}
private Task OnError(string message)
{
Message = message;
return Task.CompletedTask;
}
async Task Export()
{
await MindMap.Export();
await ShowBottomMessage("下载Png");
}
async Task ExportJson()
{
await MindMap.Export("json", WithConfig: false);
await ShowBottomMessage("下载Json");
}
async Task ExportPng()
{
await MindMap.Export(IsDownload:false, WithConfig: false);
await ShowBottomMessage("已导出Png");
}
async Task GetFullData()
{
await MindMap.GetData();
}
async Task GetData()
{
await MindMap.GetData(false);
}
async Task SetData()
{
if (Message != null) await MindMap.SetData(Message);
}
async Task Reset()
{
await MindMap.Reset();
}
async Task OnSelectedLayoutChanged(EnumMindMapLayout val)
{
await MindMap.SetLayout(val);
}
async Task OnSelectedThemeChanged(EnumMindMapTheme val)
{
await MindMap.SetTheme(val);
}
}
更新历史
v8.0.7
- 破坏性更新: 命名空间改为 BootstrapBlazor.Components.MindMaps
v8.0.2
- 添加 Options 配置选项
v8.0.1
- 添加 SetTheme 动态切换主题方法
- 添加 SetLayout 动态切换结构方法
Blazor 组件
AlexChow
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.AspNetCore.Components.Web (>= 6.0.0)
-
net7.0
- Microsoft.AspNetCore.Components.Web (>= 7.0.0)
-
net8.0
- Microsoft.AspNetCore.Components.Web (>= 8.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BootstrapBlazor.MindMap:
Package | Downloads |
---|---|
BootstrapBlazor.Densen.All
Blazor 组件懒人包 |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on BootstrapBlazor.MindMap:
Repository | Stars |
---|---|
dotnetcore/BootstrapBlazor
Bootstrap Blazor is an enterprise-level UI component library based on Bootstrap and Blazor.
|
Version | Downloads | Last updated |
---|---|---|
9.0.0 | 179 | 11/13/2024 |
9.0.0-beta02 | 68 | 11/7/2024 |
9.0.0-beta01 | 111 | 11/1/2024 |
8.0.7 | 2,671 | 1/4/2024 |
8.0.6 | 132 | 1/4/2024 |
8.0.4 | 1,129 | 12/12/2023 |
8.0.3 | 123 | 12/12/2023 |
8.0.2 | 130 | 12/12/2023 |
8.0.1 | 141 | 12/9/2023 |
8.0.0 | 588 | 11/15/2023 |
7.0.1 | 1,069 | 9/5/2023 |
7.0.0 | 139 | 9/5/2023 |
0.0.2 | 143 | 9/2/2023 |
0.0.1 | 140 | 9/2/2023 |