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
commit 7eb9849092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>