Commit Graph

6823 Commits

Author SHA1 Message Date
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
sea
a5a2397a4d chore: change create issue use (#19865) 2025-02-14 10:55:09 +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
btea
c57313820c docs: [message-box] update options default value (#19833) 2025-02-11 18:01:58 +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
0song
524d617c9c chore: update doc (#19831) 2025-02-11 04:40:38 +00: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
fe9cc6351b docs: optimization API style (#19793)
* docs: optimization API style

* chore: Transfer

* chore: update

* fix: update
2025-02-09 13:35:08 +08:00
Element
49a8d5c354 chore: Update changelog 2.9.4 (#19792)
chore: update changelog 2.9.4
2025-02-07 11:12:35 +00: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
jiaxiang
fe0c724293 docs: [scrollbar] fix type error (#19697)
* docs: [scrollbar] fix type error

* refactor(docs): improve code structure and type annotations in examples

* Update docs/examples/scrollbar/manual-scroll.vue

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

* fix(docs): replace lodash isNumber with typeof check

* fix(docs): update

---------

Co-authored-by: btea <2356281422@qq.com>
2025-02-07 03:00:55 +00:00
btea
ed54ccc25b ci: fix corepack matching keyid error (#19783) 2025-02-07 09:46:18 +08: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
0song
c4fc329237 chore: update doc (#19770) 2025-02-04 14:25:15 +00:00
jiaxiang
329ac01b4c docs: [calendar] add CalendarDateType Type Declarations (#19766)
docs: [calendar] add Type Declarations
2025-02-02 17:02:18 +08:00
btea
a49d1cabd5 feat(locale): export zhHk/zhMo (#19762) 2025-01-30 20:44:05 +08:00
Noblet Ouways
6fb1f3eb37 chore: format dropdown.md (#19758)
chore: format dropdown.md
2025-01-30 20:41:06 +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
jiaxiang
d989617162 docs: [tooltip] fix type error (#19687)
* docs: fix type error

* docs: [tooltip] remove unnecessary width and height in mousemove handler

* fix: update

* fix: update
2025-01-24 15:37:44 +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
jiaxiang
38dcbf0f13 docs: search input default focus (#19724)
* docs: search input default focus

* fix(docs): ensure search input is focused after component mounts

* revert: update

* Update docs/.vitepress/vitepress/components/globals/overview.vue

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

* Update docs/.vitepress/vitepress/components/globals/overview.vue

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

* docs: update

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2025-01-24 11:45:28 +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
jiaxiang
b6e076ee95 docs: fix Exposes error (#19733) 2025-01-23 16:43:33 +08:00
jiaxiang
c8650d74e2 docs: [input-number] fix type error (#19712) 2025-01-22 23:39:47 +08:00
jiaxiang
42d279f87b docs: [checkbox] fix intermediate example type error (#19713)
docs: [checkbox] fix type error
2025-01-22 09:49:27 +08:00
DDDDD12138
a2d90bfb23 docs: [layout] add a tip for layout column (#19669)
docs: layout add tip
2025-01-22 09:03:56 +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
jiaxiang
049ed2a97c docs: [switch] fix type error (#19704) 2025-01-21 09:18:36 +08:00
jiaxiang
ac9616d128 docs: [tabs] fix type error (#19690) 2025-01-20 11:24:28 +08:00
smallbone
745f3616cd docs: [dropdown] add button-props prop (#19694)
docs: [dropdown] add `button-props` prop

Co-authored-by: Bruce Lu <smallbone.lu@gmail.com>
2025-01-20 10:31:27 +08:00
jiaxiang
0be1872b06 docs: [timeline] fix type error (#19688)
* docs: [timeline] fix type error

* Update docs/examples/timeline/custom-node.vue

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

* Update docs/examples/timeline/custom-node.vue

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

---------

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
2025-01-19 15:36:05 +08:00