@@ -183,14 +183,14 @@ export default class SchemaTable extends LitElement {
183
183
if ( dataType === 'array' ) {
184
184
detailObjType = 'array of object' ; // Array of Object
185
185
} else {
186
- detailObjType = 'object' ;
186
+ detailObjType = data [ '::dataTypeLabel' ] || data [ '::type' ] ;
187
187
}
188
188
} else if ( data [ '::type' ] === 'array' ) {
189
189
if ( dataType === 'array' ) {
190
190
// detailObjType = 'array of array'; // Array of array
191
191
detailObjType = `array of array ${ arrayType !== 'object' ? `of ${ arrayType } ` : '' } ` ; // Array of array
192
192
} else {
193
- detailObjType = 'array' ;
193
+ detailObjType = data [ '::dataTypeLabel' ] || data [ '::type' ] ;
194
194
}
195
195
}
196
196
@@ -244,7 +244,7 @@ export default class SchemaTable extends LitElement {
244
244
? html `${ this . generateTree ( data [ 0 ] , 'xxx-of-option' , '' , '::ARRAY~OF' , '' , newSchemaLevel , newIndentLevel , '' ) } `
245
245
: html `
246
246
${ Object . keys ( data ) . map ( ( dataKey ) => html `
247
- ${ [ '::title' , '::description' , '::type' , '::props' , '::deprecated' , '::array-type' , '::readwrite' ] . includes ( dataKey )
247
+ ${ [ '::title' , '::description' , '::type' , '::props' , '::deprecated' , '::array-type' , '::readwrite' , '::dataTypeLabel' ] . includes ( dataKey )
248
248
? data [ dataKey ] [ '::type' ] === 'array' || data [ dataKey ] [ '::type' ] === 'object'
249
249
? html `${ this . generateTree (
250
250
data [ dataKey ] [ '::type' ] === 'array' ? data [ dataKey ] [ '::props' ] : data [ dataKey ] ,
0 commit comments