@@ -220,8 +220,7 @@ export default {
220220 : child
221221 } ,
222222
223- props ( h ) {
224- const props = this . api . props
223+ props ( h , props ) {
225224 const child = [ ]
226225
227226 for ( let propName in props ) {
@@ -233,8 +232,7 @@ export default {
233232 return child
234233 } ,
235234
236- slots ( h ) {
237- const slots = this . api . slots
235+ slots ( h , slots ) {
238236 const child = [ ]
239237
240238 for ( let slot in slots ) {
@@ -249,8 +247,7 @@ export default {
249247 return child
250248 } ,
251249
252- scopedSlots ( h ) {
253- const scopedSlots = this . api . scopedSlots
250+ scopedSlots ( h , scopedSlots ) {
254251 const child = [ ]
255252
256253 for ( let slot in scopedSlots ) {
@@ -262,8 +259,7 @@ export default {
262259 return child
263260 } ,
264261
265- events ( h ) {
266- const events = this . api . events
262+ events ( h , events ) {
267263 const child = [ ]
268264
269265 for ( let eventName in events ) {
@@ -303,15 +299,14 @@ export default {
303299 return child
304300 } ,
305301
306- methods ( h ) {
307- const methods = this . api . methods
302+ methods ( h , methods ) {
308303 const child = [ ]
309304
310305 for ( let methodName in methods ) {
311306 const method = methods [ methodName ]
312307
313308 const nodes = [
314- this . getDiv ( h , 12 , 'Name' , `@ ${ methodName } ${ getMethodParams ( method ) } ${ getMethodReturnValue ( method ) } ` ) ,
309+ this . getDiv ( h , 12 , 'Name' , `${ methodName } ${ getMethodParams ( method ) } ${ getMethodReturnValue ( method ) } ` ) ,
315310 this . getDiv ( h , 12 , 'Description' , method . desc )
316311 ]
317312
@@ -356,24 +351,23 @@ export default {
356351 return child
357352 } ,
358353
359- value ( h ) {
354+ value ( h , value ) {
360355 return [
361356 h ( 'div' , { staticClass : 'api-row row' } , [
362- this . getDiv ( h , 12 , 'Type' , getStringType ( this . api . value . type ) )
363- ] . concat ( this . getProp ( h , this . api . value , void 0 , true ) ) )
357+ this . getDiv ( h , 12 , 'Type' , getStringType ( value . type ) )
358+ ] . concat ( this . getProp ( h , value , void 0 , true ) ) )
364359 ]
365360 } ,
366361
367- arg ( h ) {
362+ arg ( h , arg ) {
368363 return [
369364 h ( 'div' , { staticClass : 'api-row row' } , [
370- this . getDiv ( h , 12 , 'Type' , getStringType ( this . api . arg . type ) )
371- ] . concat ( this . getProp ( h , this . api . arg , void 0 , true ) ) )
365+ this . getDiv ( h , 12 , 'Type' , getStringType ( arg . type ) )
366+ ] . concat ( this . getProp ( h , arg , void 0 , true ) ) )
372367 ]
373368 } ,
374369
375- modifiers ( h ) {
376- const modifiers = this . api . modifiers
370+ modifiers ( h , modifiers ) {
377371 const child = [ ]
378372
379373 for ( let modifierName in modifiers ) {
@@ -393,16 +387,15 @@ export default {
393387 return child
394388 } ,
395389
396- injection ( h ) {
390+ injection ( h , injection ) {
397391 return [
398392 h ( 'div' , { staticClass : 'api-row row' } , [
399- this . getDiv ( h , 12 , 'Name' , this . api . injection )
393+ this . getDiv ( h , 12 , 'Name' , injection )
400394 ] )
401395 ]
402396 } ,
403397
404- quasarConfOptions ( h ) {
405- const conf = this . api . quasarConfOptions
398+ quasarConfOptions ( h , conf ) {
406399 const child = [ ]
407400
408401 for ( let def in conf . definition ) {
@@ -429,6 +422,16 @@ export default {
429422 } ,
430423
431424 render ( h ) {
432- return h ( 'div' , { staticClass : 'api-rows' } , this [ this . which ] ( h ) )
425+ const api = this . api [ this . which ]
426+
427+ const content = Object . keys ( api ) . length !== 0
428+ ? this [ this . which ] ( h , api )
429+ : [
430+ h ( 'div' , { staticClass : 'q-pa-md text-grey-7' } , [
431+ 'No matching entries found. Please refine the filter.'
432+ ] )
433+ ]
434+
435+ return h ( 'div' , { staticClass : 'api-rows' } , content )
433436 }
434437}
0 commit comments