Commit Graph

269 Commits

Author SHA1 Message Date
Kero
ae04a7cb63 fix(components): [table] try load data only when expanding row (#21678)
Previously `toggleTreeExpansion` would trigger data loading even `expanded` is `false`, which makes
the given row expanded instead.

Co-authored-by: qiang <qw13131wang@gmail.com>
2025-12-04 18:51:58 +08:00
qiang
cba30d8cd2 feat(components): [table] accessibility enhancement (#22432)
* feat(components): [table] accessibility enhancemen

closed #14301

* chore: sync locale

* chore: add test

* chore: optimize style

* chore: optimize style

* feat(components): [table] sort and filter a11y
2025-12-02 10:41:16 +08:00
rzzf
9ca94b533d improvement(components): [table] keep cursor style during drag (#22915)
* improvement(components): [table] keep cursor style during drag

* fix: update

* Update packages/components/table/src/table-header/event-helper.ts

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

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
2025-12-01 15:35:11 +08:00
余晖
ff70fe9858 fix(components): [table-column] reactively update filterable state (#22879) 2025-11-29 11:35:27 +01:00
Rainbow
5c432f355e fix(components): [table] correct the type of style (#22939) 2025-11-27 23:13:36 +01:00
余晖
8170fca7ae fix(components): [table] fix header HMR and keep v-if fallback (#22884)
* fix(components): [table] fix header HMR and keep v-if fallback

* fix(components): [table] return text VNode in header fallback
2025-11-26 14:33:35 +01:00
余晖
84710a7105 refactor(components): [table] clear state on non-resizable columns (#22916)
* refactor(components): [table] clear state on non-resizable columns

* refactor(components): [table] simplify dragging state cleanup
2025-11-25 17:27:00 +08:00
DDDDD12138
09f06f9b9d fix(components): [table] tableBody height not update when header changed (#19580)
fix: tableBody height not updating with table header height changes
2025-11-25 15:45:25 +08:00
Rainbow
3e0d623e62 fix(components): [table] prevent incorrect drag when resizable is false (#22327) 2025-11-23 08:59:54 +08:00
yicheny
751e80d50b fix(components): [table] avoid height loop (#22838)
* fix(components): [table] avoid height loop

closed #22834

* Update packages/components/table/__tests__/table.test.ts

Co-authored-by: rzzf <cszhjh@gmail.com>

---------

Co-authored-by: alex.yang <alex.yang@hytechc.com>
Co-authored-by: 云游君 <me@yunyoujun.cn>
Co-authored-by: rzzf <cszhjh@gmail.com>
2025-11-21 16:29:18 +08:00
blackBear
400dcfa4cc fix(components): [table] ensure tooltip works correctly in tree table (#22674)
* fix(components): [table]ensure tooltip works correctly in tree table

* fix(components): [table]fix ts bug

* fix(components): [table]fix ts bug by from suggest

* Update packages/components/table/__tests__/table.test.ts

Co-authored-by: rzzf <cszhjh@gmail.com>

* Update packages/components/table/__tests__/table.test.ts

keep isolation

Co-authored-by: rzzf <cszhjh@gmail.com>

---------

Co-authored-by: rzzf <cszhjh@gmail.com>
2025-11-04 10:51:44 +08:00
Lensiq
c252273a57 chore: normalize classname (#22537)
* chore: normalize classname

* Update packages/components/date-picker-panel/src/composables/use-basic-date-table.ts

Co-authored-by: Zhong <cszhjh@gmail.com>

* Update packages/components/date-picker-panel/src/date-picker-com/panel-month-range.vue

Co-authored-by: Zhong <cszhjh@gmail.com>

* Update packages/components/loading/src/loading.ts

Co-authored-by: Zhong <cszhjh@gmail.com>

* Update packages/components/tour/src/step.vue

Co-authored-by: Zhong <cszhjh@gmail.com>

* chore: normalize classname

* fix: update

* chore: update

---------

Co-authored-by: Zhong <cszhjh@gmail.com>
2025-10-22 13:45:30 +08:00
Noblet Ouways
8d32bc31d8 chore: replace ns.is condition (#22531)
* chore: replace ns.is condition

* chore: sgconfig

* Revert "chore: sgconfig"

This reverts commit fa56c22673.
2025-10-20 10:09:03 +08:00
Rainbow
5bd04c058f fix(components): [table] make resizable prop reactive (#22340) 2025-09-29 14:28:43 +08:00
一只前端汪
7c16480bcd refactor(style): Update Eslint to V9 and Prettier to V3 (#21949)
* refactor(style): Update Eslint to V9 and Prettier to V3

* fix: vscode color

* fix: vscode color

* chore: remove Useless dependence and old config file

* chore: format

* Merge branch 'dev' into eslintV9

* fix: fix

* fix: ssr test

* fix: ssr test

* fix: use defineConfig

* fix: prettier format and ignore docs dist

* fix: index.mjs => index.js

* fix: Vscode color

* fix: prettier ignore global.d.ts

* fix: format

---------

Co-authored-by: 2586740555 <15972343+CYJ090915@user.noreply.gitee.com>
2025-09-29 14:14:30 +08:00
sea
cd2285f5bb chore: add consistent-type-imports eslint rules to .ts file (#22195)
* chore: add import type rules to .ts

* chore: update

* chore: update
2025-09-17 10:11:26 +08:00
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
ylcjwq
38bc248a4c Revert "fix(components): [table] render default slot only when it returns valid vnodes (#21651)" (#21728)
* revert: revert fix table slot rendering (#21651)

* Revert "fix(components): [table] render default slot only when it returns valid vnodes (#21651)"

This reverts commit 6bf6313f35.

---------

Co-authored-by: dopamine <coderzyou@gmail.com>
2025-08-13 21:02:11 +08:00
dopamine
6bf6313f35 fix(components): [table] render default slot only when it returns valid vnodes (#21651) 2025-08-06 14:39:10 +02:00
An Hao
9bd2f8a4f5 feat(components): [table] support native scrollbar (#21539)
* feat(components): [table] support native scrollbar

* Update table.vue

* Update packages/components/table/src/table/defaults.ts

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

---------

Co-authored-by: anhao <wzanh@sinopec.com>
Co-authored-by: btea <2356281422@qq.com>
2025-07-30 11:11:42 +08:00
Zhong
1bf92d6146 fix(components): [table] avoid width calculation errors caused by hidden (#21492) 2025-07-25 10:20:05 +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
Mamaev Iurii
4bb8d8ce04 fix(components): [table] fix absence of theadRef bug (#21454)
fix(components): [TableHeader] fix absence of theadRef bug
2025-07-22 08:13:53 +08:00
Zhong
58a5852d2d refactor(components): improve component boolean type (#21260) 2025-07-06 14:56:17 +02:00
Noblet Ouways
164a8a5ee5 refactor(components): [table] remove @ts-nocheck (#21200)
* refactor(components): [table] remove `@ts-nocheck`

* chore: remove any wip

* chore: better types
2025-07-02 11:28:11 +08:00
Noblet Ouways
c5d37fbb0a refactor(components): [table] remove @ts-nocheck (#21197)
refactor(components): [table] remove `@ts-nocheck` 2/3
2025-07-01 15:49:54 +08:00
Noblet Ouways
e3373b36e8 refactor(components): [table] remove @ts-nocheck (#21139)
* refactor(components): [table] remove `@ts-nocheck`

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>

* fixup! refactor(components): [table] remove `@ts-nocheck`

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

* fixup! refactor(components): [table] remove `@ts-nocheck`

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

* chore: revert type

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

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

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>

---------

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
Co-authored-by: btea <2356281422@qq.com>
2025-06-30 23:41:36 +08:00
btea
7a499bf40f refactor(components): [table] compatible with rowKey non-existence (#21134)
* refactor(components): [table] compatible with rowKey non-existence

* chore: update

* fix: update
2025-06-25 16:39:32 +02: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
Ethan Yin
23c680f810 perf(components): [table] remove redundant updateSelectionByRowKey (#21092)
* perf(components): [table] remove redundant `updateSelectionByRowKey`

* revert(components): [table] revert `assertRowKey`
2025-06-23 01:00:08 +02:00
betavs
947a88d255 fix(components): [table] render tree node (#19247) 2025-06-20 20:36:56 +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
btea
6d72d09043 fix(components): [table] tooltip compatibility edge case (#21012) 2025-06-13 17:55:12 +02:00
Meet you
b44a4a3acf feat(components): [table-column] add expand slot (#20750)
* feat(components): [table-column] add `expand` slot

* fix(components): update

* Update packages/components/table/src/table-column/render-helper.ts

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

* fix(docs): update

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
2025-05-31 09:33:40 +02: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
betavs
5f519a6f25 refactor(components): unify append-to prop type across multiple components (#20501)
* fix(components): [select] update `append-to` prop type

* fix(components): unify `append-to` prop type across multiple components

* docs: update `append-to` prop type
2025-04-22 09:29:19 +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
sea
1084071fcf chore(eslint-config): add newline-after-import rules (#20309)
chore: add `newline-after-import` rules
2025-03-31 20:48:10 +08:00
pengpeng
e9d82e59e9 fix(components): [table] the selection column conflicts with setting both showOverflowTooltip and align='center' styles (#20157)
* fix(components): [table] type sets showOverflowTooltip centering style problem under `selection`

* Update index.ts

* Update index.ts
2025-03-18 10:30:46 +08:00
dopamine
7be4a3765e chore: emits smaller declaration files (#20109)
* Revert "fix(types): packing unexpected types (#19419)"

This reverts commit 13506ffb81.

* Revert "chore: add explicit type annoation (#19352)"

* fix(typescript): borken import paths in declaration files

* chore: emits smaller declaration files
2025-03-18 10:08:44 +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
Jason
3079a4789d fix(components): [table] replace pageX with clientX (#19881)
Co-authored-by: chengang <chengang@lianantech.com>
2025-02-27 22:21:53 +08:00