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
74e6dac4
Commit
74e6dac4
authored
Oct 30, 2016
by
cinwell.li
Committed by
FuryBean
Oct 30, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Table: fix show tooltip, fixed #714 (#717)
parent
107af480
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
examples/docs/zh-cn/table.md
examples/docs/zh-cn/table.md
+1
-0
examples/docs/zh-cn/tooltip.md
examples/docs/zh-cn/tooltip.md
+3
-2
packages/table/src/table-body.js
packages/table/src/table-body.js
+0
-5
packages/theme-default/src/table.css
packages/theme-default/src/table.css
+8
-0
No files found.
examples/docs/zh-cn/table.md
View file @
74e6dac4
...
@@ -675,6 +675,7 @@
...
@@ -675,6 +675,7 @@
<template>
<template>
<el-table
<el-table
:data=
"tableData3"
:data=
"tableData3"
border
style=
"width: 100%"
style=
"width: 100%"
@
selection-change=
"handleSelectionChange"
>
@
selection-change=
"handleSelectionChange"
>
<el-table-column
<el-table-column
...
...
examples/docs/zh-cn/tooltip.md
View file @
74e6dac4
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
}
}
};
};
</script>
</script>
## Tooltips 文字提示
## Tooltip 文字提示
常用于展示鼠标 hover 时的提示信息。
常用于展示鼠标 hover 时的提示信息。
...
@@ -118,7 +119,7 @@ Tooltip 组件提供了两个不同的主题:`dark`和`light`。
...
@@ -118,7 +119,7 @@ Tooltip 组件提供了两个不同的主题:`dark`和`light`。
```
```
:::
:::
### 更多Content
### 更多
Content
展示多行文本或者是设置文本内容的格式
展示多行文本或者是设置文本内容的格式
...
...
packages/table/src/table-body.js
View file @
74e6dac4
...
@@ -36,7 +36,6 @@ export default {
...
@@ -36,7 +36,6 @@ export default {
{
{
this
.
_l
(
this
.
columns
,
(
column
,
cellIndex
)
=>
this
.
_l
(
this
.
columns
,
(
column
,
cellIndex
)
=>
<
td
<
td
style
=
{
this
.
getColumnWhiteSpaceStyle
(
column
)
}
class
=
{
[
column
.
id
,
column
.
align
,
this
.
isCellHidden
(
cellIndex
)
?
'
hidden
'
:
''
]
}
class
=
{
[
column
.
id
,
column
.
align
,
this
.
isCellHidden
(
cellIndex
)
?
'
hidden
'
:
''
]
}
on
-
mouseenter
=
{
(
$event
)
=>
this
.
handleCellMouseEnter
(
$event
,
row
)
}
on
-
mouseenter
=
{
(
$event
)
=>
this
.
handleCellMouseEnter
(
$event
,
row
)
}
on
-
mouseleave
=
{
this
.
handleCellMouseLeave
}
>
on
-
mouseleave
=
{
this
.
handleCellMouseLeave
}
>
...
@@ -118,10 +117,6 @@ export default {
...
@@ -118,10 +117,6 @@ export default {
return
classes
.
join
(
'
'
);
return
classes
.
join
(
'
'
);
},
},
getColumnWhiteSpaceStyle
(
column
)
{
return
column
.
showTooltipWhenOverflow
?
{
'
white-space
'
:
'
nowrap
'
}
:
{};
},
handleCellMouseEnter
(
event
,
row
)
{
handleCellMouseEnter
(
event
,
row
)
{
const
table
=
this
.
$parent
;
const
table
=
this
.
$parent
;
const
cell
=
getCell
(
event
);
const
cell
=
getCell
(
event
);
...
...
packages/theme-default/src/table.css
View file @
74e6dac4
...
@@ -39,8 +39,16 @@
...
@@ -39,8 +39,16 @@
z-index
:
1
;
z-index
:
1
;
}
}
.el-tooltip
{
display
:
block
;
}
.el-tooltip__rel
{
.el-tooltip__rel
{
display
:
block
;
display
:
block
;
.cell
>
*
{
white-space
:
nowrap
;
}
}
}
@e
empty-block
{
@e
empty-block
{
...
...
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