ant-design-blazor/components/anchor/AnchorLink.razor
Brian Ding 8c8a2e3a79 feat: add anchor component (#281)
* feat(module: anchor): add component anchor

* feat(module: anchor): add component anchor

* feat(module: anchor): implement OnScroll

* feat(module: anchor): activate anchorlink

* feat(module: anchor): implement basic demo

* feat(module: anchor): implement static demo

* feat(module: anchor): add OnClick & OnChange

* feat(module: anchor): implement demos

* feat(module: anchor): move IAnchor to folder anchor

* fix: click hash link

* feat(module: anchor): improve cascading value & fix active anchor highlight

* feat(module: anchor): cascading root/parent

* fix(module: anchor): highlight active anchor link

* fix: remove duplicated cascading value

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-30 22:03:31 +08:00

9 lines
337 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
<div class="@ClassMapper.Class" style="@Style" @ref="@_self" id="@Id">
<a title="@Title" class="@_titleClass.Class" href="javascript:void(0)" @onclick="(e)=>OnClick(e)">@Title</a>
<CascadingValue Value="this" Name="Parent">
@ChildContent
</CascadingValue>
</div>