This commit is contained in:
2020-12-04 02:00:23 +01:00
parent ff1ed77907
commit 6ea50532cc
5 changed files with 102 additions and 65 deletions

View File

@@ -2,14 +2,16 @@
<g @mouseover="handleMouseOver"
@mouseleave="handleMouseLeave">
<path :d="dAttr" :style="pathStyle"></path>
<a v-if="show.delete" @click="deleteLink">
<a v-if="show.delete" @click="deleteLink" class="link-delete">
<text
text-anchor="middle"
text-anchor="middle"
alignment-baseline="middle"
:transform="arrowTransform"
font-size="22">&times;</text>
>&times;</text>
</a>
<path v-else d="M -1 -1 L 0 1 L 1 -1 z"
:style="arrowStyle"
:transform="arrowTransform"></path>
</g>
</template>
@@ -99,4 +101,14 @@ export default {
g {
cursor: pointer;
}
.link-delete {
font-size: 3em;
text-decoration: none;
text-align: center;
&:hover {
text-decoration: none;
}
}
</style>