build/vue-docs.js
function tableFromSlots(slotsObj) {
  const headers = ["Slot", "Description"]
  let rows = []

  for(const slot in slotsObj) {
    let cols = []
    cols.push(`${slot}`) // name of the slot
    cols.push(`${slotsObj[slot]["description"] || ''}`) // description of the slot

    rows.push(cols)
  }

  return rows.length > 0 ? {table: {headers, rows}} : null
}
function tableFromSlots(slotsObj) {
  const headers = ["Slot", "Description"]
  let rows = []

  for(const slot in slotsObj) {
    let cols = []
    cols.push(`${slot}`) // name of the slot
    cols.push(`${slotsObj[slot]["description"] || ''}`) // description of the slot

    rows.push(cols)
  }

  return rows.length > 0 ? {table: {headers, rows}} : null
}
function tableFromSlots ( slotsObj ) { const headers = [ "Slot" , "Description" ] let rows = [ ] for ( const slot in slotsObj ) { let cols = [ ] cols . push ( ` ${ slot } ` ) // name of the slot cols . push ( ` ${ slotsObj [ slot ] [ "description" ] || '' } ` ) // description of the slot rows . push ( cols ) } return rows . length > 0 ? { table : { headers , rows } } : null }
auxilary function to create table from `slots` property of json2md object
auxilary function to create table from slots property of json2md object