278 Commits

Author SHA1 Message Date
rzzf
341a08c353 fix(components): [table] expanded rows cannot be updated using array methods (#23761)
* fix(components): [table] expanded rows cannot be updated using array methods

* test: add case

* test: apply coderabbit suggest
2026-03-12 09:03:27 +08:00
btea
9ffd7ce279 feat(components): [config-provider] add table config (#23610)
* feat(components): [config-provider] add table config

* fix: update

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

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

* fix: update

* docs: update

* docs: update

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
2026-02-10 09:07:40 +08:00
An Hao
38df8de99c feat(components): [table] add row-expandable prop (#23140)
* feat(components): [table] add row-expandable prop

* Update table.md

* fix(components): [table] refine rowExpandable and update expandable docs

* fix(components): [table] refine rowExpandable

---------

Co-authored-by: anhao <wzanh@sinopec.com>
2026-01-27 22:59:45 +01:00
疾风
ac6a316444 fix(components): [table] Make tableLayout optional in table type (#23202)
* Make tableLayout optional in defaults.ts

fix tableLayout Type

* Make tableLayout optional in Props type

* Handle undefined tableLayout in key generation

* Fix optional chaining for tableLayout property

* Make tableLayout prop required in hColgroup

---------

Co-authored-by: rzzf <cszhjh@gmail.com>
2026-01-23 23:46:52 +01:00
Joie
14220daac9 fix(components): [table] current-change event exposes the old row object (#23237)
* fix(components): [table] fix oldCurrentRow parameter in current-change event

* test: mock HTMLCanvasElement.getContext for jsdom compatibility

* revert: remove HTMLCanvasElement.getContext mock as not needed

* test(components): [table] add test case for oldCurrentRow in current-change event

---------

Co-authored-by: Joie <3082243978@qq.com>
2026-01-06 20:32:53 +08:00
web3Worker-x
c40a2c1026 refactor(components): [table] remove unnecessary reactivity (#23254)
* fix: table/useKeyRender Replace ref with shallowRef

* fix: table/useKeyRender Replace ref with a regular variable

* fix: table/useKeyRender Set the observer's default type

---------

Co-authored-by: web3Worker-x <a@b.com>
2025-12-31 17:27:37 +08:00
知晓同丶
3791116c52 fix(components): [table] prevent showOverflowTooltip overwrite (#23215)
fix(components): [table] prevent OverflowTooltip overwrite

1. Prevent overwriting for 'selection' columns to avoid unwanted width changes.
2. Respect the column's own 'showOverflowTooltip' prop when explicitly defined.
2025-12-25 20:33:31 +08:00
dopamine
0ca1570aa1 chore: upgrade to Vue 3.5 (#22096)
* chore: upgrade deps

* chore: replace __ExtractPublicPropTypes with ExtractPublicPropTypes

* fix: get rid of type errors

* fix: resolve test errors with @vue/test-utils v2.4.6

* fix: resolve test errors with Vue 3.5.22

* ci: set pnpm flag

* chore: update the Vue peer dependency version

* Apply suggestion from @tolking

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

* docs: update example code

Co-authored-by: warmthsea <2586244885@qq.com>

* chore: remove csstype (#22487)

* chore: fix merge code type error

* chore: fix test:ssr error

- Cannot read properties of undefined (reading 'getSSRProps')

* chore: fix typecheck:vitest error

* chore: update pnpm yaml file

* test: fix collapse accordion error

* chore: update deps

* chore: fix type error

* chore: lock file

* chore: sync change

sync with the remove of vue macro

* refactor: use computed instead of eagerComputed

* fix: timeline.test.tsx typecheck

* chore: clean lock file

try dont throw CodeFactor issues in ci

did:
- rm pnpm-lock.yaml
- rm -rf ./**/node_modules
- pnpm store prune
- pnpm cache delete
- pnpm install

Also stay in 3.1.0 for vue-tsc in order to avoid the warnings of
template refs, see https://github.com/vuejs/language-tools/issues/5815

* chore: format code

---------

Co-authored-by: Dsaquel <291874700n@gmail.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
Co-authored-by: warmthsea <2586244885@qq.com>
Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
Co-authored-by: btea <2356281422@qq.com>
2025-12-16 09:34:03 +08:00
qiang
974ba4d3bf feat(components): [table-v2] accessibility enhancement (#22983)
* feat(components): [table-v2] accessibility enhancement

* chore: add test

* chore: formatted
2025-12-13 20:27:41 +08:00
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