Skip to content

Commit

Permalink
feat(applet): expand component tree item by double click (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzuodong authored Jun 3, 2024
1 parent b5e9587 commit a852c2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/applet/src/components/tree/TreeViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function select(id: string) {
:style=" { paddingLeft: `${15 * depth + 4}px` }"
:class="{ 'bg-primary-600! active': selectedNodeId === item.id }"
@click="select(item.id)"
@dblclick="toggleExpanded(item.id)"
>
<ToggleExpanded
v-if="item?.children?.length"
Expand Down

0 comments on commit a852c2e

Please sign in to comment.