File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 5858 :style =" cellStyles(column)"
5959 @click =" sortColumn(column as InternalDataTableHeader)"
6060 >
61- <div :class =" cellAlignClasses(column.align as keyof Column)" >
61+ <div
62+ :class =" cellAlignClasses(column.align as keyof Column)"
63+ :style =" cellChildStyles(column)"
64+ >
6265 <span v-html =" renderCell(column)" ></span >
6366
6467 <template v-if =" column .sortable && slots [` header.sortIcon ` ]" >
@@ -221,6 +224,17 @@ const cellStyles = (column: { width?: string | number; }, dataTableExpand = fals
221224 });
222225};
223226
227+ const cellChildStyles = (column : Column ): CSSProperties => {
228+ const cellStyle = cellStyles (column );
229+
230+
231+ if (typeof props .headerColor === ' undefined' ) {
232+ return {};
233+ }
234+
235+ return { color: cellStyle .color };
236+ };
237+
224238
225239// -------------------------------------------------- Select //
226240const isIndeterminate = computed (() => {
You can’t perform that action at this time.
0 commit comments