Skip to content
Merged
Changes from 29 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
47cbc26
feat: 增加 Key 参数
ArgoZhang Aug 1, 2025
da33062
refactor: 使用回调方法 GetKeyByITem 获得行 Key 值
ArgoZhang Aug 1, 2025
e7dfe41
chore: bump version 9.6.5
ArgoZhang Aug 2, 2025
1a71e4c
feat: 增加 PdfOptions 配置项
ArgoZhang Oct 27, 2025
63ad92d
chore: bump version 9.6.6
ArgoZhang Oct 27, 2025
cce713e
refactor: 调整 IconTemplate 优先级别
ArgoZhang Oct 29, 2025
c8a6c7c
feat: 增加 ActionButtonTemplate 模板
ArgoZhang Oct 30, 2025
afa14bd
refactor: 增加条件
ArgoZhang Oct 30, 2025
be72b25
chore: bump version 9.6.7
ArgoZhang Oct 30, 2025
eed08c3
feat(IpAddress): support paste function (#7276)
ArgoZhang Dec 9, 2025
bfc8abb
chore: bump version 9.6.8
ArgoZhang Dec 9, 2025
943e0bb
feat(IpAddress): trigger ValueChanged on paste event (#7280)
ArgoZhang Dec 9, 2025
5260e88
chore: bump version 9.6.9
ArgoZhang Dec 9, 2025
044a84a
chore: 支持 Interop 参数
ArgoZhang Dec 9, 2025
77da6d8
chore: bump version 9.6.10
ArgoZhang Dec 9, 2025
924fcb8
feat: 增加 OnBeforeTreeItemClick 方法
ArgoZhang Dec 16, 2025
ffde92e
chore: bump version 9.6.11
ArgoZhang Dec 16, 2025
9fb4eda
refactor: 兼容嵌套问题
ArgoZhang Dec 18, 2025
ae0b16f
chore: bump version 9.6.12
ArgoZhang Dec 18, 2025
16782ef
feat: 支持端口
ArgoZhang Dec 18, 2025
740ebf1
chore: bump version 9.6-13-beta01
ArgoZhang Dec 18, 2025
1efed9a
chore: bump version 9.6.13
ArgoZhang Dec 18, 2025
8b0b637
feat(ZipArchiveService): add ArchiveDirectoryAsync method
ArgoZhang Dec 19, 2025
fd7a470
test: 增加单元测试
ArgoZhang Dec 19, 2025
69c80c2
chore: bump version 9.6.14
ArgoZhang Dec 19, 2025
f37c67a
Merge branch 'uni-lite' into dev-test
ArgoZhang Feb 7, 2026
95e1757
refactor: 增加 Key 参数
ArgoZhang Feb 7, 2026
3d21257
refactor: 取消冗余代码
ArgoZhang Feb 7, 2026
1874b20
revert: 撤销更改
ArgoZhang Feb 7, 2026
b711fd7
refactor: 移动 SetKey 位置
ArgoZhang Feb 7, 2026
4dbb91f
refactor: 调整序号
ArgoZhang Feb 7, 2026
50baf7c
test: 增加单元测试
ArgoZhang Feb 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions src/BootstrapBlazor/Components/BaseComponents/DynamicElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,14 @@ public class DynamicElement : BootstrapComponentBase
public bool GenerateElement { get; set; } = true;

/// <summary>
/// <para lang="zh">BuildRenderTree 方法</para>
/// <para lang="en">BuildRenderTree 方法</para>
/// <para lang="zh">获得/设置 元素唯一标识 Key 默认 null</para>
/// <para lang="en">Gets or sets the unique key of the element. Default null</para>
/// </summary>
[Parameter]
public object? Key { get; set; }

/// <summary>
/// <inheritdoc/>
/// </summary>
/// <param name="builder"></param>
protected override void BuildRenderTree(RenderTreeBuilder builder)
Expand Down Expand Up @@ -132,6 +138,11 @@ protected override void BuildRenderTree(RenderTreeBuilder builder)

builder.AddContent(8, ChildContent);

if (Key != null)
{
builder.SetKey(Key);
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
Outdated
}
Comment thread
ArgoZhang marked this conversation as resolved.
Outdated

if (GenerateElement || IsTriggerClick() || IsTriggerDoubleClick())
{
builder.CloseElement();
Expand Down