Graphql: highlight fields on search

This commit is contained in:
leoGeorges
2020-10-04 11:46:16 +02:00
parent 12941a107d
commit 76eba3d638
3 changed files with 59 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="p-2 m-2 border-b border-dashed border-brdColor">
<div class="field-title">
<div class="field-title" :class="{ 'field-highlighted': isHighlighted }">
{{ fieldName }}
<span v-if="fieldArgs.length > 0">
(
@@ -25,11 +25,18 @@
</div>
</template>
<style scoped lang="scss">
.field-highlighted {
color: #ffff00;
}
</style>
<script>
export default {
props: {
gqlField: Object,
jumpTypeCallback: Function,
isHighlighted: { type: Boolean, default: false },
},
computed: {