We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a760712 commit 75c673eCopy full SHA for 75c673e
src/BootstrapBlazor/Components/HtmlTag/Link.razor
@@ -1,4 +1,4 @@
1
@namespace BootstrapBlazor.Components
2
@inherits BootstrapComponentBase
3
4
-<link @attributes="AdditionalAttributes" href="@GetHref()" rel="stylesheet" />
+<link @attributes="AdditionalAttributes" href="@GetHref()" rel="@Rel" />
src/BootstrapBlazor/Components/HtmlTag/Link.razor.cs
@@ -16,6 +16,13 @@ public partial class Link
16
[EditorRequired]
17
public string? Href { get; set; }
18
19
+ /// <summary>
20
+ /// 获得/设置 Rel 属性值, 默认 stylesheet
21
+ /// </summary>
22
+ [Parameter]
23
+ [EditorRequired]
24
+ public string? Rel { get; set; }= "stylesheet";
25
+
26
/// <summary>
27
/// 获得/设置 版本号 默认 null 自动生成
28
/// </summary>
0 commit comments