Skip to content

Commit

Permalink
doc(ComponentLayout): refactor scroll behavior (#5091)
Browse files Browse the repository at this point in the history
* style: 移除样式

* doc: 重构注释

* refactor: 重构脚本

* chore: bump version 9.2.7-beta05

Co-Authored-By: Zeus <[email protected]>
Co-Authored-By: Alex chow <[email protected]>

* chore: bump version 9.2.7-beta06

---------

Co-authored-by: Zeus <[email protected]>
Co-authored-by: Alex chow <[email protected]>
  • Loading branch information
3 people authored Jan 11, 2025
1 parent 6f64911 commit 6d10281
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
}
if (Module != null)
{
await Module.InvokeVoidAsync("init");
await Module.InvokeVoidAsync("scrollToAnchor");
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function init() {
export function scrollToAnchor() {
const hash = decodeURI(location.hash)
if (hash) {
const anchor = hash.split('-')[0]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@
}

.main {
height: 100%;
width: calc(100% - var(--bb-sidebar-width));
}

Expand Down
4 changes: 2 additions & 2 deletions src/BootstrapBlazor/BootstrapBlazor.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>9.2.7-beta04</Version>
<Version>9.2.7-beta05</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ public abstract class IdComponentBase : BootstrapComponentBase
/// </summary>
[Parameter]
[NotNull]
public virtual string? Id { get; set; }
public string? Id { get; set; }

/// <summary>
/// 获得 IComponentIdGenerator 实例
/// 获得 <see cref="IComponentIdGenerator"/> 实例
/// </summary>
[Inject]
[NotNull]
Expand Down

0 comments on commit 6d10281

Please sign in to comment.