Skip to content

Commit 81f5c15

Browse files
authored
Update componentdoc.vue
1 parent ee181e1 commit 81f5c15

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/components/componentdoc.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,15 @@
3131
head-variant="default"
3232
striped
3333
>
34+
<template slot="row-details" slot-scope="{ item }>
35+
<b-badge variant="warning">
36+
{{ typeof item.deprecated === 'string' ? 'deprecation' : 'deprecated' }}
37+
</b-badge>
38+
<!-- if deprecated is a string, show the string value -->
39+
<small v-if="typeof item.deprecated === 'string'">{{ item.deprecated }}</small>
40+
</template>
3441
<template slot="prop" slot-scope="{ value, item }">
3542
<code>{{ value }}</code>
36-
<template v-if="item.deprecated">
37-
<br>
38-
<b-badge variant="warning">
39-
{{ typeof item.deprecated === 'string' ? 'deprecation' : 'deprecated' }}
40-
</b-badge>
41-
<!-- if deprecated is a string, show the string value -->
42-
<small v-if="typeof item.deprecated === 'string'"> {{ item.deprecated }}</small>
43-
</template>
4443
</template>
4544
<template slot="default" slot-scope="{ value }">
4645
<code v-if="value">{{ value }}</code>
@@ -239,7 +238,8 @@ export default {
239238
required,
240239
typeClass,
241240
default: defaultVal,
242-
deprecated
241+
deprecated,
242+
_showDetails: !!deprecated
243243
}
244244
})
245245
},

0 commit comments

Comments
 (0)