File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -377,7 +377,8 @@ export function getCustomInstanceDetails (instance) {
377
377
type : 'component' ,
378
378
id : instance . __VUE_DEVTOOLS_UID__ ,
379
379
display : getInstanceName ( instance ) ,
380
- state : reduceStateList ( state )
380
+ state : reduceStateList ( state ) ,
381
+ abstract : true
381
382
}
382
383
}
383
384
}
Original file line number Diff line number Diff line change 27
27
@keyup.enter =" submitEdit()"
28
28
>
29
29
</span >
30
- <span v-else class =" key" :class =" { special : field.noDisplay }" >{{ field.key }}</span ><span class =" colon" v-if =" !field.noDisplay " >:</span >
30
+ <span v-else class =" key" :class =" { abstract : field.abstractField }" >{{ field.key }}</span ><span class =" colon" v-if =" !field.abstractField " >:</span >
31
31
32
32
<span
33
33
v-if =" editing"
@@ -272,7 +272,7 @@ export default {
272
272
},
273
273
isEditable () {
274
274
return this .editable &&
275
- ! this .field .noDisplay &&
275
+ ! this .field .abstractField &&
276
276
(
277
277
typeof this .field .key !== ' string' ||
278
278
this .field .key .charAt (0 ) !== ' $'
@@ -294,7 +294,7 @@ export default {
294
294
},
295
295
formattedValue () {
296
296
const value = this .field .value
297
- if (this .field .noDisplay ) {
297
+ if (this .field .abstractField ) {
298
298
return ' '
299
299
} else if (value === null ) {
300
300
return ' null'
@@ -334,13 +334,15 @@ export default {
334
334
}))
335
335
} else if (typeof value === ' object' ) {
336
336
const isCustom = this .valueType === ' custom'
337
+ let abstractField = false
337
338
if (isCustom) {
339
+ abstractField = !! value ._custom .abstract
338
340
value = value ._custom .state
339
341
}
340
342
value = sortByKey (Object .keys (value).map (key => ({
341
343
key,
342
344
value: value[key],
343
- noDisplay : isCustom
345
+ abstractField
344
346
})))
345
347
}
346
348
return value
@@ -588,7 +590,7 @@ export default {
588
590
color #88 13 91
589
591
.dark &
590
592
color : #e3 6e ec
591
- & .special
593
+ & .abstract
592
594
color $blueishGrey
593
595
.value
594
596
display inline-block
You can’t perform that action at this time.
0 commit comments