You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
436 B
Vue
32 lines
436 B
Vue
<template>
|
|
<div class="parameters">
|
|
<h2>{{ title }}</h2>
|
|
<ul>
|
|
<li v-for="param in params" :key="param.id">
|
|
<code> {{ param.name }}</code> ({{ param.type.name }})
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
title: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
params: {
|
|
type: Array,
|
|
default: () => [],
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.parameters ul {
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
</style> |