File tree 4 files changed +7
-2
lines changed
documentation/pages/usage/components
kotti-ui/source/kotti-table
4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -386,6 +386,7 @@ export default defineComponent({
386
386
select: rowIndex === 1 ,
387
387
},
388
388
id: String (row .id ),
389
+ isLoading: rowIndex === 2 ,
389
390
}),
390
391
hasDragAndDrop: booleanFlags .value .hasDragAndDrop ,
391
392
id: ' example' ,
Original file line number Diff line number Diff line change @@ -227,6 +227,7 @@ export default defineComponent({
227
227
' kt-table-row--is-click-disabled' : behavior .disable ?.click ,
228
228
' kt-table-row--is-interactive' :
229
229
! behavior .disable ?.click && behavior .click ,
230
+ ' kt-table-row--is-loading skeleton rectangle' : behavior .isLoading ,
230
231
' kt-table-row--is-selected' : row .getIsSelected (),
231
232
}),
232
233
expandedColSpan: row .getAllCells ().length ,
@@ -648,8 +649,9 @@ tr.kt-table-row {
648
649
}
649
650
}
650
651
651
- & --is-loading {
652
- text-align : center ;
652
+ & --is-loading .rectangle {
653
+ display : table-row ;
654
+ height : unset ;
653
655
}
654
656
655
657
& --is-selected {
Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ export const paramsSchema = z
135
135
} )
136
136
. optional ( ) ,
137
137
id : z . string ( ) ,
138
+ isLoading : z . boolean ( ) . optional ( ) ,
138
139
} ) ,
139
140
) ,
140
141
hasDragAndDrop : z . boolean ( ) . default ( false ) ,
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ export type GetRowBehavior<
51
51
select : boolean
52
52
}
53
53
id : string
54
+ isLoading ?: boolean
54
55
}
55
56
56
57
export module KottiTable {
You can’t perform that action at this time.
0 commit comments