File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -377,7 +377,6 @@ export function getCustomInstanceDetails (instance) {
377
377
type : 'component' ,
378
378
id : instance . __VUE_DEVTOOLS_UID__ ,
379
379
display : getInstanceName ( instance ) ,
380
- expandable : true ,
381
380
value : reduceStateList ( state ) ,
382
381
fields : {
383
382
abstract : true
Original file line number Diff line number Diff line change @@ -265,12 +265,20 @@ export default {
265
265
return typeof this .field .value
266
266
},
267
267
isExpandableType () {
268
- const value = this .field .value
269
- return (typeof this .fieldOptions .expandable === ' undefined' || this .fieldOptions .expandable ) &&
268
+ let value = this .field .value
269
+ if (this .valueType === ' custom' ) {
270
+ value = value ._custom .value
271
+ }
272
+ const closed = this .fieldOptions .closed
273
+ const closedDefined = typeof closed !== ' undefined'
274
+ return (! closedDefined &&
270
275
(
271
276
Array .isArray (value) ||
272
- (this .valueType === ' custom' && value ._custom .expandable ) ||
273
- (this .valueType !== ' custom' && isPlainObject (value))
277
+ isPlainObject (value)
278
+ )) ||
279
+ (
280
+ closedDefined &&
281
+ ! closed
274
282
)
275
283
},
276
284
isEditable () {
You can’t perform that action at this time.
0 commit comments