Merge pull request #943 from dataease/pr@dev@feat_panel-hyperlinks

refactor:文本超链接hover增加提示
This commit is contained in:
王嘉豪
2021-10-14 18:53:47 +08:00
committed by GitHub

View File

@@ -58,7 +58,7 @@ export default {
computed: {
textInfo() {
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 {
return this.element.propValue
}
@@ -154,6 +154,7 @@ export default {
width: 100%;
height: 100%;
outline: none;
}
.canEdit {
@@ -161,4 +162,9 @@ export default {
height: 100%;
}
}
::v-deep a:hover {
text-decoration: underline!important;
color: blue!important;
}
</style>