Răsfoiți Sursa

docs: Added instructions for using visible of Tooltip component with trigger=custom

zhangyumei.0319 6 luni în urmă
părinte
comite
dfaba1d5c7
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      content/show/tooltip/index-en-US.md
  2. 1 1
      content/show/tooltip/index.md

+ 1 - 1
content/show/tooltip/index-en-US.md

@@ -354,7 +354,7 @@ import { Popconfirm, Tooltip, Button } from '@douyinfe/semi-ui';
 | stopPropagation | Whether to prevent click events on the bomb layer from bubbling                                                                                                                                                             | boolean | false | **0.34.0** |
 | transformFromCenter | Whether to transform from the horizontal or vertical center of the element of the package, this parameter affects only the `tansform-origin 'of the dynamic effect transformation and generally does not need to be changed | boolean | true |
 | trigger | Timing of triggering display, optional value: `hover`/`focus`/`click`/`custom`                                                                                                                                              | string | 'hover' |  |
-| visible | Whether to show the pop-up layer                                                                                                                                                                                            | boolean |  |  |
+| visible | Whether to show the pop-up layer, need to be used with trigger='custom'                                                                                                                                                                                          | boolean |  |  |
 | wrapperClassName | When children are disabled or children are multiple elements, the outer layer will wrap a layer of span elements, and the api is used to set the style class name of this span                                              | string |  | 1.32.0 |
 | wrapperId | The id of the wrapper node of the popup layer. The aria attribute of the trigger points to this id.                                                                                                                         | string |  | 2.11.0  |
 | zIndex              | Bullet levels.                                                                                                                                                                                                              | number                      | 1060                |            |

+ 1 - 1
content/show/tooltip/index.md

@@ -390,7 +390,7 @@ function Demo() {
 | stopPropagation | 是否阻止弹层上的点击事件冒泡                                                                                                                                       | boolean | false |  |
 | transformFromCenter | 是否从包裹的元素水平或垂直中心处变换,该参数仅影响动效变换的 `transform-origin`,一般无需改动                                                                                             | boolean | true |  |
 | trigger | 触发展示的时机,可选值:`hover` / `focus` / `click` / `custom` / `contextMenu` (v2.42后提供)                                                                                                   | string | 'hover' |  |
-| visible | 是否展示弹出层                                                                                                                                              | boolean |  |  |
+| visible | 是否展示弹出层, 需配合 trigger='custom' 使用                                                                                                                                            | boolean |  |  |
 | wrapperClassName | 当 children 为 disabled ,或者 children 为多个元素时,外层将会包裹一层 span 元素,该 api 用于设置此 span 的样式类名                                                                    | string |  |  |
 | wrapperId | 弹出层 wrapper 节点的 id,trigger 的 aria 属性指向此 id,若不设置组件会随机生成一个 id                                                                                          | string |  | 2.11.0  |
 | zIndex | 弹层层级                                                                                                                                                 | number | 1060 |  |