Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

Commit 562d51f

Browse files
author
Ernest
committed
feat: support click block to expand/collapse
1 parent 7e23f85 commit 562d51f

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Diff for: lib/components/ArrayWrapper.vue

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
:aria-expanded="isExpanding"
66
:aria-level="ariaLevel"
77
:id="id"
8+
@click.self="handleClick"
89
>
910
<span class="indicator" @click="handleClick">{{
1011
isExpanding ? '\u25BC' : '\u25B6'

Diff for: lib/components/ObjectWrapper.vue

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
:aria-expanded="isExpanding"
66
:aria-level="ariaLevel"
77
:id="id"
8+
@click.self="handleClick"
89
>
910
<span class="indicator" @click="handleClick">{{
1011
isExpanding ? '\u25BC' : '\u25B6'

Diff for: lib/index.css

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
overflow: auto;
1010
}
1111

12+
.object-visualizer > * {
13+
width: 100%;
14+
display: inline-block;
15+
}
16+
1217
.object-visualizer .value {
1318
white-space: nowrap;
1419
}

0 commit comments

Comments
 (0)