15 Commits

Author SHA1 Message Date
5447972845 feat(components): [tree-v2] add scrollbar-always-on attribute (#21293) 2025-07-11 17:48:45 +08:00
f9fa5d3329 fix(components): [tree-v2] props defaultExpandedKeys not reactive (#21173) 2025-06-27 22:51:04 +08:00
2f17df1209 style(eslint-config): newline before import type (#21036)
* perf: change to import-x

* feat: add rules

* chore: fix rule

* chore: fix

* chore: fix

* chore: fix

* style: `pnpm lint:fix`

* Revert "style: `pnpm lint:fix`"

This reverts commit db0116a288299c507e3cfc4d7a22e2207265d920.

* Revert "chore: fix"

This reverts commit 69c82a90c01525e38180be4c21e8ef5602512318.

* chore: fix

* style: `pnpm lint:fix`

* fix: lint

* chore: `pnpm format`
2025-06-16 15:37:12 +08:00
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
9bf729fbeb feat(components): [tree-v2] add slot empty (#18980)
* feat(components): [tree-v2] add slot `empty`

* prettier format

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

* fix: prettier format

* test: add test case

---------

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
2024-11-21 20:49:50 +08:00
e0777ef567 feat(components): [tree-v2] add props.class prop (#18911)
* feat(components): [tree-v2] allow tree node to have customizable class

* docs: update docs

* docs: add demo

* docs: update

* fix: update
2024-11-16 23:44:06 +08:00
b2a17f0689 feat(components): [tree-v2] support node-drop event (#16935)
* Update tree.vue

* Update tree-node.vue

* Update tree.vue

* Update virtual-tree.ts

* Update useTree.ts

* Update virtual-tree.ts

* Update tree.test.ts

* Update useTree.ts

* Update tree-node.vue

* Update tree.vue

* Update virtual-tree.ts

* Update tree-v2.md

* Update tree-v2.md

* Update virtual-tree.ts

* Update tree-node.vue

* Update useTree.ts

* Update tree.vue

* Update virtual-tree.ts

* Update tree.test.ts

* 修改错误的提交 tree-v2.md

* Update useTree wrong.ts

* Update tree-node.vue

拖拽事件更新

* Update tree-v2.md, add version info

* Update tree-v2.md format

* Update tree-v2.md, version change to 2.8.3
2024-09-11 15:33:26 +08:00
fcf2249cc9 fix(components): [tree-v2] expand all ancestor nodes of the specified node (#18077)
* fix(components): [tree-v2] Allow only all nodes to be expandable

closed #18073

* fix(components): [tree-v2] Allow all nodes to be expandable

closed #18073

* fix(components): [tree-v2] Allow all nodes to be expandable

closed #18073

* fix(components): [tree-v2] Allow all nodes to be expandable

closed #18073

* fix(components): [tree-v2] Allow all nodes to be expandable

closed #18073

---------

Co-authored-by: Tusker Manshu <dadaguai-git>
2024-09-03 07:16:27 +08:00
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
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
665cc59b19 fix(components): [tree-v2] modify the condition for when the value of currentKey is 0 (#13935)
* modify the condition for when the value of currentKey is 0

* add a test case

* add a test case

* add a test case

* Update packages/components/tree-v2/__tests__/tree.test.ts

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

* Update packages/components/tree-v2/__tests__/tree.test.ts

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

* Update packages/components/tree-v2/__tests__/tree.test.ts

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

---------

Co-authored-by: btea <2356281422@qq.com>
2023-08-14 12:49:36 +08:00
7914f10af7 feat(components): [tree-v2] add item-size attribute (#11522)
* feat(components): [tree-v2] add item-size attribute

* fix: modify internal variable name

* fix: extract itemSize prop

* test: add test case

* test: update test
2023-02-19 21:55:02 +08:00
d8ee83dd4a fix(components): [tree-v2] default icon render test (#10342)
Co-authored-by: zz <2418184580@qq.com>
Co-authored-by: init-qy <953218204@qq.com>
2022-11-01 12:03:19 +08:00
7097940f4a refactor: add ts-nocheck and check all files (#8401) 2022-06-22 08:04:42 +08:00
1d13ebb05d feat: drop jest (#7248)
* feat: drop jest

* test: remove ssr

* test: rename

* chore: update tsconfig
2022-04-19 16:51:44 +08:00