Commit 9a5650f3 authored by qingwei.li's avatar qingwei.li

Tooltip: lazy => openDelay

parent c0aecc9c
......@@ -210,5 +210,5 @@ Tooltip 组件提供了两个不同的主题:`dark`和`light`,可以通过
| transition | 定义渐变动画 | String | | `fade-in-linear` |
| visible-arrow | 是否显示 Tooltip 箭头,更多参数可见[Vue-popper](https://github.com/element-component/vue-popper) | Boolean | | true |
| options | [popper.js](https://popper.js.org/documentation.html) 的参数 | Object | 参考 [popper.js](https://popper.js.org/documentation.html) 文档 | `{ boundariesElement: 'body', gpuAcceleration: false }` |
| lazy | 延迟出现,单位毫秒 | Number | | 0 |
| openDelay | 延迟出现,单位毫秒 | Number | | 0 |
......@@ -28,7 +28,7 @@ export default {
mixins: [Popper],
props: {
lazy: {
openDelay: {
type: Number,
default: 0
},
......@@ -59,7 +59,7 @@ export default {
handleShowPopper() {
this.timeout = setTimeout(() => {
this.showPopper = true;
}, this.lazy);
}, this.openDelay);
},
handleClosePopper() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment