Skip to content

Commit

Permalink
docs: fix popper.js docs link(dropdown, select-v2, tooltip) (#8474)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZhanMing committed Jun 25, 2022
1 parent 5c0e1b9 commit a927718
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
32 changes: 16 additions & 16 deletions docs/en-US/component/dropdown.md
Expand Up @@ -79,22 +79,22 @@ dropdown/sizes

## Dropdown Attributes

| Attribute | Description | Type | Accepted Values | Default |
| -------------- | --------------------------------------------------------------------------------------------------------------------- | --------------- | ------------------------------------------------------------------ | ------------------------------------------------------- |
| type | menu button type, refer to `Button` Component, only works when `split-button` is true | string | ||
| size | menu size, also works on the split button | string | large / default / small | default |
| max-height | the max height of menu | string / number | ||
| split-button | whether a button group is displayed | boolean | | false |
| disabled | Whether to disable | boolean | | false |
| placement | placement of pop menu | string | top/top-start/top-end/bottom/bottom-start/bottom-end | bottom |
| trigger | how to trigger | string | hover/click/contextmenu | hover |
| hide-on-click | whether to hide menu after clicking menu-item | boolean | | true |
| show-timeout | Delay time before show a dropdown (only works when trigger is `hover`) | number | | 250 |
| hide-timeout | Delay time before hide a dropdown (only works when trigger is `hover`) | number | | 150 |
| role | The ARIA role attribute for the dropdown menu. Depending on the use case, you may want to change this to 'navigation' | string | | 'menu' |
| tabindex | [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of Dropdown | number | | 0 |
| popper-class | custom class name for Dropdown's dropdown | string | ||
| popper-options | [popper.js](https://popper.js.org/documentation.html) parameters | Object | refer to [popper.js](https://popper.js.org/documentation.html) doc | `{ boundariesElement: 'body', gpuAcceleration: false }` |
| Attribute | Description | Type | Accepted Values | Default |
| -------------- | --------------------------------------------------------------------------------------------------------------------- | --------------- | -------------------------------------------------------- | ------------------------------------------------------- |
| type | menu button type, refer to `Button` Component, only works when `split-button` is true | string |||
| size | menu size, also works on the split button | string | large / default / small | default |
| max-height | the max height of menu | string / number |||
| split-button | whether a button group is displayed | boolean || false |
| disabled | Whether to disable | boolean || false |
| placement | placement of pop menu | string | top/top-start/top-end/bottom/bottom-start/bottom-end | bottom |
| trigger | how to trigger | string | hover/click/contextmenu | hover |
| hide-on-click | whether to hide menu after clicking menu-item | boolean || true |
| show-timeout | Delay time before show a dropdown (only works when trigger is `hover`) | number || 250 |
| hide-timeout | Delay time before hide a dropdown (only works when trigger is `hover`) | number || 150 |
| role | The ARIA role attribute for the dropdown menu. Depending on the use case, you may want to change this to 'navigation' | string || 'menu' |
| tabindex | [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of Dropdown | number || 0 |
| popper-class | custom class name for Dropdown's dropdown | string |||
| popper-options | [popper.js](https://popper.js.org/docs/v2/) parameters | Object | refer to [popper.js](https://popper.js.org/docs/v2/) doc | `{ boundariesElement: 'body', gpuAcceleration: false }` |

## Dropdown Slots

Expand Down
2 changes: 1 addition & 1 deletion docs/en-US/component/select-v2.md
Expand Up @@ -151,7 +151,7 @@ select-v2/remote-search
| popper-append-to-body(deprecated) | whether to append the popper menu to body. If the positioning of the popper is wrong, you can try to set this prop to false | boolean | - | false |
| teleported | whether select dropdown is teleported to the body | boolean | true / false | true |
| persistent | when select dropdown is inactive and `persistent` is `false`, select dropdown will be destroyed | boolean | true / false | true |
| popper-options | Customized popper option see more at [popper.js](https://popper.js.org/documentation.html) | object | - | - |
| popper-options | Customized popper option see more at [popper.js](https://popper.js.org/docs/v2/) | object | - | - |
| automatic-dropdown | for non-filterable Select, this prop decides if the option menu pops up when the input is focused | boolean | - | false |
| height | The height of the dropdown panel, 34px for each item | number | - | 170 |
| scrollbar-always-on | Controls whether the scrollbar is always displayed | boolean | - | false |
Expand Down
2 changes: 1 addition & 1 deletion docs/en-US/component/tooltip.md
Expand Up @@ -154,7 +154,7 @@ tooltip/animations
| offset | offset of the Tooltip | number || 0 |
| transition | animation name | string || el-fade-in-linear |
| visible-arrow (will deprecate in 2.1.0 ) | whether an arrow is displayed. For more information, check [ElPopper](https://github.com/element-plus/element-plus/tree/dev/packages/components/popper) page | boolean || true |
| popper-options | [popper.js](https://popper.js.org/documentation.html) parameters | Object | refer to [popper.js](https://popper.js.org/documentation.html) doc | `{ boundariesElement: 'body', gpuAcceleration: false }` |
| popper-options | [popper.js](https://popper.js.org/docs/v2/) parameters | Object | refer to [popper.js](https://popper.js.org/docs/v2/) doc | `{ boundariesElement: 'body', gpuAcceleration: false }` |
| show-after | delay of appearance, in millisecond | number || 0 |
| show-arrow | whether the tooltip content has an arrow | boolean | true / false | true |
| hide-after | delay of disappear, in millisecond | number || 200 |
Expand Down

0 comments on commit a927718

Please sign in to comment.