vueless 1.4.12-beta.8 → 1.4.12-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vueless",
|
|
3
|
-
"version": "1.4.12-beta.
|
|
3
|
+
"version": "1.4.12-beta.9",
|
|
4
4
|
"description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
|
|
5
5
|
"author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
|
|
6
6
|
"homepage": "https://vueless.com",
|
|
@@ -400,6 +400,7 @@ function renderNestedFirstCell(value: Cell, key: string, cellIndex: number): VNo
|
|
|
400
400
|
|
|
401
401
|
function renderTableCell(value: Cell, key: string, index: number): VNode {
|
|
402
402
|
const keyStr = String(key);
|
|
403
|
+
const column = props.columns.find((col) => col.key === key) ?? props.columns[index];
|
|
403
404
|
|
|
404
405
|
const nestedCellNode = isNestedFirstCell(index)
|
|
405
406
|
? renderNestedFirstCell(value, key, index)
|
|
@@ -414,12 +415,12 @@ function renderTableCell(value: Cell, key: string, index: number): VNode {
|
|
|
414
415
|
...props.attrs.bodyCellBaseAttrs.value,
|
|
415
416
|
class: cx([
|
|
416
417
|
props.attrs.bodyCellBaseAttrs.value.class,
|
|
417
|
-
|
|
418
|
+
column.tdClass,
|
|
418
419
|
getCellClasses(props.row, keyStr),
|
|
419
|
-
getStickyColumnClass(
|
|
420
|
+
getStickyColumnClass(column),
|
|
420
421
|
getSearchMatchCellClass(keyStr),
|
|
421
422
|
]),
|
|
422
|
-
style: getStickyColumnStyle(
|
|
423
|
+
style: getStickyColumnStyle(column),
|
|
423
424
|
"data-cell-key": key,
|
|
424
425
|
"data-test": getDataTest(`${key}-cell`),
|
|
425
426
|
},
|