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">
|
2019-11-19 03:25:57 +00:00
|
|
|
{{ gqlType.description }}
|
2019-11-18 20:17:07 +00:00
|
|
|
</div>
|
|
|
|
|
<div v-if="gqlType.getFields">
|
2020-02-25 02:06:23 +00:00
|
|
|
<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: {
|
2020-01-09 18:32:38 +00:00
|
|
|
gqlType: {},
|
2020-02-24 18:44:50 +00:00
|
|
|
jumpTypeCallback: Function,
|
|
|
|
|
},
|
|
|
|
|
}
|
2019-11-18 20:17:07 +00:00
|
|
|
</script>
|