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: {
859859 return (
860860 < TableSummary
861861 tableSize = { size }
862+ expandableRows = { Boolean ( expansion . expandModalView ) }
862863 summaryRows = { parseInt ( summaryRows ) }
863864 columns = { columns }
864865 summaryRowStyle = { summaryRowStyle }
Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ function TableSummaryCellView(props: {
164164
165165export function TableSummary ( props : {
166166 tableSize : string ;
167+ expandableRows : boolean ;
167168 summaryRows : number ;
168169 columns : ColumnComp [ ] ;
169170 summaryRowStyle : TableSummaryRowStyleType ;
@@ -173,8 +174,12 @@ export function TableSummary(props: {
173174 summaryRows,
174175 summaryRowStyle,
175176 tableSize,
177+ expandableRows,
176178 } = 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+ }
178183
179184 if ( ! visibleColumns . length ) return < > </ > ;
180185
@@ -184,7 +189,6 @@ export function TableSummary(props: {
184189 < TableSummaryRow key = { rowIndex } >
185190 { visibleColumns . map ( ( column , index ) => {
186191 const summaryColumn = column . children . summaryColumns . getView ( ) [ rowIndex ] . getView ( ) ;
187- console . log ( summaryColumn . cellTooltip )
188192 return (
189193 < TableSummaryCellView
190194 index = { index }
You can’t perform that action at this time.
0 commit comments