File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
src/BootstrapBlazor/Components/Calendar Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 8686 <table cellspacing =" 0" cellpadding =" 0" class =" calendar-table table-week" >
8787 <thead >
8888 <tr >
89+ @if (AdditionalHeaders != null )
90+ {
91+ foreach (var item in AdditionalHeaders )
92+ {
93+ @RenderAddHeader(item)
94+ }
95+ }
8996 @for ( var index = 0 ; index < 7 ; index ++ )
9097 {
9198 @RenderWeekHeader(index)
115122 < div > @GetWeekDayString (index )< / div >
116123 < / div >
117124 < / th > ;
125+
126+ RenderFragment <string > RenderAddHeader => name =>
127+ @< th >
128+ < div class = " week-header" >
129+ < div >< span class = " d-none d-sm-inline-block" > @name < / span >< / div >
130+ < / div >
131+ < / th > ;
118132}
Original file line number Diff line number Diff line change @@ -173,6 +173,12 @@ protected int GetWeekCount()
173173 [ Parameter ]
174174 public RenderFragment ? ChildContent { get ; set ; }
175175
176+ /// <summary>
177+ /// 获得/设置 附加列
178+ /// </summary>
179+ [ Parameter ]
180+ public string [ ] ? AdditionalHeaders { get ; set ; }
181+
176182 /// <summary>
177183 /// 获得/设置 单元格模板
178184 /// </summary>
You can’t perform that action at this time.
0 commit comments