Closed jschyz closed 1 month ago
The changes primarily involve enhancing and restructuring test setups for the table-module
package and adding logic to calculate the length and widths of table columns. This includes refactoring mock implementations in tests to improve readability and modifying the parse-elem-html.ts
to dynamically determine the number of columns and their widths based on HTML structure.
Files | Change Summary |
---|---|
packages/.../delete-col.test.ts |
Updated mocking utilities and restructured filledMatrix return value for better readability. |
packages/.../delete-row.test.ts |
Reformatted the return value of filledMatrix mock implementation to enhance readability. |
packages/.../insert-col.test.ts |
Adjusted mocks and restructured filledMatrix return value, focusing on an updated nested array structure with object properties. |
packages/.../src/module/parse-elem-html.ts |
Added logic to dynamically determine cellLength and initialized columnWidths based on the number of children in the first <tr> of $elem . |
In lines of code, a change is spun,
Mocks and tests refined, well done.
Columns counted, widths divine,
Parsing tables, a dance in line.
With each commit, a brighter hue,
Our module blooms with updates new. 🌸
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
因粘贴时,缺少列宽的宽度设置,现补上
Summary by CodeRabbit