api-client/components/graphql/type.vue

24 lines
577 B
Vue
Raw Normal View History

2019-11-18 20:17:07 +00:00
<template>
2020-09-22 17:06:37 +00:00
<div class="p-2 m-2">
<div class="font-bold type-title">{{ gqlType.name }}</div>
<div class="mt-2 text-fgLightColor type-desc" v-if="gqlType.description">
{{ gqlType.description }}
2019-11-18 20:17:07 +00:00
</div>
<div v-if="gqlType.getFields">
<h5>{{ $t("fields") }}</h5>
2019-11-18 20:17:07 +00:00
<div v-for="field in gqlType.getFields()" :key="field.name">
2020-08-17 12:59:14 +00:00
<field :gqlField="field" :jumpTypeCallback="jumpTypeCallback" />
2019-11-18 20:17:07 +00:00
</div>
</div>
</div>
</template>
<script>
export default {
props: {
gqlType: {},
2020-02-24 18:44:50 +00:00
jumpTypeCallback: Function,
},
}
2019-11-18 20:17:07 +00:00
</script>