Commit Graph

15 Commits

Author SHA1 Message Date
知晓同丶
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
jiaxiang
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
MoConWu
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
Manshu Tusker
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
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
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
zepeng
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
btea
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
init-qy
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
Delyan Haralanov
de0ee53cf0 test(components): switch all components to vitest (#7205)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-04-19 12:46:57 +08:00
三咲智子
184facdb4c chore: add eslint rule sort imports (#6823) 2022-03-25 15:35:56 +08:00
三咲智子
b8c38a9fe5 chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00
msidolphin
2d2878eb53 feat(components): add virtual tree (#3398)
* feat(components): add virtual tree

* perf: optimize compute performance

* perf: optimize update checked states performance

* feat(components): [tree-v2] supports filter method

* feat(components): [el-tree-v2] exposes check api

* feat(components): [el-tree-v2] exposes current api

* feat(components): [el-tree-v2] support contextmenu event

* style(components): [el-tree-v2] optimized code style

* refactor(components): [el-tree-v2] using svg icon

* refactor(components): [el-tree-v2] replace all PropType with buildProp

replace all PropType with buildProp, support perfMode, expose setData

* refactor: improve prop

* docs: [el-tree-v2] improve documention

* refactor(components): [el-tree-v2] optimized code

Co-authored-by: Kevin <sxzz@sxzz.moe>
2021-09-27 11:12:50 +08:00