File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
packages/bootstrap-vue-3/src/components/BTable Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 7575 v-for =" (field, index) in computedFields"
7676 :key =" field.key"
7777 v-bind =" field.tdAttr"
78- :class =" [
79- field.class,
80- field.tdClass,
81- field.variant ? `table-${field.variant}` : '',
82- tr?._cellVariants && tr?._cellVariants[field.key]
83- ? `table-${tr?._cellVariants[field.key]}`
84- : '',
85- ]"
78+ :class =" getFieldRowClasses(field, tr)"
8679 >
8780 <slot
8881 v-if =" $slots['cell(' + field.key + ')'] || $slots['cell()']"
@@ -366,6 +359,15 @@ const getFieldColumnClasses = (field: TableFieldObject) => [
366359 field .variant ? ` table-${field .variant } ` : undefined ,
367360 {' b-table-sortable-column' : isSortable .value && field .sortable },
368361]
362+ const getFieldRowClasses = (field : TableFieldObject , tr : TableItem ) => [
363+ field .class ,
364+ field .tdClass ,
365+ field .variant ? ` table-${field .variant } ` : ' ' ,
366+ tr ?._cellVariants && tr ?._cellVariants [field .key ] ? ` table-${tr ?._cellVariants [field .key ]} ` : ' ' ,
367+ {
368+ ' b-table-sticky-column' : field .stickyColumn ,
369+ },
370+ ]
369371
370372const getRowClasses = (item : TableItem ) => [
371373 item ._rowVariant ? ` table-${item ._rowVariant } ` : null ,
You can’t perform that action at this time.
0 commit comments