File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
client/packages/lowcoder/src/comps/comps/tableComp Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -859,6 +859,7 @@ export function TableCompView(props: {
859
859
return (
860
860
< TableSummary
861
861
tableSize = { size }
862
+ expandableRows = { Boolean ( expansion . expandModalView ) }
862
863
summaryRows = { parseInt ( summaryRows ) }
863
864
columns = { columns }
864
865
summaryRowStyle = { summaryRowStyle }
Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ function TableSummaryCellView(props: {
164
164
165
165
export function TableSummary ( props : {
166
166
tableSize : string ;
167
+ expandableRows : boolean ;
167
168
summaryRows : number ;
168
169
columns : ColumnComp [ ] ;
169
170
summaryRowStyle : TableSummaryRowStyleType ;
@@ -173,8 +174,12 @@ export function TableSummary(props: {
173
174
summaryRows,
174
175
summaryRowStyle,
175
176
tableSize,
177
+ expandableRows,
176
178
} = props ;
177
- const visibleColumns = columns . filter ( col => ! col . getView ( ) . hide ) ;
179
+ let visibleColumns = columns . filter ( col => ! col . getView ( ) . hide ) ;
180
+ if ( expandableRows ) {
181
+ visibleColumns . unshift ( new ColumnComp ( { } ) ) ;
182
+ }
178
183
179
184
if ( ! visibleColumns . length ) return < > </ > ;
180
185
@@ -184,7 +189,6 @@ export function TableSummary(props: {
184
189
< TableSummaryRow key = { rowIndex } >
185
190
{ visibleColumns . map ( ( column , index ) => {
186
191
const summaryColumn = column . children . summaryColumns . getView ( ) [ rowIndex ] . getView ( ) ;
187
- console . log ( summaryColumn . cellTooltip )
188
192
return (
189
193
< TableSummaryCellView
190
194
index = { index }
You can’t perform that action at this time.
0 commit comments