Commit Graph

71 Commits

Author SHA1 Message Date
sea
5905ab430a fix(components): [table-v2] use keep-alive position top error (#20813)
* fix(components): [table-v2] use `keep-alive` position top error

* chore: del useless code

* chore: del useless code

* chore: add nextTick
2025-05-22 10:30:59 +08:00
知晓同丶
73150c1214 refactor(components): improve alignment type definitions (#20695)
* refactor(components): improve alignment type definitions

* fix: rename Alignment to Align

* refactor: rename align to columnAlignment

* fix: use values to perf types

* fix: remove useless isValidColumnAlignment
2025-05-20 17:30:54 +08:00
jiaxiang
c64d00b1af chore: [table-v2] remove ts-nocheck directive (#20202)
* refactor: [table-v2] remove ts-nocheck directive

* revert: revert
2025-05-20 17:27:47 +08:00
伊墨
097e3f08a1 fix(components): [table-v2] modify the width calculation logic (#19021)
* fix(components): [table-v2] modify the width calculation logic

* fix(components): [table-v2] resolved scrollbar width issue

* test(components): [scrollbar] fix test case error
2025-05-14 21:32:03 +08:00
sea
27229ac4fa fix(components): [table-v2] onEndReached executes multiple times (#20517) 2025-04-23 14:23:03 +08:00
Noblet Ouways
cae0590f6d docs: table-v2 add @end-reached parameter description (#20484) 2025-04-22 20:40:33 +08:00
YnacyZhang
a5b60869bc fix(components): [table-v2] loss of precision causes endReached to fail to trigger (#17065)
* fix(components): [table-v2] 修复如果高度存在小数可能导致计算精度丢失导致无法触发触底事件EndReached问题

* fix(components): [table-v2] 修复如果高度存在小数可能导致计算精度丢失无法触发触底事件EndReached问题

* Update packages/components/table-v2/src/use-table.ts

Co-authored-by: btea <2356281422@qq.com>

* fix(components): [table-v2] format code for better readability in use-table.ts

* fix(components): [table-v2] format code for better readability in use-table.ts

* fix(components): [table-v2] loss of precision causes endReached to fail to trigger

* fix(components): [table-v2] loss of precision causes endReached to fail to trigger

---------

Co-authored-by: ZhangYang <yang.zhang@linkkids.cn>
Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
2025-04-22 11:16:28 +08:00
Noblet Ouways
8b93dfd72a fix(components): [table-v2] reset lastVisitedColumnIdx if width change (#19757)
fix(components): [table-v2] reset lastVisitedColumnIdx if width change
2025-02-06 19:29:43 +08:00
hanchao-c0ldwave
a1fdd2c8c6 fix(components): [table-v2] make the fixed columns scroll like mainTable (#19104)
fix(components): [table-v2] Make the fixed columns scroll like mainTable

Make the fixed columns behave like the mainTable, where the rows containing fixedData stick in
place, and the rest of the rows scroll.

closed #19103
2025-01-24 16:02:29 +08:00
hanchao-c0ldwave
5afdd99392 fix(components): [table-v2] dynamic height causes overall calculation errors (#19082)
fix(components): [table-v2] 修复虚拟表格同时设置了动态行高和冻结列时,table高度计算错误问题

虚拟表格同时设置了动态行高和冻结列时,计算fixedTable高度时使用estimatedRowHeight乘以行数,而实际行高与estimatedRowHeight存在差异。修复方案是累加实际行高得到表格的实际rowsHeigt

closed #18655
2024-12-11 19:58:47 +08:00
Jungzl
7bba5332f1 chore: update dependencies (#18573)
* chore: update dependencies

typescript: v5.5
vue-tsc: v2
eslint: v8-latest
@commitlint/*: v18

* fix: apply suggestions

* fix: ignore some ts errors
2024-10-29 10:01:58 +08:00
jiaxiang
10fcc59ed4 refactor: replace Array.isArray with the built-in isArray (#18671)
chore(components): [descriptions] isArray replace Array.isArray
2024-10-28 15:36:44 +08:00
btea
1c1b2743a1 fix(components): [table-v2] header rendering is misplaced (#18628)
* fix(components): [table-v2] header rendering is misplaced

* fix: update

* fix: update

* fix: update
2024-10-23 00:17:02 +08:00
betavs
0dc9b6479f fix(components): [table-v2] columns missing key field (#17891)
* fix(components): [table-v2] columns missing key field

* perf(components): [table-v2] columns missing key field

* test(components): [table-v2] columns missing key field

* perf(components): [table-v2] columns missing key field
2024-09-03 21:05:21 +08:00
dopamine
79938178dd build: use vue-tsc to generate dts (#16111)
* build: use vue-tsc to generate dts

* reduce inline type declaration

* fix: type checking failed

* apply suggestions from code review

* address PR comments
2024-08-07 12:01:46 +08:00
Whbbit1999
7648011303 fix(components): [table-v2] the selector is invalid when row-key is a number (#16989)
* fix: rowKey use number or start of number onRowHovered Throw Error#16988

* fix: use String() replace to `as string` #16989
2024-06-11 21:44:19 +08:00
LIUCHAO
f3215b6bff fix(components): [table-v2] fix scrolling fail (#16470)
fix(components): [table-v2] Fix scrolling fail

closed 16266
2024-04-26 11:33:30 +08:00
Xc
f99257c816 fix(components): [table-v2] fixed mode hovering rerender cell (#12378)
* fix(components): [table-v2] fixed mode hovering rerender cell

* fix(components): [table-v2] fixed mode hovering rerender cell

* Update packages/components/table-v2/src/composables/use-row.ts

Co-authored-by: qiang <qw13131wang@gmail.com>

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-04-04 17:11:29 +08:00
btea
705c999f5f fix(components): [table-v2] header style error (#15950) 2024-02-27 14:27:27 +08:00
一只前端汪
0c8b6a5906 fix(components): [table-v2] cell, header-cell, empty slots not displayed (#15016)
Thanks for your contribution.
2023-12-05 15:08:08 +08:00
dopamine
c731027f9b fix(components): [table-v2] calculate the width of MainTable in the same way (#13584)
* fix(components): [table-v2] calculate the width of MainTable in the same way

* fix: duplicate properties
2023-08-15 21:01:46 +08:00
Xc
66e74c8f1b fix(components): [table-v2] Adjust the expandable (#12519) 2023-05-01 16:18:18 +08:00
井柏然
406ac68fc8 fix(components): [table-v2] endReached triggered twice when first (#11928) 2023-03-10 14:49:20 +08:00
qiang
6b983e1215 chore(components): [table-v2] accessibility improvement (#11891) 2023-03-08 15:14:06 +08:00
qiang
2734d50967 fix(components): [table-v2] class of column is not valid (#11815)
closed #11810
2023-03-04 21:45:28 +08:00
LIUCHAO
48b40a5f27 fix(components): [table-v2] fix scroll to bottom (#9959)
closed 9953
2022-10-18 12:15:21 +08:00
Xc
e008e92ce7 fix(components): [table-v2] cell and header-cell slots parmas (#9665)
* fix(components): [table-v2] cell and header-cell slots parmas

* fix(components): [table-v2] add slots scope test
2022-09-07 21:50:05 +08:00
btea
8fb1d458df fix(components): [table-v2] header-cell slots invalid (#9585) 2022-09-01 22:40:16 +08:00
Xc
49bc7fb66a fix(components): [table-v2] cell slots invalid (#9531) 2022-08-31 13:31:53 +08:00
zz
34d1d6f63e fix(components): [table-v2] fix style import (#9510) 2022-08-29 11:00:04 +08:00
三咲智子
7097940f4a refactor: add ts-nocheck and check all files (#8401) 2022-06-22 08:04:42 +08:00
webfansplz
ab88ec505a fix(components): [table-v2] column's min-width should work normal (#8226) 2022-06-12 11:39:00 +08:00
btea
792265d56a fix(components): [table-v2] don't spread headerClass (#7729) 2022-05-17 09:25:32 +08:00
JeremyWuuuuu
16abb4ca41 improvement(components): [virtual-table] (#7557)
- Add method `scrollToRow` to VirtualTable.
- Restore missing `cellProps` attribute.
- Add example for **Manual Scroll**.
- Add example for **Cross Hovering**.
- Update documentation accordingly.
2022-05-07 19:06:57 +08:00
JeremyWuuuuu
9b3a88811d improvement(components): [virtual-table] (#7548)
- Add example for selection.
- Add example for inline editing.
2022-05-07 11:47:52 +08:00
JeremyWuuuuu
090706250b feat(components): [auto-resizer] new component (#7541)
* feat(components): [auto-resizer] new component

- Add new component AutoResizer for skip passing width/height.
- Update documentation for AutoResizer.
- Update FAQs for TableV2.
- Update interfaces for TableV2.

* Fix linter error

* Fix linter issue
2022-05-07 09:47:32 +08:00
JeremyWuuuuu
14cfb0500f docs(components): [virtualized-table] finishing leftovers (#7496)
- Finishing the documentation examples
- Add APIs to the documentation
- Fix some issue while updating the documentations
2022-05-05 00:54:49 +08:00
JeremyWuuuuu
46d04c7ddd docs(components): [virtual-table] spans (#7441) 2022-04-29 17:57:39 +08:00
JeremyWuuuuu
dc98974db9 docs(components): [virtual-table] filtering (#7401)
- Add example for adding filter.
- Export header cell slot renderer interface.
2022-04-27 15:41:22 +08:00
JeremyWuuuuu
1037eb75b4 docs(components): [virtual-table] grouping header (#7397) 2022-04-26 19:21:12 +08:00
JeremyWuuuuu
915e1ffe26 docs(components): [virtual-table] custom cell & row class (#7370)
- Add example for customizing cell
- Add example for customize row class
2022-04-25 17:53:49 +08:00
JeremyWuuuuu
79d45df09c chore(components): [virtual-table] code reorg (#7356)
- Reorganize code for components under vtable/components
2022-04-24 15:42:25 +08:00
JeremyWuuuuu
77c7225a9d docs(components): [virtual-table] basic usage (#7352)
- Add entry for table-v2
- Add basic usage for table-v2
2022-04-24 13:44:40 +08:00
JeremyWuuuuu
6d9e56a106 feat(components): [virtual-table] compsables (#7341)
- Split `use-table` into separate files for better readability
2022-04-23 20:05:20 +08:00
JeremyWuuuuu
5f58657b69 feat(components): [virtual-table] overlay renderer (#7314)
- Add Overlay renderer
- Add Overlay in table-v2
- Update table-v2.scss for overlay
2022-04-22 08:07:01 +08:00
JeremyWuuuuu
74a8d8ba32 feat(components): [virtual-table] empty renderer (#7308)
- Add Empty component.
- Add empty render conditions.
- Add empty rendering to table-v2.
2022-04-21 18:45:35 +08:00
JeremyWuuuuu
658d396ff7 feat(components): [virtual-list] renderers
- Add Footer renderer.
- Add footer rendering for table-v2.
- Update table-v2.scss for footer rendering.
- Update utils typing.
2022-04-21 16:37:07 +08:00
JeremyWuuuuu
655fecd8f2 feat(components): [virtual-table] renderers (#7273)
- Update table grid for dynamic height row rendering
- Expose reset rendered row methods for Grid
- Expose enums in virtual table for user facing usages.
- Update table-v2 style.
2022-04-20 18:06:45 +08:00
JeremyWuuuuu
ed08609bd4 feat(components): [virtual-table] renderers (#7224)
- Fix custom renderer for column cell and header column cell.
- Add helper method for rendering cells.
- Update column interface for correctness.
- Remove some unused code in `use-columns`.
2022-04-18 23:32:10 +08:00
JeremyWuuuuu
5716a94211 feat(components): [virtual-table] renderers (#7218)
- Temporarily removed ColumnResizer in HeaderCell
- Update VirtualScrollbar to match the design
- Style updates
2022-04-18 15:53:03 +08:00