diff --git a/.husky/pre-commit b/.husky/pre-commit
index cf0c46b93..041c660c9 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1,4 +1 @@
-#!/usr/bin/env sh
-. "$(dirname -- "$0")/_/husky.sh"
-
npx --no-install lint-staged
diff --git a/src/Cell/index.tsx b/src/Cell/index.tsx
index e8bd1e415..90bb04a48 100644
--- a/src/Cell/index.tsx
+++ b/src/Cell/index.tsx
@@ -61,8 +61,7 @@ const getTitleFromCellRenderChildren = ({
children,
}: Pick
Name
Age
@@ -44,7 +42,6 @@ LoadedCheerio {
>
27
@@ -67,7 +63,6 @@ LoadedCheerio {
>
1
@@ -90,7 +84,6 @@ LoadedCheerio {
>
28
@@ -174,21 +166,18 @@ LoadedCheerio {
Name
Age
Gender
@@ -253,19 +242,16 @@ LoadedCheerio {
Lucy
27
F
@@ -284,19 +270,16 @@ LoadedCheerio {
Jack
28
M
@@ -368,21 +351,18 @@ LoadedCheerio {
Name
Age
Gender
@@ -447,19 +427,16 @@ LoadedCheerio {
Lucy
27
F
@@ -478,19 +455,16 @@ LoadedCheerio {
Jack
28
M
@@ -553,14 +527,12 @@ LoadedCheerio {
Name
Age
@@ -575,13 +547,11 @@ LoadedCheerio {
>
Jack
28
@@ -592,13 +562,11 @@ LoadedCheerio {
>
Jack
28
@@ -609,13 +577,11 @@ LoadedCheerio {
>
Jack
28
@@ -688,14 +654,12 @@ LoadedCheerio {
class="rc-table-cell rc-table-cell-fix-left rc-table-cell-fix-left-last"
scope="col"
style="position: sticky; left: 0px;"
- title="Name"
>
Name
Age
@@ -703,7 +667,6 @@ LoadedCheerio {
class="rc-table-cell rc-table-cell-fix-right rc-table-cell-fix-right-first"
scope="col"
style="position: sticky; right: 0px;"
- title="Gender"
>
Gender
@@ -769,20 +732,17 @@ LoadedCheerio {
Lucy
27
F
@@ -819,20 +779,17 @@ LoadedCheerio {
Jack
28
M
@@ -912,14 +869,12 @@ LoadedCheerio {
Name
Age
@@ -934,7 +889,6 @@ LoadedCheerio {
>
27
@@ -957,7 +910,6 @@ LoadedCheerio {
>
1
@@ -980,7 +931,6 @@ LoadedCheerio {
>
28
@@ -1055,14 +1004,12 @@ LoadedCheerio {
Name
Age
@@ -1077,7 +1024,6 @@ LoadedCheerio {
>
27
@@ -1100,7 +1045,6 @@ LoadedCheerio {
>
28
@@ -1123,7 +1066,6 @@ LoadedCheerio {
>
28
@@ -1146,7 +1087,6 @@ LoadedCheerio {
>
28
@@ -1169,7 +1108,6 @@ LoadedCheerio {
>
28
@@ -1192,7 +1129,6 @@ LoadedCheerio {
>
28
@@ -1276,21 +1211,18 @@ LoadedCheerio {
Name
Age
Gender
@@ -1355,19 +1287,16 @@ LoadedCheerio {
Lucy
27
F
@@ -1386,19 +1315,16 @@ LoadedCheerio {
Jack
28
M
@@ -1469,21 +1395,18 @@ LoadedCheerio {
Name
Age
Gender
@@ -1544,19 +1467,16 @@ LoadedCheerio {
>
Lucy
27
F
@@ -1575,19 +1495,16 @@ LoadedCheerio {
>
Jack
28
M
diff --git a/tests/__snapshots__/FixedColumn.spec.jsx.snap b/tests/__snapshots__/FixedColumn.spec.jsx.snap
new file mode 100644
index 000000000..249dfc2ef
--- /dev/null
+++ b/tests/__snapshots__/FixedColumn.spec.jsx.snap
@@ -0,0 +1,3145 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`Table.FixedColumn > fixed column renders correctly RTL 1`] = `
+LoadedCheerio {
+ "0":
+ , + ], + "endIndex": null, + "next": null, + "parent": null, + "prev": null, + "startIndex": null, + "type": "root", + "x-mode": "quirks", + }, + "_root": [Circular], + "length": 1, + "options": { + "decodeEntities": true, + "xml": false, + }, + }, + "length": 1, + "options": { + "decodeEntities": true, + "xml": false, + }, +} +`; + +exports[`Table.FixedColumn > renders correctly > all column has width should use it 1`] = ` +LoadedCheerio { + "0":
, + "_root": LoadedCheerio { + "0": Document { + "children": [ + +
+
+ , + ], + "endIndex": null, + "next": null, + "parent": null, + "prev": null, + "startIndex": null, + "type": "root", + "x-mode": "quirks", + }, + "_root": [Circular], + "length": 1, + "options": { + "decodeEntities": true, + "xml": false, + }, + }, + "length": 1, + "options": { + "decodeEntities": true, + "xml": false, + }, +} +`; + +exports[`Table.FixedColumn > renders correctly > scrollX - with data 1`] = ` +LoadedCheerio { + "0":
, + "_root": LoadedCheerio { + "0": Document { + "children": [ + +
+
+ , + ], + "endIndex": null, + "next": null, + "parent": null, + "prev": null, + "startIndex": null, + "type": "root", + "x-mode": "quirks", + }, + "_root": [Circular], + "length": 1, + "options": { + "decodeEntities": true, + "xml": false, + }, + }, + "length": 1, + "options": { + "decodeEntities": true, + "xml": false, + }, +} +`; + +exports[`Table.FixedColumn > renders correctly > scrollX - without data 1`] = ` +LoadedCheerio { + "0":
, + "_root": LoadedCheerio { + "0": Document { + "children": [ + +
+
+ , + ], + "endIndex": null, + "next": null, + "parent": null, + "prev": null, + "startIndex": null, + "type": "root", + "x-mode": "quirks", + }, + "_root": [Circular], + "length": 1, + "options": { + "decodeEntities": true, + "xml": false, + }, + }, + "length": 1, + "options": { + "decodeEntities": true, + "xml": false, + }, +} +`; + +exports[`Table.FixedColumn > renders correctly > scrollXY - with data 1`] = ` +LoadedCheerio { + "0":
+ 123 + | ++ + + 1111 + + + | ++ | + xxxxxxxx + | ++ xxxxxxxx + | ++ xxxxxxxx + | ++ xxxxxxxx + | ++ xxxxxxxx + | ++ xxxxxxxx + | ++ xxxxxxxx + | ++ xxxxxxxx + | ++ xxxxxxxx + | +
+ cdd + | ++ + + 1111 + + + | ++ | + edd12221 + | ++ edd12221 + | ++ edd12221 + | ++ edd12221 + | ++ edd12221 + | ++ edd12221 + | ++ edd12221 + | ++ edd12221 + | ++ edd12221 + | +
+ 133 + | ++ + + 1111 + + + | ++ edd12221 + | ++ | + | + | + | + | + | + | + | + |
+ 133 + | ++ + + 1111 + + + | ++ edd12221 + | ++ | + | + | + | + | + | + | + | + |
+ 133 + | ++ + + 1111 + + + | ++ edd12221 + | ++ | + | + | + | + | + | + | + | + |
+ 133 + | ++ + + 1111 + + + | ++ edd12221 + | ++ | + | + | + | + | + | + | + | + |
+ 133 + | ++ + + 1111 + + + | ++ edd12221 + | ++ | + | + | + | + | + | + | + | + |
+ 133 + | ++ + + 1111 + + + | ++ edd12221 + | ++ | + | + | + | + | + | + | + | + |
+ 133 + | ++ + + 1111 + + + | ++ edd12221 + | ++ | + | + | + | + | + | + | + | + |
, + "_root": LoadedCheerio { + "0": Document { + "children": [ + +
+
+ , + ], + "endIndex": null, + "next": null, + "parent": null, + "prev": null, + "startIndex": null, + "type": "root", + "x-mode": "quirks", + }, + "_root": [Circular], + "length": 1, + "options": { + "decodeEntities": true, + "xml": false, + }, + }, + "length": 1, + "options": { + "decodeEntities": true, + "xml": false, + }, +} +`; + +exports[`Table.FixedColumn > renders correctly > scrollXY - without data 1`] = ` +LoadedCheerio { + "0":
+ | + +
, + "_root": LoadedCheerio { + "0": Document { + "children": [ + +
+
+ , + ], + "endIndex": null, + "next": null, + "parent": null, + "prev": null, + "startIndex": null, + "type": "root", + "x-mode": "quirks", + }, + "_root": [Circular], + "length": 1, + "options": { + "decodeEntities": true, + "xml": false, + }, + }, + "length": 1, + "options": { + "decodeEntities": true, + "xml": false, + }, +} +`; diff --git a/tests/__snapshots__/FixedColumn.spec.tsx.snap b/tests/__snapshots__/FixedColumn.spec.tsx.snap index 7cc8573c3..d108ba0f9 100644 --- a/tests/__snapshots__/FixedColumn.spec.tsx.snap +++ b/tests/__snapshots__/FixedColumn.spec.tsx.snap @@ -43,7 +43,6 @@ LoadedCheerio { class="rc-table-cell rc-table-cell-fix-right" scope="col" style="position: sticky; right: 0px;" - title="title1" > title1 @@ -58,63 +57,54 @@ LoadedCheerio {
@@ -122,7 +112,6 @@ LoadedCheerio { class="rc-table-cell rc-table-cell-fix-left rc-table-cell-fix-left-first" scope="col" style="position: sticky; left: 0px;" - title="title12" > title12 @@ -252,7 +241,6 @@ LoadedCheerio {
@@ -270,56 +258,47 @@ LoadedCheerio { />
@@ -331,7 +310,6 @@ LoadedCheerio {
@@ -349,56 +327,47 @@ LoadedCheerio { />
@@ -410,7 +379,6 @@ LoadedCheerio {
@@ -425,7 +393,6 @@ LoadedCheerio {
@@ -465,7 +432,6 @@ LoadedCheerio {
@@ -480,7 +446,6 @@ LoadedCheerio {
@@ -520,7 +485,6 @@ LoadedCheerio {
@@ -535,7 +499,6 @@ LoadedCheerio {
@@ -575,7 +538,6 @@ LoadedCheerio {
@@ -590,7 +552,6 @@ LoadedCheerio {
@@ -630,7 +591,6 @@ LoadedCheerio {
@@ -645,7 +605,6 @@ LoadedCheerio {
@@ -685,7 +644,6 @@ LoadedCheerio {
@@ -700,7 +658,6 @@ LoadedCheerio {
@@ -740,7 +697,6 @@ LoadedCheerio {
@@ -755,7 +711,6 @@ LoadedCheerio {
@@ -908,7 +863,6 @@ LoadedCheerio { class="rc-table-cell rc-table-cell-fix-left" scope="col" style="position: sticky; left: 0px;" - title="title1" > title1 @@ -927,63 +881,54 @@ LoadedCheerio {
@@ -991,7 +936,6 @@ LoadedCheerio { class="rc-table-cell rc-table-cell-fix-right rc-table-cell-fix-right-first" scope="col" style="position: sticky; right: 0px;" - title="title12" > title12 @@ -1121,7 +1065,6 @@ LoadedCheerio {
@@ -1143,56 +1086,47 @@ LoadedCheerio { />
@@ -1204,7 +1138,6 @@ LoadedCheerio {
@@ -1226,56 +1159,47 @@ LoadedCheerio { />
@@ -1287,7 +1211,6 @@ LoadedCheerio {
@@ -1306,7 +1229,6 @@ LoadedCheerio {
@@ -1346,7 +1268,6 @@ LoadedCheerio {
@@ -1365,7 +1286,6 @@ LoadedCheerio {
@@ -1405,7 +1325,6 @@ LoadedCheerio {
@@ -1424,7 +1343,6 @@ LoadedCheerio {
@@ -1464,7 +1382,6 @@ LoadedCheerio {
@@ -1483,7 +1400,6 @@ LoadedCheerio {
@@ -1523,7 +1439,6 @@ LoadedCheerio {
@@ -1542,7 +1457,6 @@ LoadedCheerio {
@@ -1582,7 +1496,6 @@ LoadedCheerio {
@@ -1601,7 +1514,6 @@ LoadedCheerio {
@@ -1641,7 +1553,6 @@ LoadedCheerio {
@@ -1660,7 +1571,6 @@ LoadedCheerio {
@@ -1772,7 +1682,6 @@ LoadedCheerio { class="rc-table-cell rc-table-cell-fix-left" scope="col" style="position: sticky; left: 0px;" - title="title1" > title1 @@ -1791,63 +1700,54 @@ LoadedCheerio {
@@ -1855,7 +1755,6 @@ LoadedCheerio { class="rc-table-cell rc-table-cell-fix-right rc-table-cell-fix-right-first" scope="col" style="position: sticky; right: 0px;" - title="title12" > title12 @@ -1984,7 +1883,6 @@ LoadedCheerio {
@@ -2565,7 +2430,6 @@ LoadedCheerio {
@@ -2584,7 +2448,6 @@ LoadedCheerio {
@@ -2624,7 +2487,6 @@ LoadedCheerio {
@@ -2643,7 +2505,6 @@ LoadedCheerio {
@@ -2683,7 +2544,6 @@ LoadedCheerio {
@@ -2702,7 +2562,6 @@ LoadedCheerio {
@@ -2742,7 +2601,6 @@ LoadedCheerio {
@@ -2761,7 +2619,6 @@ LoadedCheerio {
@@ -2801,7 +2658,6 @@ LoadedCheerio {
@@ -2820,7 +2676,6 @@ LoadedCheerio {
@@ -2860,7 +2715,6 @@ LoadedCheerio {
@@ -2879,7 +2733,6 @@ LoadedCheerio {
@@ -3012,7 +2865,6 @@ LoadedCheerio { class="rc-table-cell rc-table-cell-fix-left" scope="col" style="position: sticky; left: 0px;" - title="title1" > title1 @@ -3031,63 +2883,54 @@ LoadedCheerio {
@@ -3095,7 +2938,6 @@ LoadedCheerio { class="rc-table-cell rc-table-cell-fix-right rc-table-cell-fix-right-first" scope="col" style="position: sticky; right: 15px;" - title="title12" > title12 @@ -3257,7 +3099,6 @@ LoadedCheerio {
@@ -6279,26 +5905,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -6341,26 +5963,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -6403,26 +6021,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -6465,26 +6079,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -6527,26 +6137,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -6589,26 +6195,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -6651,26 +6253,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -6713,26 +6311,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -6775,26 +6369,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -6837,26 +6427,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -6899,26 +6485,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -6961,26 +6543,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -7023,26 +6601,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -7085,26 +6659,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -7147,26 +6717,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -7209,26 +6775,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -7271,26 +6833,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -7333,26 +6891,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -7395,26 +6949,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -7457,26 +7007,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -7519,26 +7065,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -7581,26 +7123,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -7643,26 +7181,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -7705,26 +7239,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -7767,26 +7297,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -7829,26 +7355,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -7891,26 +7413,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -7953,26 +7471,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -8015,26 +7529,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -8077,26 +7587,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -8139,26 +7645,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -8201,26 +7703,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -8263,26 +7761,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -8325,26 +7819,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -8387,26 +7877,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -8449,26 +7935,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -8511,26 +7993,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -8573,26 +8051,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -8635,26 +8109,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -8697,26 +8167,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -8759,26 +8225,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -8821,26 +8283,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -8883,26 +8341,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -8945,26 +8399,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -9007,26 +8457,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -9069,26 +8515,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -9131,26 +8573,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -9193,26 +8631,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -9255,26 +8689,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -9317,26 +8747,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -9379,26 +8805,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -9441,26 +8863,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -9503,26 +8921,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -9565,26 +8979,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -9627,26 +9037,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -9689,26 +9095,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -9751,26 +9153,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -9813,26 +9211,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -9875,26 +9269,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -9937,26 +9327,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -9999,26 +9385,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -10061,26 +9443,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -10123,26 +9501,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -10185,26 +9559,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -10247,26 +9617,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -10309,26 +9675,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -10371,26 +9733,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -10433,26 +9791,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -10495,26 +9849,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -10557,26 +9907,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -10619,26 +9965,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -10681,26 +10023,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -10743,26 +10081,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -10805,26 +10139,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -10867,26 +10197,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -10929,26 +10255,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -10991,26 +10313,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -11053,26 +10371,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -11115,26 +10429,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -11177,26 +10487,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -11239,26 +10545,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -11301,26 +10603,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -11363,26 +10661,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -11425,26 +10719,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -11487,26 +10777,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -11549,26 +10835,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -11611,26 +10893,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -11673,26 +10951,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -11735,26 +11009,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -11797,26 +11067,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -11859,26 +11125,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -11921,26 +11183,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -11983,26 +11241,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -12045,26 +11299,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -12107,26 +11357,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -12169,26 +11415,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -12231,26 +11473,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -12293,26 +11531,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -12355,26 +11589,22 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
@@ -12412,7 +11642,6 @@ exports[`Table.FixedColumn > shadow should display correctly 2`] = ` colspan="4" scope="colgroup" style="position: sticky; left: 0px;" - title="父表头右侧的阴影导致整个表格最右侧有空隙" > 父表头右侧的阴影导致整个表格最右侧有空隙 @@ -12427,7 +11656,6 @@ exports[`Table.FixedColumn > shadow should display correctly 2`] = ` class="rc-table-cell rc-table-cell-fix-left" scope="col" style="position: sticky; left: 0px;" - title="Name0" > Name0 @@ -12435,14 +11663,12 @@ exports[`Table.FixedColumn > shadow should display correctly 2`] = ` class="rc-table-cell rc-table-cell-fix-left rc-table-cell-fix-left-last" scope="col" style="position: sticky; left: 0px;" - title="Name1" > Name1
@@ -12450,7 +11676,6 @@ exports[`Table.FixedColumn > shadow should display correctly 2`] = ` class="rc-table-cell rc-table-cell-fix-right rc-table-cell-fix-right-first" scope="col" style="position: sticky; right: 15px;" - title="Name3" > Name3 diff --git a/tests/__snapshots__/Summary.spec.tsx.snap b/tests/__snapshots__/Summary.spec.tsx.snap index 077a54c7f..40aec2575 100644 --- a/tests/__snapshots__/Summary.spec.tsx.snap +++ b/tests/__snapshots__/Summary.spec.tsx.snap @@ -10,20 +10,17 @@ LoadedCheerio { class="rc-table-cell rc-table-cell-fix-left rc-table-cell-fix-left-last" colspan="2" style="position: sticky; left: 0px;" - title="Light" > Light
diff --git a/tests/__snapshots__/Table.spec.jsx.snap b/tests/__snapshots__/Table.spec.jsx.snap index 553f995a4..c3261a2ff 100644 --- a/tests/__snapshots__/Table.spec.jsx.snap +++ b/tests/__snapshots__/Table.spec.jsx.snap @@ -25,14 +25,12 @@ LoadedCheerio {
@@ -47,13 +45,11 @@ LoadedCheerio { >
@@ -64,13 +60,11 @@ LoadedCheerio { >
@@ -138,7 +132,6 @@ LoadedCheerio { class="rc-table-cell" name="my-header-cell" scope="col" - title="Name" > Name @@ -156,7 +149,6 @@ LoadedCheerio {
@@ -169,7 +161,6 @@ LoadedCheerio {
@@ -238,7 +229,6 @@ LoadedCheerio { name="my-header-cell" scope="col" style="position: sticky; left: 0px;" - title="Name" > Name @@ -246,7 +236,6 @@ LoadedCheerio { class="rc-table-cell" name="my-header-cell" scope="col" - title="Age" > Age @@ -255,7 +244,6 @@ LoadedCheerio { name="my-header-cell" scope="col" style="position: sticky; right: 15px;" - title="Gender" > Gender @@ -323,14 +311,12 @@ LoadedCheerio { class="rc-table-cell rc-table-cell-fix-left rc-table-cell-fix-left-last" name="my-body-cell" style="position: sticky; left: 0px;" - title="Lucy" > Lucy
@@ -338,7 +324,6 @@ LoadedCheerio { class="rc-table-cell rc-table-cell-fix-right rc-table-cell-fix-right-first" name="my-body-cell" style="position: sticky; right: 0px;" - title="F" > F @@ -480,21 +465,18 @@ LoadedCheerio {
@@ -512,7 +494,6 @@ LoadedCheerio { />
@@ -529,7 +510,6 @@ LoadedCheerio { />
@@ -596,7 +576,6 @@ LoadedCheerio { class="rc-table-cell" colspan="2" scope="colgroup" - title="Name" > Name @@ -612,7 +591,6 @@ LoadedCheerio {
@@ -623,13 +601,11 @@ LoadedCheerio { >
@@ -692,7 +668,6 @@ LoadedCheerio {
@@ -707,7 +682,6 @@ LoadedCheerio { >
@@ -718,7 +692,6 @@ LoadedCheerio { >
@@ -781,7 +754,6 @@ LoadedCheerio {
@@ -796,7 +768,6 @@ LoadedCheerio { >
@@ -807,7 +778,6 @@ LoadedCheerio { >
@@ -870,14 +840,12 @@ LoadedCheerio {
@@ -892,7 +860,6 @@ LoadedCheerio { >
@@ -906,7 +873,6 @@ LoadedCheerio { >
@@ -972,7 +938,6 @@ LoadedCheerio {
@@ -987,7 +952,6 @@ LoadedCheerio { >
@@ -998,7 +962,6 @@ LoadedCheerio { >
@@ -1140,14 +1103,12 @@ LoadedCheerio {
@@ -1162,14 +1123,12 @@ LoadedCheerio { >
@@ -1180,7 +1139,6 @@ LoadedCheerio { >
@@ -1251,7 +1209,6 @@ LoadedCheerio {
@@ -1317,7 +1274,6 @@ LoadedCheerio {
@@ -1326,7 +1282,6 @@ LoadedCheerio {
@@ -1340,7 +1295,6 @@ LoadedCheerio { >