Skip to content

Commit 70ebace

Browse files
feat(ScrollIntoViewBehavior): add Description attribute (#4989)
* refactor: 增加 Desc 标签 * chore: bump version 9.2.0-beta03 Co-Authored-By: zph19970424 <[email protected]> --------- Co-Authored-By: zph19970424 <[email protected]>
1 parent da5fde6 commit 70ebace

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.2.0-beta02</Version>
4+
<Version>9.2.0-beta03</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Options/ScrollIntoViewOptions.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// See the LICENSE file in the project root for more information.
44
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone
55

6+
using System.ComponentModel;
7+
68
namespace BootstrapBlazor.Components;
79

810
/// <summary>
@@ -35,16 +37,19 @@ public enum ScrollIntoViewBehavior
3537
/// <summary>
3638
/// scrolling should animate smoothly
3739
/// </summary>
40+
[Description("smooth")]
3841
Smooth,
3942

4043
/// <summary>
4144
/// scrolling should happen instantly in a single jump
4245
/// </summary>
46+
[Description("instant")]
4347
Instant,
4448

4549
/// <summary>
4650
/// scroll behavior is determined by the computed value of scroll-behavior
4751
/// </summary>
52+
[Description("auto")]
4853
Auto
4954
}
5055

@@ -57,21 +62,25 @@ public enum ScrollIntoViewBlock
5762
/// <summary>
5863
/// Start
5964
/// </summary>
65+
[Description("start")]
6066
Start,
6167

6268
/// <summary>
6369
/// Center
6470
/// </summary>
71+
[Description("center")]
6572
Center,
6673

6774
/// <summary>
6875
/// End
6976
/// </summary>
77+
[Description("end")]
7078
End,
7179

7280
/// <summary>
7381
/// Nearest
7482
/// </summary>
83+
[Description("nearest")]
7584
Nearest
7685
}
7786

@@ -84,20 +93,24 @@ public enum ScrollIntoViewInline
8493
/// <summary>
8594
/// Start
8695
/// </summary>
96+
[Description("start")]
8797
Start,
8898

8999
/// <summary>
90100
/// Center
91101
/// </summary>
102+
[Description("center")]
92103
Center,
93104

94105
/// <summary>
95106
/// End
96107
/// </summary>
108+
[Description("end")]
97109
End,
98110

99111
/// <summary>
100112
/// Nearest
101113
/// </summary>
114+
[Description("nearest")]
102115
Nearest
103116
}

0 commit comments

Comments
 (0)