Commit Graph

168 Commits

Author SHA1 Message Date
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
btea
8bd642f567
fix(components): [table] dragging cell should not trigger header-click (#17093) 2024-06-08 19:51:20 +08:00
btea
ad0cd51796
fix(components): [table] cell tooltip display error (#16868)
* fix(components): [table] cell tooltip diaplay error

* fix: update

* fix: update
2024-05-20 09:26:41 +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
一只前端汪
f45f0b4368
fix(components): [table] return type of function summary-method supports VNode (#16648)
* fix(components): [table] return type of function summary-method

* fix: type
2024-04-25 17:58:14 +08:00
Liao-js
87dd7ba464
fix(components): [table] table body rerendered when use row-key (#16544)
fix(components): [table] fixed table body rerendered when use row-key
2024-04-20 15:16:10 +08:00
Liao-js
3386e0af89
fix(components): [table] fix grouping head when dynamic column (#16433)
fix(components): [table] fix grouping head when dynamic column (#16417)
2024-04-20 13:51:34 +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
Electrolux
42b3a83c6a
fix(components): [table] fix cell tooltip display error (#16449)
* fix(table-body-hover-trigger): fix the tooltip count way  when trigger the table

* perf:replace let with const

* Update packages/components/table/src/table-body/events-helper.ts

---------

Co-authored-by: btea <2356281422@qq.com>
2024-04-19 16:16:32 +08:00
Liao-js
cc4089c010
fix(components): [table] fixed hover on colSpan > 2 background is error (#16443)
* fix(components): [table] fixed hover on colSpan > 2  (#16439)

* fix(components): [table] fixed  background highlighting when hover

* Update packages/components/table/src/table-body/index.ts

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

---------

Co-authored-by: btea <2356281422@qq.com>
2024-04-12 13:52:40 +08:00
kooriookami
f8ca913a1d
fix(components): fix deprecated warning (#16034) 2024-03-04 22:06:40 +08:00
wzc520pyfm
4f18c6feda
docs(components): [table] use new display tag (#15697) 2024-03-01 12:00:45 +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
xingyixiang
2484ac1a23
fix(components): [table] The namespace of the showOverflowTooltip is invalid. (#15627)
fix:The namespace of the showOverflowTooltip is invalid.
2024-01-25 16:18:02 +08:00
xingyixiang
6e66eaf0a0
refactor(components): [table] The overflowTooltip of the table is implemented by the Eltooltip component. (#15470)
* refactor(components): [table] createTablePopper

* refactor(components): [table] createTablePopper
2024-01-15 17:02:42 +08:00
xiaoming
034fb204bc
feat(components): [table] add filterClassName props in TableColumn (#15389) 2024-01-07 13:30:10 +08:00
xingyixiang
b6b98bb1d8
fix(components): [table] tooltipOptions.showAfter is not effective (#14741)
* fix(components): [table]
tooltipOptions.showAfter is not effective

* fix(components): [table]
rolling unable to destroy Popper
2023-12-06 20:29:43 +08:00
一只前端汪
005bdf6143
fix(components): [table] header slot not displayed (#15035)
* fix(components): [table] header slot not displayed

* fix(components): [table] header slot not displayed

* fix(components): null commit
2023-12-05 15:09:13 +08:00
btea
e95324fa41
Revert "fix(components): [table] tooltipOptions.showAfter is not effe… (#14735)
Revert "fix(components): [table] tooltipOptions.showAfter is not effective (#13175)"

This reverts commit 6238ec8456.
2023-11-03 12:58:05 +08:00
xingyixiang
6238ec8456
fix(components): [table] tooltipOptions.showAfter is not effective (#13175)
* fix(components): [table]
tooltipOptions.showAfter is not effective

* fix(components): [table]
tooltipOptions.showAfter is not effective

---------

Co-authored-by: btea <2356281422@qq.com>
2023-11-02 21:27:49 +08:00
qiang
942284dbe1
fix(components): [table] show-summary style error when table-layout=auto (#14523) 2023-10-12 08:46:01 -05:00
一只前端汪
b823348790
fix(components): [table] fix summary row cells on table with layout auto not aligned with data cells (#14315)
fix(components): [table] fix summary row cells not aligned
2023-10-12 13:02:44 +08:00
井柏然
0137d4cfcb
fix(components): [table] table-layout auto fixed by sticky (#11742)
* fix(components): [table] table-layout auto fixed by sticky

* Update packages/theme-chalk/src/table.scss

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

* fix(components): [table] add index variable for thead

* fix(components): [table] const z-index change to variable

* fix(components): [table] thead, scrolbar, border add z-index

* fix: remove duplicate property

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2023-10-11 13:45:22 +08:00
一只前端汪
9e1c8f6c4e
chore(components): [table] fix typo (#14473)
chore(other): update explanatory note
2023-10-08 14:39:45 +08:00
Frank Fang
5f028f8449
fix(components): [table] add tabindex to tbody to fix #13991 (#14020)
* fix(components): [table] add tabindex to tbody to fix #13991

* remove :focus style

* fix: remove the focus outline

* fix: replace focus with focus-visible

* chore: add comments to explain why the tabIndex attr is needed
2023-08-30 14:01:45 +08:00
Karolis_Stoncius_Sneakybox
b9a8879e06
fix(components): [table] add table selection checkbox aria-labels (#13908)
When checkboxes have no label, it causes accessibility issues. This commit adds aria-labels to
table's selection checkboxes
2023-08-12 13:35:58 +08:00
ZheGuangLi
7e81efd999
fix(components): fix the problem that chrome 72 table doesnotdisplaydata (#10640)
Fix the problem that the chrome 72 tab table does not display data. This is caused by the fact that
the extension operator becomes an empty object in a special scenario

BREAKING CHANGE :
The writing method of shallow copy is replaced

closed #8770,#9071,#7038

Co-authored-by: btea <2356281422@qq.com>
2023-08-12 10:00:45 +08:00
btea
7663040722
refactor(components): [table] reuse rAF (#13918) 2023-08-10 11:50:15 +08:00
lxy030988
1bd75dd6c9
fix(components): [el-table] rangeWidth dealing with loss of precision (#12938)
* fix(components): [el-table] rangeWidth use Math.ceil

Closes #12687

* fix(components): [el-table] rangeWidth calculate

Closes 12938

* fix(components): [el-table] offsetWidth calculate

Closes #12938
2023-07-30 08:59:28 +08:00
wonderl17
b1572a9c17
fix(components): [table] add filteredValue watcher (#13121) 2023-07-22 08:49:23 +08:00
btea
6f4560e57a
fix(components): [table] multiple line ellipsis tooltip takes effect (#12805) 2023-07-02 17:26:19 +08:00
btea
74c2448ce4
fix(components): [table] adjust the showOverflowTooltip value logic (#13282)
* fix(components): [table] adjust the showOverflowTooltip value logic

* fix: set showOverflowTooltip default value to undefined
2023-06-20 16:04:26 +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
Masanori Doizaki
4218ef2594
fix(components): [table] fix clearFilter type (#13149) 2023-06-08 13:49:13 +00:00
dopamine
cb01089128
fix(components): [table] width of columns become 0 unexpectedly (#12920) 2023-06-03 21:07:58 +08:00
init-qy
e25caadcef
fix(components): [table] add missing append height (#12676) 2023-06-03 11:03:55 +08:00
Xc
015ac099cb
fix(components): [table] maxHeight shark (#12349) 2023-05-29 20:16:31 +08:00
btea
b1d84411d5
fix(components): [table] text node not have closest method (#12543) 2023-04-23 20:58:19 +08:00
btea
105d79b0d9
refactor: extract isClient and isNumber isBoolean (#12504)
* refactor: extract isClient and isNumber isBoolean

* test: update test

* refactor: extract isClient to browser
2023-04-20 20:00:49 +08:00
井柏然
87e9348d8e
refactor(components): [table] remove useless brackets (#12283) 2023-04-01 21:24:46 +08:00
井柏然
9956249236
fix(components): [table-column] first default column set placeholder (#11705) 2023-03-14 12:30:29 +08:00
Mario34
da73213549
fix(components): [table] useZIndex is called outside setup (#11895) (#11900) 2023-03-08 22:30:43 +08:00
Jeremy
4c27822ef0
fix(components): circular referencing issue (#11777)
* fix(components): circular referencing issue

* Move sizes related into hooks.
* Remove size definitions in forms only re-exports.

* chore: fix failing tests
2023-03-01 16:44:09 +08:00
Jeremy
11925c8231
refactor(tokens) - [form] (#11743)
* refactor(tokens): [form] - remove tokens/form

* Move content in tokens/form to components/form.
* Replace token imports in components/form.

* chore: remove form/tokens and replace imports

* refactor(components): [form/form-item]

* Move `useForm` related hooks to components/form
* Replace references to reduce circular dependencies.
2023-02-27 13:19:20 +08:00
wonderl17
8280a0b322
chore(components): [table] fix table config typo (#11700) 2023-02-24 18:36:23 +09:00
Jacob Alspaw
e444e0c942
fix(components): [table] fix an undefined reference in table-layout (#11204)
Co-authored-by: zz <2418184580@qq.com>
2023-02-18 15:20:14 +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
bartoszrudzinski
65a9cca1ed
fix(components): default table cell padding SCSS variable fix (#10708)
closed #10706

Co-authored-by: bartoszrudzinski <bartosz.rudzinski@infermedica.com>
2023-01-18 16:29:01 +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
hankin.dream
e0150db5b6
fix(components): [table]fix the problem that show-overflow-tooltip will also be displayed when the browser is zoomed (#10816)
closed https://github.com/element-plus/element-plus/issues/10790
2022-12-02 13:13:43 +08:00