@lensui/lens-table 0.1.13 → 0.1.14

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/dist/index.cjs CHANGED
@@ -1160,7 +1160,7 @@ function paintGrid(options) {
1160
1160
  ctx.beginPath();
1161
1161
  ctx.rect(x + 2, y + 1, Math.max(0, cellWidth - 4), cellHeight - 2);
1162
1162
  ctx.clip();
1163
- ctx.fillStyle = cellStyle?.color ?? colors.text;
1163
+ ctx.fillStyle = column.rowNumber && selectedRowKeys.has(rowKey) ? colors.selection : cellStyle?.color ?? colors.text;
1164
1164
  ctx.font = createCellFont(bodyFontSize);
1165
1165
  ctx.textBaseline = "alphabetic";
1166
1166
  ctx.textAlign = column.align === "right" ? "right" : column.align === "center" ? "center" : "left";
package/dist/index.js CHANGED
@@ -1130,7 +1130,7 @@ function paintGrid(options) {
1130
1130
  ctx.beginPath();
1131
1131
  ctx.rect(x + 2, y + 1, Math.max(0, cellWidth - 4), cellHeight - 2);
1132
1132
  ctx.clip();
1133
- ctx.fillStyle = cellStyle?.color ?? colors.text;
1133
+ ctx.fillStyle = column.rowNumber && selectedRowKeys.has(rowKey) ? colors.selection : cellStyle?.color ?? colors.text;
1134
1134
  ctx.font = createCellFont(bodyFontSize);
1135
1135
  ctx.textBaseline = "alphabetic";
1136
1136
  ctx.textAlign = column.align === "right" ? "right" : column.align === "center" ? "center" : "left";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lensui/lens-table",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "A lightweight, canvas-rendered React table component for LensUI.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",