Tooltip: add tips to docs, fixed #3894 (#3906)

pull/3985/head
pengchongfu 2017-04-04 17:57:51 +08:00 committed by cinwell.li
parent 621c4b445a
commit 379c3a5d64
2 changed files with 4 additions and 0 deletions

View File

@ -192,6 +192,8 @@ In fact, Tooltip is an extension based on [Vue-popper](https://github.com/elemen
:::tip
The `router-link` component is not supported in tooltip, please use `vm.$router.push`.
Disabled form elements are not supported in tooltip, see more information at [MDN](https://developer.mozilla.org/en-US/docs/Web/Events/mouseenter), please wrap disabled form elements.
:::

View File

@ -195,6 +195,8 @@ Tooltip 组件提供了两个不同的主题:`dark`和`light`。
:::tip
tooltip 内不支持 `router-link` 组件,请使用 `vm.$router.push` 代替。
tooltip 内不支持 disabled form 元素,参考[MDN](https://developer.mozilla.org/en-US/docs/Web/Events/mouseenter),请在 disabled form 元素外层添加一层包裹元素。
:::
### Attributes