mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 13:08:23 +08:00
8c8a2e3a79
* 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>
16 lines
520 B
C#
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> |