Commit Graph

2701 Commits

Author SHA1 Message Date
xuan
9f891192e6 fix(components): [tree] check isLeaf using lazy and default-expand-all (#17585)
fix(components): check isLeaf using lazy and default-expand-all

Fixes the issue where the isLeaf parameter was not checked when using lazy and default-expand-all.

In the current implementation, when default-expand-all is set to true and lazy loading is enabled,
the ElTree component expands nodes without considering the isLeaf parameter. This can lead to
unnecessary loading of leaf nodes.

This fix adds a check for the isLeaf parameter to prevent loading children for nodes marked as leaf
nodes.

This fix improves performance and avoids unnecessary network requests or data processing for nodes
already known to be leaf nodes.

BREAKING CHANGE :
There are no breaking changes introduced by this fix.

closed None.
2024-08-06 16:56:01 +08:00
thinkasany
785761ab89 chore(utils): improve setTimeout type (#17763)
* chore(utils): improve setTimeout type

* revert
2024-08-05 21:10:14 +08:00
daoyi.tian
48dfe3a69a feat(components): [table] tree children add check strictly (#13519)
* feat(components): [table] tree children add check strictly

* fix(components): [table] remove utils console

* fix(components): [table] error of selector state

* docs: update

* fix: remove unnecessary changes

* fix: the toggleRowStatus has not been processed to selectable

* docs: update

* fix: the rowIndex error

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-05 12:10:17 +08:00
qiang
ef54dfbb35 feat(components): [drawer] add append-to (#17761) 2024-08-05 11:32:48 +08:00
qiang
270e1d01ba fix(components): SSR hydration error caused by disabled prop of teleport (#17551)
* fix(components): sSR hydration error caused by disabled prop of teleport

* fix(components): [teleport] type error

* chore: type error
2024-08-04 13:50:09 +08:00
Robert Zeng
968182a65e fix(components): [date-picker] clear button repeatedly triggers update:model-value (#17274)
* fix(components): [date-picker] fix #14752

* fix(components): [date-picker] optimize clear logic to fix #14752

---------

Co-authored-by: upthen <zyb.6616@icloud.com>
2024-08-04 11:41:22 +08:00
Lov`u`e
5d1ceaa856 fix(components): [slider] click on marks is inaccurately positioned (#15332)
* fix(components): [slider] click on marks is inaccurately positioned

closed #15330

* fix(components): [slider] inconsistent behavior in range mode

* refactor(components): [slider] simplify logic with setPosition method

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-04 10:46:48 +08:00
Masanori Doizaki
76b0ab0a5d fix(components): [date-picker] fix user input error in monthrange (#12943)
* fix(components): [date-picker] monthrange类型选择器在输入结束后报错

* fix: the format change

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-03 21:39:42 +08:00
zwgwf
94a24dcbc8 refactor(components): [image-viewer] optimise translate calc method (#13157)
* Use trigonometric functions to calculate translate, which can support any angle
2024-08-03 20:08:08 +08:00
wzc520pyfm
d94aa4cdb5 fix(components): [abort popper] fix effect type error (#17758)
closed #17751
2024-08-03 10:37:21 +08:00
Kaine
333e1f9c42 feat(components): [tree-v2] add scrollTo method (#14050)
* feat(components): [tree-v2] add scrollTo method

* docs(components): [tree-v2] scrollTo method

* refactor(components): [tree-v2] rename strollToNode

1. expose scrollTo from listRef

2. rename scrollTo to scrollToNode

3. add test

4. change docs

* docs(components): [tree-v2] add version tag
2024-08-02 20:16:32 +08:00
知晓同丶
aceefd7a24 fix(components): [image] cannot trigger event when image is loaded error (#17692)
* fix(components): [image] cannot trigger event when image is loaded error

closed #17540

* fix: use `excludeListeners` to exclude event listeners

* refactor: optimize code

* fix: replace exclude with pick

* refactor: pick container attrs

---------

Co-authored-by: zhixiaotong <947803089@qq.com>
2024-08-02 17:59:59 +08:00
kooriookami
0f8282520f chore(components): remove deprecated 2.8.0 (#17735)
* chore(components): remove deprecated 2.8.0

* chore(components): update
2024-08-02 11:08:24 +08:00
赵添
0456c790db feat: add mention component (#17586)
* feat: add mention component

* fix: build error

* fix: build error

* feat: delete as a whole

* fix: update docs

* fix: update global.d.ts

* fix: update

* fix: update code

* fix: update code

* fix: update code

* fix: rename

* fix: update code

* fix: upload code

* fix: update code

* fix: fixed cursor position abnormality

* fix: update code

* fix: docs add avatar

* fix: tooltip position is wrong when placing on top

* feat: add overview icon

* fix: overview icon color
2024-08-02 11:00:26 +08:00
tangyongjie
76ee10ab69 refactor(components): [slider]optimize ts types (#17292)
* refactor(components): [slider]Optimize ts types

* refactor(components): [slider]fix type check error

* refactor(components): [silder]optimize ts types
2024-08-01 18:59:58 +08:00
qiang
0670bba618 feat(components): [color-picker] alpha-slider a11y (#14245)
* feat(components): [color-picker] alpha-slider a11y

* feat(components): [color-picker] support for adjust step through shift

* feat(components): [color-picker] focus
2024-07-31 15:54:14 +08:00
dopamine
f12b020338 fix(components):[tabs] reactive objects may lose reactivity in label slot (#14135) 2024-07-30 20:11:43 +08:00
wzc520pyfm
a9b91d1f0f fix(components): [select-v2] corrent focus to input when select clicked (#17362)
* fix(components): [select-v2] fix remote init

remote-search scenarios shoule be not initialized

* Revert "fix(components): [select-v2] fix remote init"

This reverts commit d8326888e3df96dee482b9c8098738bc698215af.

* fix(components): [select-v2] no trigger init-states when filter/remote

* test(components): [select-v2] add test for no init when remote search

* fix(components): [select-v2] add back the necessary condition

* fix(components): [select-v2] correct input focus

input shoule be fouce when click el-select

* fix(components): [select-v2] focus first and then completed taggle-menu
2024-07-30 10:49:46 +08:00
dopamine
ae0439df9f fix(components): [tabs] optimize SSR (#15183) 2024-07-29 18:01:07 +08:00
betavs
a2323f0bb3 fix(components): [slider] data anomaly when the input value is undefined (#15402)
fix(components): [slider] data anomaly

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-07-29 15:20:04 +08:00
dopamine
c76cc8bc92 fix(components): [table] inaccurate type of toggleRowSelection (#17687) 2024-07-29 13:40:05 +08:00
qiang
506b5f84aa chore(components): [select] remove unused Input component (#17690)
* chore(components): [select] remove unused Input component

* chore: add nocheck
2024-07-29 08:23:46 +08:00
qiang
233d38b631 refactor(hooks): rewrite composition as a composable function (#14240)
* refactor(hooks): rewrite composition as a composable function

* fix(components): [select] avoid navigateOptions when composing Chinese

* fix: error

* chore: change afterComposition
2024-07-28 21:11:20 +08:00
dopamine
2fce7b469b fix(components): [scrollbar] restore scroll position in onActivated hook (#11363) 2024-07-27 22:21:35 +08:00
离谱
b692e37e57 fix(components): [table] fix sorting issue in table-column (#17608)
fix(components): fix sorting issue in table-column

fix(components): fix sorting issue in table-column

Revert "fix(components): [message-box] vue wraning when button state is loading (#17603)"

This reverts commit ab494bb48a.

fix(components): fix sorting issue in table-column

Revert "docs(docs): [skeleton] fix layout error in example (#17291)"

This reverts commit 0f8684310b.

fix(components): fix sorting issue in table-column

fix(components): fix sorting issue in table-column

fix(components): fix sorting issue in table-column
2024-07-27 18:08:40 +08:00
dopamine
87c5e45122 fix(components): [table] cover more edge cases for show-overflow-tooltip (#17629)
fix(components): [table] cover more edge cases for `show-overflow-tooltip`
2024-07-27 17:55:29 +08:00
Lov`u`e
cb8d869082 fix(components): [slider] set slider precision (#15328)
fix(components): add a attribute:precision,used to set slider precision

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-07-27 17:36:08 +08:00
btea
68fe36ba38 fix(components): [select] exceeding the limit will still trigger update (#17685)
* fix(components): [select] exceeding the limit will still trigger update

* fix: update
2024-07-27 15:51:59 +08:00
sea
606ff06322 improvement(components): @touchstart @touchmove @wheel add passive (#16741)
* perf(components): @touchstart @touchmove add passive

* perf(components): update passive

* perf(components): update passive

* perf(components): update passive

* perf(components): update passive

* perf(components): update passive

* style: fix lint

* perf(components): update passive

* perf(components): update passive

* perf:  delete useless code
2024-07-26 21:01:17 +08:00
ToyCat93
b0b98e5d11 fix(components): [segmented] modelValue boolean type validation warning (#17656)
* fix(components): [segmented] of boolean type, throw invalid event args

* docs(components): [segmented] add boolean type to the v-model
2024-07-26 13:48:41 +08:00
sea
0b2f6911a9 feat(components): [carousel] export activeIndex (#17650)
Co-authored-by: qiang <qw13131wang@gmail.com>
2024-07-26 10:20:25 +08:00
sea
a11a7d09dc feat(components): [carousel] add cardScale prop (#17621)
* feat: add params

* docs: add content

* perf: code

* ci: again test
2024-07-25 14:31:37 +08:00
chouchouji
2564007850 refactor(components): optimize component boolean type (#17622)
* refactor(components): optimize component boolean type

* style(components): [overlay] fromat code
2024-07-25 14:17:23 +08:00
Manshu Tusker
f974ea5d81 fix(components): [cascader] failed to retrieve value when value is 0 (#17651)
* fix(components): correct data display in Cascader

Resolved an issue where certain falsy values, such as 0, were incorrectly treated as undefined in
data processing and validation logic, ensuring accurate handling and display across all components.

closed #17647

* revert(other): do not submit pnpm-lock.yaml

do not submit pnpm-lock.yaml.
2024-07-25 14:10:39 +08:00
btea
c7dea71e81 feat(components): [table-column] add filter-icon slot (#17272)
* feat(components): [table] add `filter-icon` prop

* chore: remove

* chore: remove

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

* feat: filter-icon slot

* test: test case

* chore: update

* chore: update
2024-07-24 14:47:42 +08:00
chouchouji
bfbd4741a2 test(components): [tag] replace closeTransition with disableTransitions (#17611)
* test(components): [tag] replace closeTransition with disableTransitions

* test(components): [tag] complete type test
2024-07-24 13:45:32 +08:00
chouchouji
ff5ba6a764 test(components): [badge] complete test cases (#17628) 2024-07-24 05:39:19 +00:00
xiaofei
f0f090c61f feat(components): [time-select] export TimeSelectProps and Instance (#16511)
* feat(components): [time-select] export TimeSelectProps and Instance

* chore: [time-select] use withInstall

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-07-23 16:22:59 +08:00
wzc520pyfm
7db060b7fb docs(components): [menu] use new display tag (#15385)
* docs(components): [menu] use new display tag

* docs(components): [menu] delete deprecated attr of sub-menu
2024-07-23 11:04:23 +08:00
wzc520pyfm
5fc967c63e docs(components): [dropdown] use new display tag (#15378)
* docs(components): [dropdown] use new display tag

* docs(components): [dropdown] format doc

* docs(components): [dropdown] add delete tag for button type
2024-07-23 10:42:19 +08:00
wzc520pyfm
07a1ac7583 docs(components): [carousel] use new display tag (#14953) 2024-07-23 10:24:48 +08:00
wzc520pyfm
b7c9c1010b docs(components): [tabs] use new display tag (#15380) 2024-07-23 10:17:43 +08:00
久染 | JiuRan
122b2fda82 fix: popper content type check (#17040)
* fix: popper content type check

* fix: code lint

* fix: effect type

* fix: all popper effect type

* fix: replace all EffectType

---------

Co-authored-by: Tong Siyuan <jiuran@jiurandeMacBook-Pro.local>
2024-07-22 17:33:02 +08:00
Liao-js
92204e97f1 fix(components): [tabs] bar width is error when only one bar (#17016) 2024-07-22 17:02:28 +08:00
郭某人
1faeb5f314 fix(components): [tabs] add button misalignment in vertical layout (#16986)
* fix(components): [tabs] Layout issues

* fix(components): [tabs] Simplify code
2024-07-22 16:36:44 +08:00
wzc520pyfm
3ec8580bc0 docs(components): [popover] use new display tag (#15387) 2024-07-22 14:23:17 +08:00
知晓同丶
033867f919 feat(components): [loading] replenish loading attributes (#17174)
* docs: replenish loading attributes

* fix: format md with prettier

* docs: redo `element-loading-background`

* feat(components): [loading] replenish loading attributes

* docs: add version tag

* Update loading.md
2024-07-22 08:08:43 +08:00
chouchouji
9a9afd4734 refactor(components): [link & text] optimize boolean type (#17610) 2024-07-21 21:26:14 +08:00
chouchouji
c03c1dd2ce refactor(components): [button-group] optimize code (#17607) 2024-07-21 18:05:47 +08:00
sleepyShen1989
56d1afa283 fix(components): [input] add prop "row" explicit declare (#17085) 2024-07-21 13:23:04 +08:00