11<template >
2-   <section 
3-     v-if =" component" 
4-     class =" bd-content" 
5-   >
2+   <section  v-if =" component" class =" bd-content" 
63    <b-row  tag =" header" align-v =" center" 
74      <b-col  sm =" 9" 
85        <anchored-heading  :id =" `comp-ref-${componentName}`" level =" 2" 
4441          <b-badge  variant =" warning" 
4542            {{ typeof item.deprecated === 'string' ? 'deprecation' : 'deprecated' }}
4643          </b-badge >
47-           <!--  if  deprecated is a string, show the string value --> 
44+           <!--  If  deprecated is a string, show the string value --> 
4845          <small  v-if =" typeof item.deprecated === 'string'" small >
4946        </template >
5047        <template  slot="defaultValue" slot-scope="{ value }">
8380        small 
8481        head-variant =" default" 
8582        striped 
86-       / >
83+       ></ b-table >
8784    </article >
8885
8986    <article  v-if =" events && events.length > 0" 
113110      <anchored-heading  :id =" `comp-ref-${componentName}-rootEventListeners`" level =" 4" 
114111        $root Event Listeners
115112      </anchored-heading >
116-       <p >You can control <code >{{ tag }}</code > by emitting the following events on <samp >$root</samp >:</p >
113+       <p >
114+         You can control <code >{{ tag }}</code > by emitting the following events on
115+         <samp >$root</samp >:
116+       </p >
117117      <b-table 
118118        :items =" rootEventListeners" 
119119        :fields =" rootEventListenersFields" 
@@ -151,9 +151,7 @@ import kebabCase from 'lodash/kebabCase'
151151import  AnchoredHeading  from  ' ./anchored-heading' 
152152
153153export  default  {
154-   components:  { 
155-     AnchoredHeading 
156-   }, 
154+   components:  { AnchoredHeading }, 
157155  props:  { 
158156    component:  {}, 
159157    slots:  { 
@@ -206,7 +204,6 @@ export default {
206204    }, 
207205    propsFields () { 
208206      const  props  =  this .componentProps  
209- 
210207      const  hasRequired  =  Object .keys (props).some (p  =>  props[p].required ) 
211208
212209      const  fields  =  [ 
@@ -259,19 +256,15 @@ export default {
259256
260257        //  Describe value 
261258        let  defaultVal =  p .default  
262- 
263259        if  (defaultVal instanceof  Function  &&  ! Array .isArray (defaultVal)) { 
264260          defaultVal =  defaultVal () 
265261        } 
266- 
267262        if  (typeof  defaultVal !==  ' string'  
268263          defaultVal =  JSON .stringify (defaultVal) 
269264        } 
270- 
271265        if  (defaultVal ===  ' ' ||  defaultVal ===  null  ||  defaultVal ===  ' null'  
272266          defaultVal =  ' '  
273267        } 
274- 
275268        defaultVal =  (defaultVal ||  ' ' replace (/ "/ g" '"  
276269
277270        //  Requied prop? 
@@ -294,7 +287,7 @@ export default {
294287      return  kebabCase (this .component ) 
295288    }, 
296289    tag () { 
297-       return  ' < '   +   this .componentName   +   ' > '  
290+       return  ` < ${ this .componentName } > `  
298291    }, 
299292    githubURL () { 
300293      const  base  =  ' https://github.com/bootstrap-vue/bootstrap-vue/tree/dev/src/components'  
0 commit comments