api-client/components/graphql/argument.vue

39 lines
546 B
Vue
Raw Normal View History

<template>
<span>
<span class="argumentName">
{{ argName }}
</span>
:
2020-01-10 00:00:38 +00:00
<typelink :type="argType" :jumpTypeCallback="jumpCallback" />
</span>
</template>
<style scoped lang="scss"></style>
<script>
2020-02-24 18:44:50 +00:00
import typelink from './typelink'
export default {
components: {
2020-02-24 18:44:50 +00:00
typelink: typelink,
},
props: {
2020-02-24 18:44:50 +00:00
gqlArg: Object,
},
computed: {
argName() {
2020-02-24 18:44:50 +00:00
return this.gqlArg.name
},
argType() {
2020-02-24 18:44:50 +00:00
return this.gqlArg.type
},
},
methods: {
2020-02-24 18:44:50 +00:00
jumpCallback(typeName) {},
},
}
</script>