qiang
343cacf5cc
fix(components): numpadEnter does not work like the Enter ( #18855 )
2024-11-14 21:14:51 +08:00
jiaxiang
dab6b73040
refactor: replace type checking with built-in functions ( #18720 )
...
* refactor: replace typeof string with the built-in isString
* refactor: replace typeof boolean with the built-in isBoolean
* refactor: replace typeof undefined with the built-in isUndefined
* chore: style
* chore: style
2024-10-31 09:21:21 +08:00
jiaxiang
36bd70670e
refactor: replace typeof fn with the built-in isFunction ( #18705 )
2024-10-30 08:42:04 +08:00
jiaxiang
10fcc59ed4
refactor: replace Array.isArray with the built-in isArray ( #18671 )
...
chore(components): [descriptions] isArray replace Array.isArray
2024-10-28 15:36:44 +08:00
momei
dc7a7aa91b
fix(components): [tree] highlight the corresponding node after data reset ( #18578 )
...
* fix(components): [tree] keep it highlighted when the tree reset
* fix(components): [tree] add test case
2024-10-23 12:26:07 +08:00
xuan
27bdf1f076
fix(components): [el-tree-select] fix lazy and multiple select node ( #17903 )
...
* fix(components): [el-tree-select] fix lazy and multiple select node
1.Fix the issue where non-leaf nodes cannot be selected when using lazy and multiple together.
2. Since the original code did not handle the selection of non-leaf nodes before expanding
lazy-loaded child nodes, additional processing was added to link the selection of parent and child
nodes.
3. Because the time required for lazyLoad after nodeExpand cannot be predicted, the triggering time
of the node-expand event in the tree has been adjusted to occur within the callback of the expand
function. This change only affects the timing when using lazyLoad.
BREAKING CHANGE :
no
closed closed Fixes #17232
* fix: test typecheck
* fix: onNodeExpand event and update function name
2024-09-01 20:59:31 +08:00
dopamine
8618a6bcd0
refactor: import shared utilities from @element-plus/utils ( #18048 )
...
chore: import shared utilities from `@element-plus/utils`
2024-08-29 09:04:03 +08:00
Simon He
4984d1b014
fix(components): tree nodesMap leak ( #10195 )
...
Co-authored-by: qiang <qw13131wang@gmail.com >
2024-08-18 15:27:34 +08:00
sea
b93e59b065
fix(components): [tree] FireFox dargging dataTransfer judge ( #17849 )
...
* feat(components): [tree] FireFox dargging dataTransfer judge
* feat: add remark
2024-08-14 11:47:26 +08:00
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
btea
0484b80e78
fix(components): [tree]calling method to expand node accordion mode fail ( #17441 )
2024-07-19 15:20:47 +08:00
kaedeair
9e76e6fdb6
fix(components): [tree] add missing type reject for LoadFunction ( #16990 )
...
Co-authored-by: btea <2356281422@qq.com >
2024-06-26 18:01:46 +08:00
btea
67d9d7c09b
fix(components): [tree-select] empty slot display error ( #16943 )
...
* fix(components): [tree-select] empty slot display error
* fix: style
2024-05-25 12:29:43 +08:00
Alixhan
7f7dae2fa0
fix(components): [tree] dragging a node will deselect the node ( #14830 )
...
* fix(components): [tree] Dragging a node will deselect the node(#13912 )
* fix(components): [tree] Dragging a node will deselect the node (#13912 )
* fix(components): [tree] Dragging a node will deselect the node (#13912 )
The Node class adds a method to set the checked state, which only affects the parent node state.
* refactor: optimized code
* fix(components): [tree] Dragging a node will deselect the node (#13912 )
checkStrictly is true no need reInitCheckek
* fix(components): [tree] Dragging a node will deselect the node (#13912 )
2024-03-29 16:58:47 +08:00
btea
39a61350d3
feat(components): [tree] lazy load provide reject ( #16099 )
2024-03-23 10:55:23 +08:00
btea
fec8a5de05
fix(components): [tree] the value of append can be zero ( #16130 )
2024-03-18 07:34:27 +08:00
Sean
442a4627a1
fix(components): [tree] remove duplicate type declaration ( #16106 )
...
fix(components): [tree] remove duplicate type declaration
Co-authored-by: s554595966@qq.com <sujunyan5545@dingtalk.com >
2024-03-12 16:03:56 +08:00
btea
345a374362
fix(components): [tree] setCheckedNodes incorrectly checked node ( #15377 )
...
* fix(components): [tree] setCheckedNodes incorrectly checked node
* fix: update
* fix: update
2024-01-16 16:26:30 +08:00
btea
ef4fbe3be2
feat(components): [tree] export TreeInstance ( #15293 )
2023-12-28 19:07:00 +08:00
Zenyb
d408533ca8
fix(components): [tree] node drag error when using custom allowDrop method ( #15005 )
...
fix(components): [tree] fix issue #14704
- Reset dragState.value.dropNode to null when allowDrop is transfered from true to false.(For issue #14704 )
Co-authored-by: yongbo.zeng_U+ <yongbo.zeng@united-imaging.com >
2023-12-16 19:48:52 +08:00
btea
834fb38c51
fix(components): [tree] filter expand loaded node ( #15150 )
2023-12-16 12:39:11 +08:00
一只前端汪
23201e2f4d
fix(components): [tree] default slots not displayed ( #14939 )
...
* fix(components): [tree] default slots not displayed
* test: add customize some node contents
2023-11-27 16:33:35 +08:00
zepeng
b10eae152c
fix(components): [tree] the issue with retrieving childrenKey ( #13798 )
...
* fix(components): [tree] the issue with retrieving childrenKey
* Update tree-node.vue
* Update tree-node.vue
2023-08-07 21:31:43 +08:00
init-qy
d46b3f3b2c
fix(components): [tree] fix node can drop inner ( #9770 )
2023-06-27 22:26:11 +08:00
lyric-zemin
ea82d3f7c3
fix(components): [tree] Fix TreeOptionProps ( #12511 )
...
fix(components): fix TreeOptionProps
Co-authored-by: wu.zeMin <244@qq.com >
2023-05-13 13:12:25 +09:00
init-qy
9f693f01de
fix(components): [tree] fix always trigger drag ( #12612 )
2023-05-01 10:29:09 +08:00
Lov`u`e
5cd6d61400
feat(components): [tree] support customize content when data is empty ( #12459 )
2023-04-17 14:06:34 +08:00
Jeremy
11925c8231
refactor(tokens) - [form] ( #11743 )
...
* refactor(tokens): [form] - remove tokens/form
* Move content in tokens/form to components/form.
* Replace token imports in components/form.
* chore: remove form/tokens and replace imports
* refactor(components): [form/form-item]
* Move `useForm` related hooks to components/form
* Replace references to reduce circular dependencies.
2023-02-27 13:19:20 +08:00
热爱vue的小菜鸟
f19ae83e3c
fix(components): [tree] setCheckedKeys keys attribute add type ( #11390 )
...
* fix(components): [tree] setCheckedKeys keys attribute add type
* fix(components): [tree] setCheckedKeys keys attribute add type
2023-02-16 21:29:11 +08:00
btea
ce467449e6
fix(components): [tree] update refNode type ( #11421 )
2023-02-06 22:56:38 +08:00
Xc
fd711d5c0f
fix(components): [tree] revert inherits the label class ( #10812 )
...
* revert slot inherit style
* Adjust the size style attribute to tree
2022-11-29 11:54:42 +08:00
jarven
4726d44494
fix(components): [tree] tree node click parameter ( #9872 )
...
fix(components): [tree] tree node click parameter (#9869 )
2022-09-23 14:04:38 +08:00
zhiyuanzmj
daefb75224
fix(components): [tree] setCurrentKey() type error ( #9709 )
2022-09-08 16:47:57 +08:00
zz
390f5bd8ee
fix(components): [tree] repeat trigger change event on the same node ( #9645 )
2022-09-06 12:18:12 +08:00
Xc
adc468cb50
fix(components): [tree-node-content] slot inherit styles ( #9613 )
2022-09-03 22:56:55 +08:00
zhiyuanzmj
c063276da8
feat(components): el-tree.currentNodekey responsive. close #9576 ( #9577 )
2022-09-01 23:30:04 +08:00
jarven
8b96cb153a
fix(components): [tree] fix setCurrentKey setCurrentNode emit ( #8881 )
...
* fix(components): [tree] fix setCurrentKey setCurrentNode emit (#8855 )
* fix(components): [tree] fix setCurrentKey setCurrentNode emit
2022-09-01 10:22:18 +08:00
zz
1884b1d7c8
refactor(utils): refine iconPropType ( #9515 )
2022-08-29 03:23:35 +00:00
zz
3be8b536b8
fix(utils): fix iconPropType ( #9506 )
2022-08-28 19:13:58 +08:00
zz
f5fa7e741f
refactor(utils): refactor iconPropType ( #9502 )
2022-08-28 13:20:07 +08:00
LIUCHAO
6bd98685e6
fix(components): [tree] calc parentNode state after doCreateChildren ( #9362 )
...
closed #8410
2022-08-18 20:10:09 +08:00
Zhongxiang Wang
ea75ef2f81
feat(components): [tree-v2] expose several helpful methods ( #9156 )
...
* feat(components): [tree-v2] expose several helpful methods
* fix(components): [tree] use `isObject` helper
2022-08-02 15:14:44 +08:00
LIUCHAO
7bb6b6d99f
refactor(utils): drop off/on/once, use EventListener instead ( #8960 )
...
* refactor(utils): drop off/on/once, use EventListener instead
* refactor(utils): use useEventListener
* refactor(utils): use useEventListener
* style(components): [roving-focus-group] useEventListener pass ref
2022-07-26 23:01:07 +08:00
Xc
59154e639a
fix(components): [tree] allow and node drop-type ( #8681 )
2022-07-12 00:54:50 +08:00
三咲智子
7097940f4a
refactor: add ts-nocheck and check all files ( #8401 )
2022-06-22 08:04:42 +08:00
opengraphica
652333e395
fix(components): [tree] remove form item context ( #7956 )
2022-05-30 09:15:45 +08:00
三咲智子
184facdb4c
chore: add eslint rule sort imports ( #6823 )
2022-03-25 15:35:56 +08:00
三咲智子
5d85fba20c
chore: self closing vue tag ( #6603 )
2022-03-13 16:16:11 -04:00
三咲智子
b8c38a9fe5
chore: enhance eslint rules ( #6476 )
...
* chore: enhance eslint rules
* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00
啝裳
857a94afa8
fix: el-tree isLeaf type is string ( #5954 )
...
* fix: el-tree isLeaf type is string
* fix: update
2022-02-11 18:18:24 +08:00