File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 31
31
head-variant =" default"
32
32
striped
33
33
>
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 >
34
41
<template slot="prop" slot-scope="{ value, item }">
35
42
<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 >
44
43
</template >
45
44
<template slot="default" slot-scope="{ value }">
46
45
<code v-if =" value" >{{ value }}</code >
@@ -239,7 +238,8 @@ export default {
239
238
required,
240
239
typeClass,
241
240
default: defaultVal,
242
- deprecated
241
+ deprecated,
242
+ _showDetails: !! deprecated
243
243
}
244
244
})
245
245
},
You can’t perform that action at this time.
0 commit comments