@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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
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";
|