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
7883b16b
Commit
7883b16b
authored
Apr 19, 2017
by
Leopoldthecoder
Committed by
杨奕
Apr 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tooltip: add hide-on-hover
parent
e7a61062
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
examples/docs/en-US/tooltip.md
examples/docs/en-US/tooltip.md
+1
-0
examples/docs/zh-CN/tooltip.md
examples/docs/zh-CN/tooltip.md
+1
-0
packages/tooltip/src/main.js
packages/tooltip/src/main.js
+5
-1
No files found.
examples/docs/en-US/tooltip.md
View file @
7883b16b
...
...
@@ -212,3 +212,4 @@ Disabled form elements are not supported in tooltip, see more information at [MD
| open-delay | delay of appearance, in millisecond | number | — | 0 |
| manual | whether to control Tooltip manually.
`mouseenter`
and
`mouseleave`
won't have effects if set to
`true`
| boolean | — | false |
| popper-class | custom class name for Tooltip's popper | string | — | — |
| enterable | whether the mouse can enter the tooltip | Boolean | — | true |
examples/docs/zh-CN/tooltip.md
View file @
7883b16b
...
...
@@ -214,3 +214,4 @@ tooltip 内不支持 disabled form 元素,参考[MDN](https://developer.mozill
| open-delay | 延迟出现,单位毫秒 | Number | — | 0 |
| manual | 手动控制模式,设置为 true 后,mouseenter 和 mouseleave 事件将不会生效 | Boolean | — | false |
| popper-class | 为 Tooltip 的 popper 添加类名 | String | — | — |
| enterable | 鼠标是否可进入到 tooltip 中 | Boolean | — | true |
packages/tooltip/src/main.js
View file @
7883b16b
...
...
@@ -35,6 +35,10 @@ export default {
gpuAcceleration
:
false
};
}
},
enterable
:
{
type
:
Boolean
,
default
:
true
}
},
...
...
@@ -107,7 +111,7 @@ export default {
},
handleClosePopper
()
{
if
(
this
.
expectedState
||
this
.
manual
)
return
;
if
(
this
.
e
nterable
&&
this
.
e
xpectedState
||
this
.
manual
)
return
;
clearTimeout
(
this
.
timeout
);
this
.
showPopper
=
false
;
},
...
...
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