Skip to content

Commit 1baf42d

Browse files
QuietMisdreavusDobromir Hristov
andcommitted
use the dedicated class key
Co-authored-by: Dobromir Hristov <[email protected]>
1 parent d79a23a commit 1baf42d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/ContentNode.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ function renderNode(createElement, references) {
127127
const { colspan, rowspan } = extendedData[`${rowIndex}_${cellIndex}`] || {};
128128
// if either is `0`, then its spanned over and should not be rendered
129129
if (colspan === 0 || rowspan === 0) return null;
130-
const cellAttrs = attrs;
131130
const align = alignments[cellIndex] || TableColumnAlignments.unset;
132-
if (align !== TableColumnAlignments.unset) cellAttrs.class = `${align}-cell`;
133-
return createElement(element, { attrs: { ...cellAttrs, colspan, rowspan } }, (
131+
let classes = null;
132+
if (align !== TableColumnAlignments.unset) classes = `${align}-cell`;
133+
return createElement(element, { attrs: { ...attrs, colspan, rowspan }, class: classes }, (
134134
renderChildren(data)
135135
));
136136
};

0 commit comments

Comments
 (0)