Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
4f00d7de
Commit
4f00d7de
authored
Nov 14, 2017
by
lyh2668
Committed by
杨奕
Nov 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update table-body.js
添加一个this.$refs.tooltip是否存在的判断
parent
6db51156
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
packages/table/src/table-body.js
packages/table/src/table-body.js
+1
-1
No files found.
packages/table/src/table-body.js
View file @
4f00d7de
...
...
@@ -340,7 +340,7 @@ export default {
// 判断是否text-overflow, 如果是就显示tooltip
const
cellChild
=
event
.
target
.
querySelector
(
'
.cell
'
);
if
(
hasClass
(
cellChild
,
'
el-tooltip
'
)
&&
cellChild
.
scrollWidth
>
cellChild
.
offsetWidth
)
{
if
(
hasClass
(
cellChild
,
'
el-tooltip
'
)
&&
cellChild
.
scrollWidth
>
cellChild
.
offsetWidth
&&
this
.
$refs
.
tooltip
)
{
const
tooltip
=
this
.
$refs
.
tooltip
;
this
.
tooltipContent
=
cell
.
innerText
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment