Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/Components/HtmlTag/Link.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@namespace BootstrapBlazor.Components
@inherits BootstrapComponentBase

<link @attributes="AdditionalAttributes" href="@GetHref()" rel="stylesheet" />
<link @attributes="AdditionalAttributes" href="@GetHref()" rel="@Rel" />
7 changes: 7 additions & 0 deletions src/BootstrapBlazor/Components/HtmlTag/Link.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ public partial class Link
[EditorRequired]
public string? Href { get; set; }

/// <summary>
/// 获得/设置 Rel 属性值, 默认 stylesheet
/// </summary>
[Parameter]
[EditorRequired]
public string? Rel { get; set; }= "stylesheet";

/// <summary>
/// 获得/设置 版本号 默认 null 自动生成
/// </summary>
Expand Down