refactor:文本超链接hover增加提示

This commit is contained in:
wangjiahao 2021-10-14 18:52:53 +08:00
parent 72b9c62008
commit 94209dd32f

View File

@ -58,7 +58,7 @@ export default {
computed: { computed: {
textInfo() { textInfo() {
if (this.element && this.element.hyperlinks && this.element.hyperlinks.enable) { if (this.element && this.element.hyperlinks && this.element.hyperlinks.enable) {
return "<a target='" + this.element.hyperlinks.openMode + "' href='" + this.element.hyperlinks.content + "'>" + this.element.propValue + '</a>' return "<a title='" + this.element.hyperlinks.content + "' target='" + this.element.hyperlinks.openMode + "' href='" + this.element.hyperlinks.content + "'>" + this.element.propValue + '</a>'
} else { } else {
return this.element.propValue return this.element.propValue
} }
@ -154,6 +154,7 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
outline: none; outline: none;
} }
.canEdit { .canEdit {
@ -161,4 +162,9 @@ export default {
height: 100%; height: 100%;
} }
} }
::v-deep a:hover {
text-decoration: underline!important;
color: blue!important;
}
</style> </style>