ant-design-blazor/components/anchor/Anchor.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

16 lines
520 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
<div class="ant-anchor-wrapper" style="max-height: 100vh;" id="@Id" @ref="@_self">
<div class="ant-anchor">
<div class="ant-anchor-ink" @ref="@_ink">
<span class="@_ballClass" style="@_ballStyle">
</span>
</div>
<CascadingValue Value="this" Name="Root">
<CascadingValue Value="this" Name="Parent">
@ChildContent
</CascadingValue>
</CascadingValue>
</div>
</div>