File tree Expand file tree Collapse file tree 2 files changed +58
-0
lines changed
src/BootstrapBlazor.Server/Components/Components Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ @if (Context .Row .Id == 1 )
2+ {
3+ <tr >
4+ <td rowspan =" 4" >@Context.Row.DateTime </td >
5+ <td >@Context.Row.Name </td >
6+ <td >@Context.Row.Address </td >
7+ <td >@Context.Row.Count </td >
8+ </tr >
9+ }
10+ else if (Context .Row .Id == 2 )
11+ {
12+ <tr >
13+ <td rowspan =" 3" >@Context.Row.Name </td >
14+ <td >@Context.Row.Address </td >
15+ <td >@Context.Row.Count </td >
16+ </tr >
17+ }
18+ else if (Context .Row .Id == 3 )
19+ {
20+ <tr >
21+ <td rowspan =" 2" >@Context.Row.Address </td >
22+ <td >@Context.Row.Count </td >
23+ </tr >
24+ }
25+ else if (Context .Row .Id == 4 )
26+ {
27+ <tr >
28+ <td >@Context.Row.Count </td >
29+ </tr >
30+ }
31+ else
32+ {
33+ <tr >
34+ <td >@Context.Row.DateTime </td >
35+ <td >@Context.Row.Name </td >
36+ <td >@Context.Row.Address </td >
37+ <td >@Context.Row.Count </td >
38+ </tr >
39+ }
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 . Components ;
7+
8+ /// <summary>
9+ /// 自定义行组件
10+ /// </summary>
11+ public partial class MergeTableRow
12+ {
13+ /// <summary>
14+ /// 获得/设置 行上下文数据实例
15+ /// </summary>
16+ [ Parameter ]
17+ [ NotNull ]
18+ public TableRowContext < Foo > ? Context { get ; set ; }
19+ }
You can’t perform that action at this time.
0 commit comments