Commit Graph

3778 Commits

Author SHA1 Message Date
jiaxiang
ad2cbd2a23 refactor(components): [image] image-viewer standalone use (#19715)
* chore: remove prevent body scroll in image-viewer

* docs: format

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2025-02-25 22:10:34 +08:00
sea
6a22c579e6 chore: [dropdown] remove @ts-nocheck & fix type error (#19912)
* chore: [dropdown] remove @ts-nocheck & fix type error

* docs: update
2025-02-22 13:42:06 +08:00
jiaxiang
398d68cc3e feat(components): [slider] add persistent prop (#19889)
* feat(components): [Slider] add persistent prop

* fix(components): [slider] update persistent prop

* fix(components): [slider] rename persistent prop to tooltipPersistent

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

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

* chore: formatted

* fix(components): [slider] update description for persistent prop

---------

Co-authored-by: btea <2356281422@qq.com>
2025-02-20 16:17:36 +08:00
sea
cffc025415 fix(components): [tree-select] search solve memory leak (#19895)
* fix(components): [tree-select] search solve memory leak

* feat: update

* fix: test

* chore: update test
2025-02-20 11:37:41 +08:00
DDDDD12138
4ac22efb0d fix(components): [select] ensure scrollbar syncs when scrolling to selected option (#19636)
* fix: ensure scrollbar syncs when scrolling to selected option

* feat: update scrollbar when drop-down menu is displayed
2025-02-19 21:30:51 +08:00
btea
47e10798fb fix(components): [message-box] vue warning when closeIcon is component (#19901) 2025-02-19 09:55:01 +08:00
xion
8c7a43f1fc feat(components): [message-box] support custom close icon in message-box (#18168) 2025-02-18 19:00:22 +08:00
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
Lo
7c4a453816 fix(components): [steps] update border-color to support safari (#19726) 2025-02-18 12:53:53 +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
btea
6b55811103 feat(locale): export missing language (#19790)
feat(locale): export missing locale
2025-02-07 17:48:54 +08:00
changehu
e82d4d8a48 feat(locale): export Norsk(no) (#19747)
feat(locale): export Norsk(no)

Added Norwegian language reference

Co-authored-by: btea <2356281422@qq.com>
2025-02-07 17:24:45 +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
btea
a49d1cabd5 feat(locale): export zhHk/zhMo (#19762) 2025-01-30 20:44:05 +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
Mouli Bheemaneti
ce5963774c feat(i18n): add Telugu language (#19624)
* feat(i18n): add Telugu language

* chore(i18n): added missing keys in Telugu locale

* chore: format telugu locale file.

* chore(locale): fix lint in te.ts

* docs: add lang records
2025-01-16 03:00:26 +00: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
Mark J
3b2eaed8f3 feat(locale): add language Chinese Hongkong and Chinese Macau (#19608) 2025-01-14 11:02:43 +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
sea
c976e945f5 style(components): [dialog] no rounded when in fullscreen (#19583) 2025-01-10 10:35:39 +08:00