Commit Graph

2287 Commits

Author SHA1 Message Date
kooriookami
886a8fcb47 chore: make enum const 2025-03-19 10:49:09 +08:00
sheepie
5ae65bbcb5 fix(components): [time-picker] custom format causes highlight errors (#20161)
fix(components): [time-picker] Don't show highlights with custom format (#20151)
2025-03-19 09:35:47 +08:00
Daniel Jagszent
7240a0b72d fix(components): [empty] remove static ID attributes from SVG (#19764)
The default empty state SVG had some static ID attributes in them. They prevented the component to be used more than once on a page (IDs need to be unique in a document).

This commit just deletes the IDs. They do not get used anyway.
2025-03-19 08:43:43 +08:00
Egor Rakutov
a3e774e12c fix(components): [el-select-v2] use :model-value without changes (#20149)
fix(components): [el-select-v2] model-value bug
2025-03-18 16:33:19 +08:00
pengpeng
e9d82e59e9 fix(components): [table] the selection column conflicts with setting both showOverflowTooltip and align='center' styles (#20157)
* fix(components): [table] type sets showOverflowTooltip centering style problem under `selection`

* Update index.ts

* Update index.ts
2025-03-18 10:30:46 +08:00
dopamine
7be4a3765e chore: emits smaller declaration files (#20109)
* Revert "fix(types): packing unexpected types (#19419)"

This reverts commit 13506ffb81.

* Revert "chore: add explicit type annoation (#19352)"

* fix(typescript): borken import paths in declaration files

* chore: emits smaller declaration files
2025-03-18 10:08:44 +08:00
btea
d4123cd558 fix(components): [upload] drag file add isDirectory attribute (#20012)
* fix(components): [upload] drag file add isDirectory attribute

* fix: compatibility test

* fix: extend UploadRawFile
2025-03-17 20:55:04 +08:00
JohnnyYu
4e2a64d721 fix(components): [message-box] ElMessageBoxOptions type missing modalClass (#20135)
fix(components): [MessageBox]ElMessageBoxOptions type add modalClass
2025-03-15 23:30:22 +08:00
风屿
e87a8670d4 refactor(components): [description, input] use the component name constant (#20107)
* refactor(components): [description] extracts the component name constant

* refactor: extracts the component name constant

* refactor: change the location of COMPONENT_NAME

* Update packages/components/descriptions/src/description-item.ts

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

* refactor: change the name

* refactor: Extract COMPONENT_NAME to a separate file

* refactor: Adjust rows

---------

Co-authored-by: btea <2356281422@qq.com>
2025-03-15 23:14:51 +08:00
biaobiao
1d6711a37c fix(components): [affix] scroll event value sync (#20108)
* fix:affix scroll event value sync

* fix(components): [affix] fix lint errors in the affix.vue file

* fix(components): [affix] remove excess text

---------

Co-authored-by: QD-OUJINBIAO <1105973070@qq.com>
2025-03-13 16:38:40 +08:00
EralChen
d410486c07 feat(components): [table-column] preserve expanded content (#19899)
* feat: [table-column] preserve expanded content

* chore: format

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2025-03-13 10:20:07 +08:00
thinkasany
7dbac0e1bc chore: use event constants instead string (#20104)
* chore: use UPDATE_MODEL_EVENT constants

* chore: update INPUT_EVENT & CHANGE_EVENT
2025-03-12 15:52:07 +08:00
Noki
f31d3b6d0c fix(components): [select] typed value causes default-first-option to fail (#19806)
* fix(components): [select] default-first-option

* fix(components): [select] watch optionArray ref

* test(components): [select] add default-first-option

* test(components): [select] remove only

* test(components): [select] use remote-method

* fix(components): [select] add condition for optionsArray loop

* fix(components): [select] remove condition for optionsArray loop
2025-03-11 15:24:07 +00:00
cleaverlove
5855db4f5c refactor(components): [time-select] using built-in constants (#20079)
refactor(components): [time-select] convert to a constant
2025-03-11 21:02:59 +08:00
xinconan
25f42aa9d7 feat(components): [alert] add icon slot (#20034)
* feat(components): [alert]add icon slot

* refactor(components): [alert] move default iconComponent into icon slot

* chore: update version

---------

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
2025-03-09 15:34:11 +00:00
sea
244e811b44 chore(eslint-config): add line-between-blocks rules (#20051) 2025-03-08 08:55:02 +08:00
sea
434208c9ad fix(components): [select-v2] option need double click in IOS (#20041)
* fix(components): [select-v2] option need double click in IOS

* chore: format
2025-03-07 11:13:07 +08:00
DDDDD12138
d4bb395291 fix(components): [date-picker] support remove same months from different years (#20020)
* fix: support selecting same months from different years

* feat: add test case

* chore: adjust description
2025-03-07 09:51:08 +08:00
Noblet Ouways
2ee14a3256 fix(components): [dropdown] button-props as a Partial type (#20035)
fix(components): [dropdown] `button-props` as a partial type
2025-03-06 19:11:01 +08:00
知晓同丶
bb4d0535bc fix(components): [date-picker] add user input validation (#20021)
* fix(components): [date-picker] add user input validation

closed #19841

* refactor: rename `checkUserInput` to `correctlyParseUserInput`
2025-03-06 16:17:59 +08:00
sea
7acf11ec37 test(components): [input] use formatter , event val check (#20031)
Co-authored-by: btea <2356281422@qq.com>
2025-03-06 09:44:45 +08:00
TKSun
b46fc201e4 fix(components): [input] @change event value formatter (#20000)
* fix: change事件值没有被格式化

fix: change事件值没有被格式化

* Update packages/components/input/src/input.vue

---------

Co-authored-by: btea <2356281422@qq.com>
2025-03-06 09:36:49 +08:00
sea
472346f81e chore: use a closing svg tag (#20018) 2025-03-04 09:06:08 +08:00
xingyixiang
f932ea2dcb fix(components): [date-picker] change triggers twice when clearing (#19804)
* fix(components): [date-picker] change triggers twice when clearing

* fix(components): [date-picker] change triggers twice when clearing

* fix(components): [date-picker] add test

* fix(components): [date-picker] add test

* fix(components): [date-picker] add test

* fix(components): [date-picker] add test
2025-03-03 15:47:34 +08:00
Jason
3079a4789d fix(components): [table] replace pageX with clientX (#19881)
Co-authored-by: chengang <chengang@lianantech.com>
2025-02-27 22:21:53 +08:00
DDDDD12138
87e3d1d400 fix(components): [select-v2] allow propagation of non-control key events in custom options (#19984)
fix: allow propagation of non-control key events in custom options
2025-02-27 22:09:14 +08:00
Noblet Ouways
0ed86e74ce feat(components): [tree/tree-select] add check-on-click-leaf attribute (#19494)
* chore: last leaf node clickable on `show-checkbox`

* chore: revert

* chore: leaf node checkable

* test: checkable by click on leaf node

* chore: test & doc

* chore: add version

* feat: handle tree-v2

* test: tree-v2
2025-02-26 21:24:58 +08:00
DDDDD12138
3ef10ec5b8 perf(components): [select-v2] optimize to avoid unnecessary computations (#19970)
* perf: avoid redundant property checks and regex constructions

* perf: optimize allOptions handling and introduce hasOptions

* feat: update 'allOptions' type
2025-02-26 16:45:01 +08:00
sea
31f08e0954 test: use test fn replace sleep (#19977)
* test: use test fn replace sleep

* test: update
2025-02-26 16:21:04 +08:00
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
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