Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
wangtao
3 years ago
Commit
812a19d05963080edcf2cf8c308eab149dcf0535
1 parent
496ee5f3
表格组件悬浮内容换行
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/table-page/index.html
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/table-page/index.js
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/table-page/index.html
View file @
812a19d
...
...
@@ -30,7 +30,7 @@
</div>
<span
v-else
>
<el-tooltip
placement=
"top"
:disabled=
"scope.row.isShowTooltip == undefined || scope.row.isShowTooltip == false"
>
<el-tooltip
placement=
"top
-start
"
:disabled=
"scope.row.isShowTooltip == undefined || scope.row.isShowTooltip == false"
>
<template
#
content
>
<div
v-html=
"getTextContent(scope.row[item.prop])"
>
</div>
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/table-page/index.js
View file @
812a19d
...
...
@@ -231,7 +231,7 @@ export default {
if
(
val
&&
val
!=
''
&&
val
!=
null
){
val
=
val
+
''
.
replace
(
/
[^\x
00-
\x
ff
]
/g
,
"$&\x01"
).
replace
(
/.
{50}\x
01
?
/g
,
"$&<br/>"
).
replace
(
/
\x
01/g
,
""
);
}
return
val
;
return
`
<
pre
>
$
{
val
}
<
/pre>`
;
}
//设置父节点选中后children也选中
...
...
Please
register
or
login
to post a comment