From 9d45923568298ec2cdebcb632a771063ed3da463 Mon Sep 17 00:00:00 2001 From: hywax Date: Thu, 9 Oct 2025 18:38:33 +0500 Subject: [PATCH 01/13] feat(Tree): add checkbox items example and enhance event handling --- .../tree/TreeCheckboxItemsExample.vue | 63 +++++++++++++++++++ docs/content/docs/2.components/tree.md | 11 ++++ src/runtime/components/Tree.vue | 25 ++++++-- 3 files changed, 93 insertions(+), 6 deletions(-) create mode 100644 docs/app/components/content/examples/tree/TreeCheckboxItemsExample.vue diff --git a/docs/app/components/content/examples/tree/TreeCheckboxItemsExample.vue b/docs/app/components/content/examples/tree/TreeCheckboxItemsExample.vue new file mode 100644 index 0000000000..803b884204 --- /dev/null +++ b/docs/app/components/content/examples/tree/TreeCheckboxItemsExample.vue @@ -0,0 +1,63 @@ + + + diff --git a/docs/content/docs/2.components/tree.md b/docs/content/docs/2.components/tree.md index 11e456a990..f50460aaf3 100644 --- a/docs/content/docs/2.components/tree.md +++ b/docs/content/docs/2.components/tree.md @@ -539,6 +539,17 @@ props: --- :: +### With checkbox items + +::component-example +--- +name: 'tree-checkbox-items-example' +collapse: true +props: + class: 'w-60' +--- +:: + ## API ### Props diff --git a/src/runtime/components/Tree.vue b/src/runtime/components/Tree.vue index 96b037aa61..eb35a0bc88 100644 --- a/src/runtime/components/Tree.vue +++ b/src/runtime/components/Tree.vue @@ -1,6 +1,6 @@