Commit Graph

2701 Commits

Author SHA1 Message Date
Ben Lau
64a0c61917 fix(components): [tree] correctly determine the drop type of tree node (#21717)
Co-authored-by: liubaobin <liubaobin@wps.cn>
2025-09-14 00:29:49 +02:00
Noblet Ouways
75322df994 fix(components): [date-picker-panel] sync panel with model-value (#22123)
* fix(components): [date-picker-panel] sync panel with model-value

closed #22050

* test: set tests cases

* refactor: apply review

Co-authored-by: Zhong <cszhjh@gmail.com>

---------

Co-authored-by: Zhong <cszhjh@gmail.com>
2025-09-12 18:14:59 +08:00
Zhong
61ece6bd66 refactor(components): [autocomplete] remove any type (#22127)
* refactor(components): [autocomplete] remove `any` type

* fix: update

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

* fix: update

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

---------

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
2025-09-12 09:25:31 +00:00
Bigpawn
d79bc2ac55 fix(components): [splitter] resize-end event sizes value is not the latest (#22125)
* fix(components): [splitter]在调整大小结束时添加 nextTick 以确保延迟更新

当 lazy 为 true 时,使用 nextTick 确保在 DOM 更新后触发 resizeEnd 事件

* fix(components): [splitter] Fix the ts issue of onResizeEnd

* fix(components): [splitter] Add test cases

* fix(components): [splitter] Merge remote changes and keep test cases

* chore: format

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2025-09-12 09:14:18 +00:00
Kylin
72780e0f50 refactor(components): [checkbox] reduce repetitive code in templates (#22094)
* refactor(components): [checkbox] reduce repetitive code in templates

* refactor(components): [checkbox] recovery class

* refactor(components): [checkbox] remove the indeterminate attribute

* Update packages/components/checkbox/src/checkbox-button.vue

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

* refactor(components): [checkbox] delete inputId

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
2025-09-11 12:33:13 +02:00
Rainbow
66c37f139f feat(components): [mention] support props prop (#21980)
* feat(components): [mention] support props prop

* feat: update

* feat: update

* feat: update

* feat: update

* feat: update

* docs: update

* feat: update

* Apply suggestions from code review

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

* docs: update version number

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
2025-09-10 22:13:10 +08:00
btea
6252d87e6a test(components): [cascader] dynamic maxCollapseTags (#22103) 2025-09-10 17:27:43 +08:00
Zhong
0f5022a4f9 feat(components): [tabs] support scrolling via mouse wheel (#22024)
* feat(components): [tabs] support scrolling via mouse wheel

* ci: rerun ci
2025-09-10 09:05:41 +08:00
btea
a9e20d3b9f fix(components): [cascader] response to change in maxCollapseTags (#22087) 2025-09-09 22:50:03 +02:00
Kylin
bfa5c1aefd refactor(components): [checkout] reduce repetitive code in templates (#22072) 2025-09-09 11:09:49 +08:00
Zhong
8400d0d998 feat(components): [dropdown] add virtual-ref / virtual-triggering / show-arrow props (#22056)
* feat(components): [dropdown] add `virtual-ref / virtual-triggering / show-arrow` props

* docs: update

* docs: add tag

* test: add case

* chore: format

* docs: update
2025-09-09 09:32:57 +08:00
Zhong
4845caab13 fix(components): [mention] correct cursor position (#22070)
* fix(components): [mention] correct cursor position

* test: add test

* fix: use wrapper as a reference
2025-09-08 12:30:05 +02:00
Zhong
229a0a159b fix(components): [alert] show immediately when showAfter not needed (#22028)
* fix(components): [alert] show immediately when `showAfter` not needed

* fix: use `open` change `visible`

* refactor: optimize code

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

* fix: resolve auto-close invalid

* test: add cases

* test: add immediate case

* fix: update

* test: update test

* fix: use `undefined` default

* fix: remove as `Ref<number>`

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

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

* fix: import isUndefined

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
Co-authored-by: btea <2356281422@qq.com>
2025-09-07 21:24:08 +02:00
micaiguai
1087c10caa fix(components): [table] fix table display error in stripe mode (#22022)
* fix(components): [table] Fix table display error in stripe mode

* fix(components): [table] Add test case
2025-09-07 11:56:41 +02:00
ll-huihui
a4674ca778 feat(components): [input-tag] add drag-tag event (#22038)
* feat(components): 添加drag-tag事件

-remove-tag事件添加当前删除的索引参数\n -添加drag-tag事件\n -修改这两个事件方便不同数据源之间操作

* Update docs/en-US/component/input-tag.md

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

---------

Co-authored-by: 刘辉 <15909216375@163.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
2025-09-07 13:51:48 +08:00
sea
ca4a798545 fix(components): [date-picker]: use array modelValue datetime type debacle (#22033)
fix(components): [date-picker]: use array value datetime type debacle
2025-09-06 07:46:11 +08:00
Kylin
606cdc8948 refactor(components): [menu] optimize condition judgment (#22020)
* refactor(components): [menu] optimize condition judgment

* refactor(components): [menu] use if...else...

* refactor: adjust the position of isFirstLevel
2025-09-05 09:25:38 +08:00
Anod Chow
7966f61d46 refactor(components): [date-picker-panel] emit after input instead of watch (#21899)
* fix(components): [date-picker] avoid update when modalValue is not change

* Revert "fix(components): [date-picker] avoid update when modalValue is not change"

This reverts commit 7f373ee642.

* fix(components): [date-picker-panel] emit after input instead of watch

* test: add test case

* test: add test

* chore: remove useless nextTick

---------

Co-authored-by: Dsaquel <291874700n@gmail.com>
2025-09-04 20:39:02 +08:00
betavs
d5e62eb7b9 fix(components): [autocomplete] type declaration error (#15261) 2025-09-04 20:28:44 +08:00
oooh
9b5e405ad9 chore(components): [cascader-panel] remove duplicate exports (#21828)
* chore(components): cascader-panel Update types.ts export types

* chore(components): cascader-panel/node.ts export types from types.ts

* chore(components): cascader-panel/types export

* chore: cascader-panel import types form types.ts

* chore: cascader-panel test types

---------

Co-authored-by: 一只前端汪 <985313519@qq.com>
2025-09-04 18:42:00 +08:00
catanswer
3fef855fc0 fix(components): [time-picker] range type add id automatically (#21746)
* fix(components): [time-picker] range type add id automatically

* Update packages/components/time-picker/src/common/picker-range-trigger.vue

Co-authored-by: Zhong <cszhjh@gmail.com>

* Update packages/components/time-picker/src/common/picker-range-trigger.vue

Co-authored-by: Zhong <cszhjh@gmail.com>

* Update packages/components/time-picker/src/common/picker-range-trigger.vue

* fix: [time-picker] sort the import declaration

* Update packages/components/time-picker/src/common/picker-range-trigger.vue

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

* Update picker-range-trigger.vue

---------

Co-authored-by: yinshenghao <--global>
Co-authored-by: Zhong <cszhjh@gmail.com>
Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
2025-09-04 17:28:04 +08:00
snowbitx
f74e403299 feat(components): [radio-group] support options prop rendering (#21543)
* feat(components): [radio-group] support options

* test: add test case

* docs: tweak doc

* Update basic-usage.vue

* docs: tweak doc

* Update packages/components/radio/src/radio-group.vue

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

* chore: label prop

* Update packages/components/radio/src/radio-group.ts

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

* Update packages/components/radio/src/radio-group.vue

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

* refactor: use ts logic

* Update form.md

* Update message.ts

* refactor: fix effect lost

* refactor: use template logic and update version

* Update radio-group.ts

* Update options.vue

* Update options.vue

* refactor: rename props and  support additional attributes and  render

* chore: default key

* chore: use optionProps

* chore: fix build error

* chore: fix build error

* chore: fix build error

* chore: fix build error

* chore: fix build error

* Update radio-group.vue

* Update basic.vue

* refactor: refer checkbox

* Update pnpm-lock.yaml

* Update pnpm-workspace.yaml

* Update package.json

* Update package.json

* chore: ts error

* Update radio-group.ts

* Update radio-group.ts

* refactor: add more attr support and update version

* refactor: props consistent with select

* Update radio.md

* Update packages/components/radio/src/radio-group.vue

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

* Update packages/components/radio/src/radio-group.vue

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

* chore: type with single line

* chore: fix build error

* chore: delete radioRenderer testcase

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>
2025-09-04 17:26:57 +08:00
sea
b9ac07cb68 refactor(components): [drawer] resizable (#21932)
* Revert "drawer resizable #21608"

* refactor: drawer resizable

* feat: direction & event core

* docs: update

* fix: animation conflict

* fix: watchEffect onCleanup hrm error

* test: add resize case

* chore: format

* test: old case typo

* refactor: rel #21595 & add hover style

Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: cszhjh <cszhjh@gmail.com>

* chore: del useless file

* chore: del useless file

* chore: rename

Co-authored-by: Dsaquel <291874700n@gmail.com>

* fix: use min resizable error

* fix: multiple resizable style conflicts

* test: fix

---------

Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: cszhjh <cszhjh@gmail.com>
Co-authored-by: Dsaquel <291874700n@gmail.com>
2025-09-04 15:33:06 +08:00
Jevin
12ffd3cfd8 feat(components): [loading] export LoadingInstance (#22027)
* feat: add export LoadingInstance

* chore: update
2025-09-04 15:28:44 +08:00
thinkasany
8cdfd33324 refactor(components): [splitter] disabled class and style (#22001)
* refactor(components): [splitter] disabled class and style

* ci: fix

* Update packages/components/splitter/src/split-bar.vue

Co-authored-by: Zhong <cszhjh@gmail.com>

* ci: fix lint

---------

Co-authored-by: Zhong <cszhjh@gmail.com>
2025-09-04 14:34:40 +08:00
btea
333ed63b8f fix(components): [focus-trap] destory el ref (#21916) 2025-09-04 09:42:00 +08:00
qiang
7a18e717d8 feat(components): [tooltip] add focus-on-target prop (#21905)
* feat(components): [tooltip] add focus-on-hover prop

* chore: rename ot focusOnTarget

* chore: remove focusVisible

* chore:  error
2025-09-04 09:05:52 +08:00
thinkasany
1b7af91fca feat(components): [popConfirm] add close-on-press-escape prop (#21981)
* feat(components): [popConfirm] add closeOnPressEscape

* ci: add test

* ci: rerun

* ci: rerun

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

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

* ci: fix

* ci: rerun

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

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

* ci: rerun

* ci: fix

* ci: rerun

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
Co-authored-by: btea <2356281422@qq.com>
2025-09-04 07:18:02 +08:00
Noblet Ouways
c6c3e258c2 fix(components): [loading] accept type VNode for text property (#22025)
* fix(components): [loading] accept type VNode for text property

closed #12927

* test: add test case
2025-09-04 07:13:33 +08:00
qiang
7449e4e6b5 docs: the ElDropdown component in the preview webpage cannot be use (#22008)
* docs: the ElDropdown component in the preview webpage cannot be use

* Revert "docs: the ElDropdown component in the preview webpage cannot be use"

This reverts commit fd2be708e4.

* fix: ensure collection.vue compiles to the same code

---------

Co-authored-by: dopamine <coderzyou@gmail.com>
2025-09-03 22:25:05 +08:00
qiang
b04b827a1f feat(components): [rate] accessibility enhancement (#22013) 2025-09-03 17:41:00 +08:00
Kylin
81df371a02 refactor(components): [tabs] extract logical reuse (#22006) 2025-09-03 15:50:35 +08:00
Noblet Ouways
db2b64159a fix(components): [table-v2] add missing LEFT member in Alignment (#22010)
closed #10113
2025-09-03 13:39:33 +08:00
thinkasany
a98960a902 refactor(components): improve tooltip type (#21999) 2025-09-02 19:15:41 +08:00
Kylin
f429c38d93 perf(components): [form] optimize search for obj with certain attribute (#21996) 2025-09-02 09:20:04 +08:00
Zhong
df88ec60ec chore(components): improve types and JSDoc for better code hints (#21998) 2025-09-02 09:02:00 +08:00
Lasy
8f6f00f5b0 fix(components): [popover] empty node execution error (#21991)
fix(components): [popover] support comment node (https://github.com/element-plus/element-plus/issues/21990)
2025-09-01 22:38:01 +02:00
sea
c7819375c9 test(components): [toopltip] input focus case (#21994) 2025-09-01 12:36:31 +02:00
sea
76e3331fb8 style(components): [splitter] use ew-ns cursor (#21988) 2025-09-01 12:33:29 +02:00
qiang
e22d59b28a fix(components): [popper] unable to capture focus event (#21908)
* fix(components): [popper] unable to capture focus event

* chore: add useCapture to removeEventListener

* chore: add useCapture to removeEventListener

* fix(components): [tooltip] improve trigger handling for closing tooltip
2025-09-01 17:23:20 +08:00
thinkasany
1671338036 refactor(components): [cascader] adjust the ts type (#21966) 2025-08-31 15:42:03 +08:00
thinkasany
52cfb4afd8 feat(components): [popConfirm] support effect (#21965) 2025-08-31 14:48:06 +08:00
Kylin
b887cd1917 refactor(components): [cascader] adjust the ts type (#21963)
* refactor(components): [cascader] adjust the ts type

* refactor(components): [cascader] adjust the State position
2025-08-30 12:27:23 +08:00
qiang
0aa72d510b fix(components): [onlyChild] no warning when there are multiple child (#21958) 2025-08-30 12:25:02 +08:00
snowbitx
b83316e151 feat(components): [checkbox-group] support options (#21545)
* feat(components): [checkbox-group] support options

* chore: ts logic

* docs: add doc

* Update checkbox-group.ts

* chore: eslint

* refactor: use ts logic

* refactor: fix effect lost

* test: add test case

* refactor: simplify

* chore: build error

* refactor: use independent getOptionProps

* refactor: rename defaultProps

* Update checkbox-group.vue

* chore: rename optionProps

* refactor: add more attr support

* chore: update version

* chore: changed props

* Update checkbox.md
2025-08-30 07:32:19 +08:00
Rainbow
01dcccdfc3 fix(components): [form] inline-message of form-item defaults to undefined (#21944)
* fix(components): [form] inline-message of form-item should be Boolean

* fix: update

* fix: update

* docs: inline-message of form-item defaults to undefined
2025-08-30 00:09:38 +02:00
一只前端汪
3d7fcdadab fix(components): [select/v2] width of drop-down panel exceeds the input (#21910)
* fix(components): [select/V2] width of dropdown panel exceeds the input

* fix(components): [select/V2] width of drop-down panel exceeds the input

* fix: select constants

* fix: select

---------

Co-authored-by: 2586740555 <15972343+CYJ090915@user.noreply.gitee.com>
2025-08-29 15:10:36 +08:00
chenyuqiua
20af6159c6 feat(components): [container] add validation for the direction prop (#16734)
* feat(components): add validation for the Container component properties

- I found that the orientation attribute of the Container component was not validated.

- So I added enumeration value validation to the component

* chore: remove useless function isDirectionType

* chore: use buildProps

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2025-08-29 15:06:14 +08:00
micaiguai
748cf2a260 chore(components): [table-v2] fix the typo (#21936)
chore(components): [table-v2] Fix the typo
2025-08-28 23:15:37 +00:00
thinkasany
094fc74cf2 feat(components): [tour] add close locale (#21934) 2025-08-29 07:12:17 +08:00