mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 09:21:24 +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>
9 lines
337 B
C#
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> |