mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
doc: tooltip appendToBody default value is true (#2184)
This commit is contained in:
@@ -181,7 +181,7 @@ Disabled form elements are not supported for Tooltip, more information can be fo
|
||||
### Attributes
|
||||
| Attribute | Description | Type | Accepted Values | Default |
|
||||
|----------------|---------|-----------|-------------|--------|
|
||||
| append-to-body | whether to append Dialog itself to body. A nested Dialog should have this attribute set to `true` | boolean | — | false |
|
||||
| append-to-body | whether to append Dialog itself to body. A nested Dialog should have this attribute set to `true` | boolean | — | true |
|
||||
| effect | Tooltip theme | string | dark/light | dark |
|
||||
| content | display content, can be overridden by `slot#content` | String | — | — |
|
||||
| placement | position of Tooltip | string | top/top-start/top-end/bottom/bottom-start/bottom-end/left/left-start/left-end/right/right-start/right-end | bottom |
|
||||
|
||||
@@ -181,7 +181,7 @@ Es necesario envolver los elementos de forma deshabilitados en un elemento conte
|
||||
### Atributos
|
||||
| Atributo | Descripción | Tipo | Valores aceptados | Por defecto |
|
||||
| -------------- | ---------------------------------------- | ------- | ---------------------------------------- | ---------------------------------------- |
|
||||
| append-to-body | Si adjuntar el cuadro de diálogo al cuerpo | boolean | — | false |
|
||||
| append-to-body | Si adjuntar el cuadro de diálogo al cuerpo | boolean | — | true |
|
||||
| effect | tema del Tooltip | string | dark/light | dark |
|
||||
| content | contenido a mostrar, puede ser sobre-escrito por `slot#content` | string | — | — |
|
||||
| placement | posición del Tooltip | string | top/top-start/top-end/bottom/bottom-start/bottom-end/left/left-start/left-end/right/right-start/right-end | bottom |
|
||||
|
||||
@@ -182,7 +182,7 @@ Les éléments de formulaire désactivés ne sont pas supportés par Tooltip, pl
|
||||
|
||||
| Attribut | Description | Type | Valeurs acceptées | Défaut |
|
||||
|----------------|---------|-----------|-------------|--------|
|
||||
| append-to-body | S'il faut ajouter le Dialog au body. Un Dialog imbriqué doit avoir cet attribut à `true`. | boolean | — | false |
|
||||
| append-to-body | S'il faut ajouter le Dialog au body. Un Dialog imbriqué doit avoir cet attribut à `true`. | boolean | — | true |
|
||||
| effect | Thème du Tooltip. | string | dark/light | dark |
|
||||
| content | Contenu à afficher, écrasé par `slot#content`. | String | — | — |
|
||||
| placement | Position du Tooltip. | string | top/top-start/top-end/bottom/bottom-start/bottom-end/left/left-start/left-end/right/right-start/right-end | bottom |
|
||||
|
||||
@@ -181,7 +181,7 @@
|
||||
### 属性
|
||||
| Attribute | Description | Type | Accepted Values | Default |
|
||||
|----------------|---------|-----------|-------------|--------|
|
||||
| append-to-body | dialog自身をボディに追加するかどうかを指定します。入れ子になったdialogは、この属性を `true` に設定しなければなりません。 | boolean | — | false |
|
||||
| append-to-body | dialog自身をボディに追加するかどうかを指定します。入れ子になったdialogは、この属性を `true` に設定しなければなりません。 | boolean | — | true |
|
||||
| effect | ツールチップのテーマ | string | dark/light | dark |
|
||||
| content | コンテンツを表示、`slot#content` で上書きすることができます。 | String | — | — |
|
||||
| placement | ツールチップの位置 | string | top/top-start/top-end/bottom/bottom-start/bottom-end/left/left-start/left-end/right/right-start/right-end | bottom |
|
||||
|
||||
@@ -162,7 +162,7 @@ tooltip 内不支持 disabled form 元素,参考[MDN](https://developer.mozill
|
||||
### Attributes
|
||||
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
||||
|--------------------|----------------------------------------------------------|-------------------|-------------|--------|
|
||||
| append-to-body | 决定 popper 是否传送到 document.body 下 | Boolean | - | false |
|
||||
| append-to-body | 决定 popper 是否传送到 document.body 下 | Boolean | - | true |
|
||||
| effect | 默认提供的主题 | String | dark/light | dark |
|
||||
| content | 显示的内容,也可以通过 `slot#content` 传入 DOM | String | — | — |
|
||||
| placement | Tooltip 的出现位置 | String | top/top-start/top-end/bottom/bottom-start/bottom-end/left/left-start/left-end/right/right-start/right-end | bottom |
|
||||
|
||||
Reference in New Issue
Block a user