-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: hover to display node properties
- Loading branch information
ludanxer
committed
Feb 22, 2020
1 parent
cff0e7e
commit 347a94e
Showing
4 changed files
with
92 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template> | ||
<div class="property-tag"> | ||
<b>{{ tagKey }}</b>: {{ tagValue }} | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'property-tag', | ||
props: { | ||
tagKey: [String, Number], | ||
tagValue: [String, Number] | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.property-tag { | ||
font-size: 0.9rem; | ||
border: 1px solid rgb(100, 100, 100); | ||
background-color: var(--property-tag-color); | ||
width: fit-content; | ||
padding: 5px 10px; | ||
display: inline-block; | ||
margin-right: 5px; | ||
margin-top: 5px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import CatalogGraph from './CatalogGraph.vue' | ||
import CatalogGraph from './components/CatalogGraph.vue' | ||
import PropertyTag from './components/PropertyTag.vue' | ||
|
||
export default ({ Vue }) => { | ||
Vue.component('CatalogGraph', CatalogGraph); | ||
Vue.component('PropertyTag', PropertyTag); | ||
} |