blob: fbc28635f20088ae718b029c490fd0b802fcac9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
<script setup lang="ts">
import type { MethodParameter } from './method';
const props = defineProps<{ parameters: MethodParameter[] }>();
</script>
<template>
<div>
<h3>Parameters</h3>
<table>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr v-for="parameter of props.parameters" :key="parameter.name">
<td
:class="{
deprecated: parameter.description.includes('DEPRECATED'),
}"
>
{{ parameter.name }}
</td>
<td>{{ parameter.type }}</td>
<td>
<code v-if="parameter.default">{{ parameter.default }}</code>
</td>
<td v-html="parameter.description"></td>
</tr>
</tbody>
</table>
</div>
</template>
<style scoped>
td.deprecated {
text-decoration: line-through;
}
</style>
|