Commit Graph

62 Commits

Author SHA1 Message Date
micaiguai
1087c10caa fix(components): [table] fix table display error in stripe mode (#22022)
* fix(components): [table] Fix table display error in stripe mode

* fix(components): [table] Add test case
2025-09-07 11:56:41 +02:00
dhj-l
96e3278472 fix(components): [table] show-overflow-tooltip dynamic switch (#21811)
* fix(components): el-table-column: show-overflow-tooltip dynamic switch

* fix(components): el-table-column: show-overflow-tooltip dynamic switch

* test: add test case

* chore: remove previous tests

---------

Co-authored-by: Dsaquel <291874700n@gmail.com>
2025-08-21 07:11:58 +08:00
Noblet Ouways
ada03b0798 fix(components): [table] make root show-overflow-tooltip dynamic (#21823) 2025-08-20 19:49:04 +08:00
btea
865ce3849e fix(components): [table] revert 20210 (#21482)
* fix(components): [table] revert 20210

* chore: update

* test: check indent
2025-07-24 20:04:31 +08:00
Zhong
bc9a95d9ba chore(components): fix typos (#21473) 2025-07-23 07:09:15 +08:00
Spaceman
b3219f6446 fix(components): [table] fix the issue where the expand-row-keys property does not support the number type (#20210)
* fix(components): [table] fix the bug of the expand-row-keys property

* fix(components): [table] fix the bug of the expand-row-keys property

Fix the issue where the expand-row-keys property does not support the number type

* fix(components): [table] fix the bug of the expand-row-keys property

Fix the issue where the expand-row-keys property does not support the number type

* fix(components): [table] Use Map instead of Object to handle number keys

 Use Map instead of Object to solve the problem of number keys

* fix(components): [table] fix the bug of the expand-row-keys property

1.expandRowKeys should be of type Array<string | number> ✔
2.It would be better to add types to new Map() ✔
3.It would be better to add relevant test cases ✔

* fix(components): [table] fix the bug of the expand-row-keys property

1. expandRowKeys should be of type Array<string | number> ✔
2. It would be better to add types to new Map() ✔
3. It would be better to add relevant test cases ✔

* fix(components): [table] fix the bug of the expand-row-keys property

1. expandRowKeys should be of type Array<string | number> ✔
2. It would be better to add types to new Map() ✔
3. It would be better to add relevant test cases ✔

* fix(components): [table] fix the bug of the expand-row-keys property

1.table.md ✔
2.add a test for mixed strings and numbers ✔

* fix(components): [table] fix the bug of the expand-row-keys property

1.table.md ✔
2.add a test for mixed strings and numbers ✔

* fix(components): [table] fix the bug of the expand-row-keys property

1. table-test-common.ts ✔
2. table.md ✔
3. tree.ts -- changed to: new Map<string | number, object>() ✔

* fix(components): [table] fix the bug of the expand-row-keys property

fix(components): [table] fix the bug of the expand-row-keys property

* fix(components): [table] fix the bug of the expand-row-keys property

fix(components): [table] fix the bug of the expand-row-keys property

* fix(components): [table] fix the bug of the expand-row-keys property

fix(components): [table] fix the bug of the expand-row-keys property

* fix(components): [table] fix packages/components/table/src/store/tree.ts

fix(components): [table] fix packages/components/table/src/store/tree.ts

* chore: update test cases

* chore: update version

* fix(components): [table] fix the bug of the expand-row-keys property

Fix the issue where the expand-row-keys property does not support the number type

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2025-06-25 22:02:43 +08:00
xiaohe0601
5cee7a1464 fix(components): [table] fix children can't be unchecked (#20995)
* fix(components): [table] fix children can't be unchecked

* test(components): [table] reserve selection
2025-06-20 10:01:20 +08:00
Noblet Ouways
2f17df1209 style(eslint-config): newline before import type (#21036)
* perf: change to import-x

* feat: add rules

* chore: fix rule

* chore: fix

* chore: fix

* chore: fix

* style: `pnpm lint:fix`

* Revert "style: `pnpm lint:fix`"

This reverts commit db0116a288.

* Revert "chore: fix"

This reverts commit 69c82a90c0.

* chore: fix

* style: `pnpm lint:fix`

* fix: lint

* chore: `pnpm format`
2025-06-16 15:37:12 +08:00
sea
556fbbc699 Revert "table expand #20587 #20715 #20811" (#20834)
* Revert "table expand  #20587 #20715 #20811"

* chore: revert
2025-05-23 18:03:59 +08:00
sea
040520dddf fix(components): [table] update expand-row-keys invalid (#20811) 2025-05-22 09:13:39 +08:00
q
53b7a31520 fix(components): [table] the selection column cannot be displayed when it is not in the first row (#20582)
* fix(components): [table] el-table里table-column的fixed问题 #20558

* fix(components): [table] 修复如果selection没有fixed属性时,会一直出现在末尾的bug #20558

* fix(components): [table] 删除test案例读取到left为0时修改fixed属性 #20558

* Update packages/components/table/src/store/watcher.ts

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

* Update packages/components/table/src/store/watcher.ts

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

* Update packages/components/table/src/store/watcher.ts

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

* Update packages/components/table/src/store/watcher.ts

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

* Update packages/components/table/src/store/watcher.ts

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

* Update packages/components/table/src/store/watcher.ts

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

* fix(components): [table] 还原table-column.test.ts测试用例&格式化watcher.ts代码

* fix: [table] -增加左侧/右侧固定列筛选selection逻辑

* fix: [table] -table-column.test.ts测试用例修改

* fix: [table] - 还原测试用例,修改watcher.ts,使其兼容如果有固定列并且select为第一列的情况

* fix: update & test

* fix: update

---------

Co-authored-by: 卿鹏 <qp66797@gmail.com>
Co-authored-by: btea <2356281422@qq.com>
2025-05-20 10:28:25 +08:00
btea
317307aa2a fix(components): [table] default-expand-all invalid (#20715)
* fix(components): [table] `default-expand-all` invalid

* test: dynamic data case

* test: update
2025-05-13 16:49:17 +08:00
Nick Wu
154f7b0f8e fix(components): [table] shrinked table expanded when modify data (#20587)
* fix(components): [table] shrinked  table expanded when modify data

* fix(components): [table] type check error

* fix(components): [table] update test case
2025-05-01 16:49:07 +08:00
comp-squirrel
1ee7fa7e7d fix(components): [table] prevent child node selection loss during table data modification (#20322)
* fix(components): [table] child selection loss during data modification

* refactor: replace logical AND (&&) with explicit if statement

* test: use unique id
2025-04-09 17:14:55 +08:00
EralChen
d410486c07 feat(components): [table-column] preserve expanded content (#19899)
* feat: [table-column] preserve expanded content

* chore: format

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2025-03-13 10:20:07 +08:00
Nick Wu
b009be7c17 fix(components): [table] fix the logic of selection column when fixed state changes dynamically (#19703)
* fix(components): [table] selection column fixed left

* fix(components): [table] optimize function

* fix(components): [table] add dynamic columns test case
2025-01-25 07:52:47 +08:00
知晓同丶
462bff18de feat(components): [table] add tooltip-formatter table & table-column prop (#19524)
* feat(components): [table] add `tooltip-formatter` table-column prop

closed #19507

* docs: add example

* docs: demo remove tooltip formatter index

* refactor(components): refactor code

* docs: simpify tooltip demo

* fix: fix warning error

* feat(components): add table tooltip-formatter prop & merge slot

* refactor: reuse variables

* test: add tooltip-formatter test

* docs: upgrade version

* feat(components): [table] add `tooltip-formatter` table-column prop

closed #19507

* docs: add example

* docs: demo remove tooltip formatter index

* refactor(components): refactor code

* docs: simpify tooltip demo

* fix: fix warning error

* feat(components): add table tooltip-formatter prop & merge slot

* refactor: reuse variables

* test: add tooltip-formatter test

* docs: upgrade version

* refactor: change parameter to obj args

* fix: property change to prop

* fix: export `TableOverflowTooltipFormatterData`

* refactor: `TableOverflowTooltipFormatterData` to `TableTooltipData`

* fix: remove useless import

* fix: refactor code

---------

Co-authored-by: btea <2356281422@qq.com>
2025-01-23 20:15:12 +08:00
伊墨
f980addfe3 fix(components): [table] The index parameter of the selectable function is undefined (#19587)
* fix(components): [table] first record can not be checked

* fix(components): [table] last commit doesnt work for others index

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

* test(components): [table] add test cases

* test(components): [table] modify the test case of the last submission

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
Co-authored-by: btea <2356281422@qq.com>
2025-01-21 15:58:59 +08:00
Nick Wu
fc1a0b8d60 fix(components): [table] selection-change event emit incorrectly (#19618)
* feat(components): [table] fix 'selection-change' event emit incorrectly

* fix(components): [table] add test case
2025-01-18 18:36:06 +08:00
xingyixiang
971d422e8b test: [table] add show-overflow-tooltip trigger (#19556)
* test: [table] add show-overflow-tooltip trigger

* test: [table] add show-overflow-tooltip trigger
2025-01-09 17:36:59 +08:00
qiang
a03812db54 perf(components): [table] prioritize use rowKey to determine whether it is selected (#19451)
* perf(components): [table] use rowKey to determine whether it is selected

* chore: revert includes

* perf: use includes replace isEqual
2025-01-03 08:14:00 +08:00
sea
984ab608e7 feat(components): [table] export updateKeyChildren method & correct version (#17709)
* feat(components): [table] export `updateKeyChildren` fn

* Update docs/en-US/component/table.md

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

* chore: update version

* docs: update version

* docs: format

* docs: fix version

---------

Co-authored-by: btea <2356281422@qq.com>
2024-09-27 18:20:57 +08:00
betavs
107eac00a3 fix(components): [table] selection fixed unexpected (#17904)
* fix(components): [table] selection fixed unexpected

* perf(components): [table] selection fixed unexpected

* perf(components): [table] selection fixed unexpected
2024-09-13 14:45:12 +08:00
qiang
e3bb681984 fix(components): [table] the disabled checkbox are selected (#18034)
* fix(components): [table] non selectable items are selected

closed #18021

* docs: update
2024-09-13 14:13:33 +08:00
qiang
ae8328fb9c fix(components): [table] use isEqual to determine whether it is selected (#17885)
* fix(components): [table] use isEqual to determine whether it is selected

closed #10199, #10263

* test: add test

* test: add test
2024-08-18 11:28:36 +08:00
qiang
deb0be1777 fix(components): [table] toggleRowSelection restores previous behavior (#17884)
closed #17870
2024-08-15 21:05:48 +08:00
daoyi.tian
48dfe3a69a feat(components): [table] tree children add check strictly (#13519)
* feat(components): [table] tree children add check strictly

* fix(components): [table] remove utils console

* fix(components): [table] error of selector state

* docs: update

* fix: remove unnecessary changes

* fix: the toggleRowStatus has not been processed to selectable

* docs: update

* fix: the rowIndex error

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-05 12:10:17 +08:00
btea
c7dea71e81 feat(components): [table-column] add filter-icon slot (#17272)
* feat(components): [table] add `filter-icon` prop

* chore: remove

* chore: remove

* Update docs/en-US/component/table.md

* feat: filter-icon slot

* test: test case

* chore: update

* chore: update
2024-07-24 14:47:42 +08:00
sea
32ed206b1f feat(components): [table] export columns (#17252)
* feat(components): [el-table] export columns

* feat: add test and fix
2024-06-19 21:12:09 +08:00
Liao-js
43c8f35412 fix(components): [table] selection reference when toggleAllSelection (#16800)
* fix(components): [table] selection is not updated when length is 0

* fix(components): [table] selection reference when toggleAllSelection

* feat: add test
2024-05-10 20:24:11 +08:00
Wayne
b49b553d83 fix(components): [table] hover style error (#16517)
* fixed style hover error  #16515

boundaries situations fixed

* test(components): [table]

hover on which contains nested rowSpan > 1 test cases

---------

Co-authored-by: dwaynewdong <dwaynewdong@tencent.com>
2024-04-19 18:06:30 +08:00
kooriookami
f8ca913a1d fix(components): fix deprecated warning (#16034) 2024-03-04 22:06:40 +08:00
Wayne
d2fbff70eb fix(components): [table] row has rowspan when hover it only has background on the first row of this rowspan (#15529)
* fix(components): table

table row has rowspan when hover it only has background on the first row of this colspan

* fix(components): table

fixed when hover on a rowspan > 1 cell give the whole rows background

* fix(components): [table]

fixed hover on merged cell give the background of the whole rows

* Update events-helper.ts

import addClass removeClass

* Update events-helper.ts

fixed rowspan > 2 and data not enough

* fix(components): [table]

add test case for hover on rowspan > 2

* fix(components): [table]

use getTestData is better

* Update table.test.ts

use getTestData instead

* Update table.test.ts

change templete label prop

* fix(components): [table]

drop comments and clear hoveredCell array after use

* fix(components): [table]

when there is fixed row, hover on rowSpan > 1 should not clear the class

---------

Co-authored-by: dwaynewdong <dwaynewdong@tencent.com>
2024-02-04 21:41:05 +08:00
btea
2b668bd815 test: [table] add show-overflow-tooltip to table and table-column (#13323) 2023-06-21 19:56:02 +08:00
yuyin
b9799a1914 feat(components): [Table] add show-overflow-tooltip props (#13169)
* feat(components): [Table] add show-overflow-tooltip props

* docs(components): [Table] add usage for show-overflow-tooltip

* fix(components): [TableColumn] props priority

* test(components): add unit test for table
2023-06-17 21:30:53 +08:00
ivan0525
609b3a76ce chore(components): [table] fix tests typo (#11445)
fix(components): [table] fix tests typo
2023-02-07 21:25:43 +08:00
井柏然
9721912342 fix(components): [table-column] column miss update due to key (#8528) (#10679)
* fix(components): [table-column] column miss update due to key (#8528)

* fix(components): [table-column] column miss update due to key (#8528)

* fix(components): [table-column] ts lint (#8528)

* fix(components): [table-column] column miss update due to key (#8528)

* fix(components): [table-column] states.updateOrderFns remove ref (#8528)

* fix(components): [table-column] add test for table (#8528)

* Update packages/components/table/src/store/watcher.ts

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

* fix(components): [table-column] fix ts define (#8528)

* fix(components): [table-column] column miss update due to key (#8528)

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2023-01-28 10:28:08 +08:00
Zhongxiang Wang
cf5847263f feat(components): [table] overflow tooltip supports enterable and customization (#10984)
* feat(components): [table] overflow tooltip supports `enterable`

* fix(components): [table] fix modifiers merge

* fix(components): [table] refine logic & fix popperClass isn't respected

* docs(components): [table] add docs for `tooltip-options` & `show-overflow-tooltip`

* docs(components): [table]

* docs(components): [table] update version tag

Co-authored-by: Xc <124118265@qq.com>
2022-12-22 12:20:07 +08:00
faga
d2fb4ffc50 fix(component): [table] can't select row children (#10221)
* fix: table select children

* fix: table select children

* test(components): selectable tree table

* fix: toggle multiple-layer tree

* fix(components): [table]

toggleRowStatus fix

* chore: suggest code style

* chore: isArray instead of row.children

* chore: fix unit test error

* chore: select event trigger only once

* style: code style change

* chore: code style change

* chore: code integration

* chore: code style change

* chore: code style change

* chore: code style change

* chore: [table] code style change

* style: [table] brace style

Co-authored-by: faga <lzc295592@163.com>
2022-11-05 17:18:37 +08:00
tinyfind
9285109a0c fix(components): [table] fixed column supported in grouped header (#10096)
* fix(components): [table] fixed column supported in grouped header

* fix(components): [table] fixed column supported in grouped header

* fix(components): [table] fixed column supported in grouped header

* fix(components): [table] fixed column supported in grouped header
2022-10-23 19:56:20 +08:00
神楽坂みずき
954b8408af fix(components): [table] fix sort-change event behavior (#4640)
* fix(components): fix `sort-change` event behavior when sort condition is `null`

* chore: fix typo

* typo

* add tests

* apply suggestions

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

Co-authored-by: tolking <qw13131wang@gmail.com>
2022-08-30 17:52:40 +08:00
msidolphin
d365ad811e refactor(components): [el-table] using flex to refactor table (#8690) 2022-07-11 02:08:21 +08:00
三咲智子
7097940f4a refactor: add ts-nocheck and check all files (#8401) 2022-06-22 08:04:42 +08:00
LIUCHAO
e0821baa8d test: add property "testData" on instance (#8037) 2022-06-02 02:54:54 +00:00
msidolphin
6f04af6c39 feat(components): [table] ensure minimum-size doesn't follow the content (#7627)
* feat(components): [table] ensure minimum-size doesn't follow the content

* chore: add version tag
2022-05-20 17:57:21 +08:00
三咲智子
1d13ebb05d feat: drop jest (#7248)
* feat: drop jest

* test: remove ssr

* test: rename

* chore: update tsconfig
2022-04-19 16:51:44 +08:00
Delyan Haralanov
de0ee53cf0 test(components): switch all components to vitest (#7205)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-04-19 12:46:57 +08:00
msidolphin
7684dddac4 feat(components): [el-table] add placeholder for tree table (#6905) 2022-03-31 10:27:21 +08:00
三咲智子
184facdb4c chore: add eslint rule sort imports (#6823) 2022-03-25 15:35:56 +08:00
三咲智子
b8c38a9fe5 chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00