Commit Graph

2701 Commits

Author SHA1 Message Date
sea
b2a1da6bfe fix(components): [cascader] prevent default behavior when pressing a key to toggle suggestion list (#19897)
fix(components): [cascader] suggestion key-down scroll warn
2025-02-18 18:42:39 +08:00
btea
d323d7f71e fix(components): [description] tsx rendering functional component error (#19879)
* fix(components): [description] tsx render

* fix: update

* fix: update

* test: add test case
2025-02-18 18:33:49 +08:00
DiamondYuan
7700838ed3 feat(components): [cascader] add suggestion slot (#19866)
* feat(components): [cascader] add suggestion-item slot

* docs:  add version to suggestion item slot demo

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

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

---------

Co-authored-by: btea <2356281422@qq.com>
2025-02-18 11:37:18 +08:00
jiaxiang
d676ca4897 chore: [tree] export types (#19846)
* chore: [tree] export type and fix the type error of the docs

* revert: revert

* revert: revert
2025-02-17 09:10:47 +08:00
锌小子
6dddd4ed54 fix(components): [select] solve memory leak (#19709)
fix(components): solve memory leak

Watching the value of an attribute of an option can lead to a memory leak

closed #19680

Co-authored-by: 张东 <A80784@internet.com>
2025-02-16 10:24:46 +08:00
jiaxiang
7662aa05a2 refactor: [time-picker] optimize type declaration (#19875)
chore: [time-picker] optimize type declaration
2025-02-16 09:14:06 +08:00
jiaxiang
1bc0394190 feat(components): [menu] add persistent prop (#19874)
feat(components): [menu] add persistent prop
2025-02-16 09:07:28 +08:00
Delyan Haralanov
2b7b566d17 fix(components): [table] compatible with window non-existence (#19837)
ElTable's doLayout method is debounced and scheduled (relying on setTimeout) which causes problems in testing(Vitest). Sometimes the testing environment(jsdom) is destroyed before doLayout() executes which causes error due to requestAnimationFrame not existing.
To mitigate this issue can check if the window exists which is a good indication that jsdom has not been thorn down yet.
2025-02-14 21:36:41 +08:00
jiaxiang
b408586a22 feat(components): [dropdown] add persistent prop (#19797)
* feat(components): add persistent attribute

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

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

* fix: docs

---------

Co-authored-by: btea <2356281422@qq.com>
2025-02-14 21:03:42 +08:00
btea
19f98d59b2 test: [tree-select] dynamic class case (#19859) 2025-02-14 08:33:05 +08:00
btea
616bb40981 fix(components): [tree-select] dynamic bind class invalid (#19803) 2025-02-13 16:16:33 +08:00
btea
a3ca41aa1a refactor: [menu] add necessary braces (#19840) 2025-02-12 12:36:47 +08:00
jiaxiang
7569227fe6 refactor(components): [menu] change to script setup writing and optimizing code (#19816)
* refactor(components): [menu] refactor

* Update packages/components/menu/src/menu-collapse-transition.vue

* refactor(components): migrate ElMenuItem to Composition API

* fix: update

* chore: chore

* refactor: refactor

* revert: revert

* refactor: refactor

* revert: revert

* fix: Expose

* Update packages/components/menu/src/menu-item.vue

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

---------

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
2025-02-12 10:30:44 +08:00
sea
5ed153bb64 fix(components): [message-box] init validator (#19832)
* fix(components): [message-box] init validator
* fix: update

---------
Co-authored-by: xingyixiang <452282988@qq.com>
2025-02-11 17:21:29 +08:00
jiaxiang
51d3e83a51 chore(components): [tree] remove ts-nocheck and fix type error (#19777)
* chore(components): [tree] remove ts-nocheck and fix type error

* refactor: refactor

---------

Co-authored-by: btea <2356281422@qq.com>
2025-02-10 20:51:10 +08:00
jiaxiang
6ae39f2176 chore(components): [cascader-node] remove ts-nocheck and fix type error (#19776)
* chore(components): [CascaderNode] remove ts-nocheck and fix type error

* chore: format

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2025-02-07 08:24:07 +00: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
pengpeng
d2e269f772 fix(components): [table] the toggleTreeExpansion failed to trigger load function (#18728)
* feat(components): [table] fix lazy loading

* Modify the function usage
2025-01-26 15:21:56 +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
coderchang
b336dff189 fix(components): [cascader-panel] lazy return children can't get value (#19100)
* fix(components): [cascader-panel] lazy return children can't get value

fix #9157

closed #9157

* fix: update
2025-01-24 17:03:16 +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
Mark J
fbbb50a9b2 fix(components): [input] refused to apply inline style because it violates csp (#19541)
fix(components): [input] CSP support #15065

`element.setAttribute('style', 'css code')` violate Content Security Policy (CSP)
using `element.style.setProperty()` instead
2025-01-24 15:05:10 +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
DDDDD12138
acbb0c0ca1 fix(components): [autocomplete] prevent closing if focus is inside popper content (#19522)
fix: [autocomplete] prevent closing if focus is inside popper content
2025-01-21 21:32:24 +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
David Kitano
40a616ea1a feat(components): [cascader] add prefix slot (#19631)
* feat(components): [cascader] add prefix slot

* docs(components): [cascader] add preview slot

* Revert "docs(components): [cascader] add preview slot"

This reverts commit 1a40ca13ea.

* docs(components): [cascader] revert for typo

* fix(components): do not render prefix if prefix slot is not used

* docs(components): [cascader] prefix version number added

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

* docs(components): [cascader] format docs

---------

Co-authored-by: btea <2356281422@qq.com>
2025-01-18 09:23:33 +08:00
jiaxiang
61d5dcc3ae feat(components): [image-viewer] add toolbar slot (#19497)
* feat(components): [image-viewer] add toolbar slot

* feat(docs): add docs

* docs: update

* docs: update

* docs: update image viewer API types for clarity

* docs: update custom toolbar version in image documentation to 2.9.4

* Update docs/examples/image/custom-toolbar.vue

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

* style: remove dividers

* revert: style

* docs: format

---------

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
2025-01-17 15:50:44 +08:00
Noblet Ouways
6c5cfbfce6 fix(components): [table-footer] update cols width on layout change (#19064)
fix(components): [table-footer]

update cols width on layout change

closed #19054

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
2025-01-16 17:12:23 +08:00
jiaxiang
ac42b639ce feat(components): [image-viewer] add progress slot and show-progress props (#19465)
* refactor(components): simplify computed properties in image-viewer

* feat(components): [image-viewer] add progress number

* test(components): remove console logs from image-viewer tests

* feat(components): [image-viewer] update progress display and style

* test(components): update progress selector in image-viewer tests

* feat(components): [image-viewer] add slot support for progress display

* docs(components): [image] add progress content description

* docs(components): update docs

* feat(components): [image] simplify progress slot binding

* docs(components): update

* Update packages/components/image-viewer/__tests__/image-viewer.test.tsx

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

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

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

* docs: update progress version in image documentation

* Update packages/components/image-viewer/src/image-viewer.vue

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

* feat: add showProgress props

* docs: add demo

* docs: update v

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

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

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
2025-01-16 11:44:35 +08:00
jiaxiang
a5f77e6e31 chore: [tree] remove unused arg (#19255) 2025-01-16 10:44:46 +08:00
jiaxiang
82aedc86c7 feat(components): [select] add popup-scroll event (#19589)
* feat(components): [select] add popup-scroll event

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

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

* chore: format

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: warmthsea <2586244885@qq.com>
2025-01-14 15:54:31 +08:00
jiaxiang
f63da8f5a3 chore: [message-box] remove @ts-nocheck directive (#19277)
* chore: [message-box] remove @ts-nocheck directive

* fix: type

* Update packages/components/message-box/src/index.vue

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

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2025-01-13 21:34:07 +08:00
jiaxiang
2f1e8b3a43 feat(components): [image-viewer] add showPreview method (#19466)
* feat(components): [image-viewer] add showPreview method

* docs(components): [image] update showPreview method version to 2.9.4
2025-01-11 21:50:29 +08:00
DDDDD12138
535c6e34f6 chore: [time-picker] correct typo in timePickerRangeTriggerProps (#19487)
* fix: correct typo in timePickerRangeTriggerProps

* chore: deprecate misspelled export `timePickerRngeTriggerProps`

---------

Co-authored-by: btea <2356281422@qq.com>
2025-01-11 01:00:24 +00:00
Noblet Ouways
22c3bd8e72 feat(component): [time-select] add include end time attribute (#19253)
* feat: [time-select] init includeEndTime 🚧

* test: time-select includeEndTime 🚧

* refactor: renaming & cleanup

* test(components): [time-select] add includeEndTime cases 

* docs(components): [time-select] add `includeEndTime` attribute

* chore: change release version

* chore: set `includeEndTime` default to false

* docs: fix props typo

* chore: remove useless assignment

* chore: rename optionValue to currentTime

* chore: update release version
2025-01-10 15:46:13 +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
Meet you
062ac99aec fix(components): [dialog] fix scroll bar not resetting to top on reopen (#19471)
* fix(components): [dialog] Fix scroll bar not resetting to top on reopen

closed #19420

* fix(components): update

* fix(components): [dialog] update

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
2025-01-09 16:47:22 +08:00
btea
6316898909 improvement(components): [text] keep the inherited title attribute (#19551)
* improvement(components): [text] keep the inherited title attribute

* fix: content update recalculation
2025-01-09 13:53:36 +08:00
btea
b171baaca7 improvement(components): [text] add the title attribute (#19496) 2025-01-07 22:59:33 +08:00
DDDDD12138
f6c9fd54ca fix(components): [tabs] set modelValue synchronously if beforeLeave is not set or is synchronous (#19387)
* fix: [tabs] sync modelValue if beforeLeave is not set or is synchronous

* feat: add unit test
2025-01-06 23:37:17 +08:00
Noblet Ouways
536548e753 fix(components): [form] on post rules update reset field (#19129)
* fix(components): [form] track rules on post update

closed #19109

* fix(components): [form] ensure reset field state if no rules

closed #19128

* test: add validate on rule change case

* chore: on rules update reset field error

* chore: fixup

---------

Co-authored-by: btea <2356281422@qq.com>
2025-01-06 22:58:08 +08:00
Noblet Ouways
5f72ca51cd feat(components): [dialog/drawer] add custom sub classes (#19099)
* feat(components): [dialog/drawer] add custom sub classes

* docs(components): add custom classes for drawer/dialog slots

* docs(components): [dialog/drawer] keep same description

* test: add dialog/drawer sub classes

* refactor: sync typo docs with props

* chore: change release version

* chore: rename

* chore: fix doc

---------

Co-authored-by: btea <2356281422@qq.com>
2025-01-06 10:52:39 +08:00
btea
45fa8d3b31 fix(components): [description] labelWidth is invalid when no border (#19162)
* fix(components): [description] `labelWidth` is invalid when no border

* test: add test case
2025-01-04 14:10:26 +08:00
btea
f3fec3203a feat(components): [table] add allow-drag-last-column prop (#19374) 2025-01-03 11:36:19 +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
Lo
6bc45440f8 feat(components): [select, select-v2] add loading class to validateIcon (#19379)
fix(components): [select, select-v2] add loading class to validateIcon
2025-01-02 18:02:46 +08:00
qiang
1ca9d9c3fa fix(components): [select] input width fills the remaining width (#19292)
* fix(components): [select] input width fills the remaining width

closed #17886

* fix: type
2025-01-02 13:41:13 +08:00
Noblet Ouways
52ee847ff8 fix(components): [page-header] use $slots instead of useSlots (#19455)
* fix(components): [page-header] use `$slots` instead of `useSlots`

closed #19453

* test(components): [page-header] add classes slots rendering case
2025-01-01 22:01:09 +08:00
ly-yewu
1343d4cfac fix(components): [upload] unable to delete files in removeFile (#19437)
* fix(components): [upload] unable to delete files in removeFile

* fix(components): [upload] remove file when fileList does not use v-model

* Update packages/components/upload/src/use-handlers.ts

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

---------

Co-authored-by: leiyu <leiyu@cmss.chinamobile.com>
Co-authored-by: btea <2356281422@qq.com>
2024-12-31 12:42:44 +08:00