File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed
src/BootstrapBlazor.Server/Components/Samples Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ @page " /affix"
2+
3+ <h3 >@Localizer ["AffixTitle"]</h3 >
4+
5+ <h4 >@Localizer ["AffixIntro"]</h4 >
6+
7+ <DemoBlock Title =" @Localizer[" AffixNormalTitle " ]" Introduction =" @Localizer[" AffixNormalIntro " ]" Name =" Normal" >
8+ <div style =" overflow : auto ; height : 200px ;" >
9+ <div style =" height : 50px ;" >标题栏 Header</div >
10+ <Affix >
11+ <div style =" line-height : 50px ;" >固定行 Affix</div >
12+ </Affix >
13+ <div style =" height : 300px ;" >
14+ <p >向下滚动查看效果</p >
15+ <div >Scroll down to see the affix effect</div >
16+ </div >
17+ </div >
18+ </DemoBlock >
19+
20+ <DemoBlock Title =" @Localizer[" AffixPositionTitle " ]" Introduction =" @Localizer[" AffixPositionIntro " ]" Name =" Position" >
21+ <div style =" overflow : auto ; height : 200px ;" >
22+ <div style =" height : 50px ;" >标题栏 Header</div >
23+ <div style =" height : 300px ;" >
24+ <p >上下滚动查看效果</p >
25+ <div >Scroll up and down to see the effect</div >
26+ </div >
27+ <Affix Position =" AffixPosition.Bottom" Offset =" 10" >
28+ <div >底部固定行 Affix</div >
29+ </Affix >
30+ </div >
31+ </DemoBlock >
Original file line number Diff line number Diff line change 1+ // Licensed to the .NET Foundation under one or more agreements.
2+ // The .NET Foundation licenses this file to you under the Apache 2.0 License
3+ // See the LICENSE file in the project root for more information.
4+ // Maintainer: Argo Zhang([email protected] ) Website: https://www.blazor.zone 5+
6+ namespace BootstrapBlazor . Server . Components . Samples ;
7+
8+ /// <summary>
9+ /// Affixs 组件
10+ /// </summary>
11+ public partial class Affixs
12+ {
13+ [ Inject ]
14+ [ NotNull ]
15+ private IStringLocalizer < Affixs > ? Localizer { get ; set ; }
16+ }
You can’t perform that action at this time.
0 commit comments