File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,11 @@ const toggleSelect = () => {
150
150
151
151
if (! isSelected .value ) {
152
152
newPaths .push (props .path )
153
+
154
+ // If this is an object/array, add all child paths
155
+ if (isObject .value ) {
156
+ newPaths .push (... getAllChildPaths (props .value , props .path ))
157
+ }
153
158
}
154
159
155
160
emit (' select' , newPaths)
@@ -214,6 +219,23 @@ defineExpose({
214
219
> .node-content {
215
220
background-color : rgba (#70a1ff , 0.2 );
216
221
}
222
+
223
+ > .children {
224
+ background-color : rgba (#70a1ff , 0.1 );
225
+ border-radius : 4px ;
226
+ margin : 2px 0 ;
227
+ padding : 2px 0 ;
228
+
229
+ .json-node {
230
+ .node-content {
231
+ background-color : transparent ;
232
+
233
+ & :hover {
234
+ background-color : rgba (#70a1ff , 0.15 );
235
+ }
236
+ }
237
+ }
238
+ }
217
239
}
218
240
}
219
241
You can’t perform that action at this time.
0 commit comments