From a9277187cfffa0fcd1efc75d18d5db3dd54a3a93 Mon Sep 17 00:00:00 2001 From: LinZhanMing <60056876+LinZhanMing@users.noreply.github.com> Date: Sat, 25 Jun 2022 21:43:55 +0800 Subject: [PATCH] docs: fix popper.js docs link(dropdown, select-v2, tooltip) (#8474) --- docs/en-US/component/dropdown.md | 32 +++++++++++++++---------------- docs/en-US/component/select-v2.md | 2 +- docs/en-US/component/tooltip.md | 2 +- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/en-US/component/dropdown.md b/docs/en-US/component/dropdown.md index 77a4feaca9433..62fb6574db001 100644 --- a/docs/en-US/component/dropdown.md +++ b/docs/en-US/component/dropdown.md @@ -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 diff --git a/docs/en-US/component/select-v2.md b/docs/en-US/component/select-v2.md index 4db73ee6cca8a..8222a178b5111 100644 --- a/docs/en-US/component/select-v2.md +++ b/docs/en-US/component/select-v2.md @@ -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 | diff --git a/docs/en-US/component/tooltip.md b/docs/en-US/component/tooltip.md index 6aa81fbdd3e2a..d0cf060eea163 100644 --- a/docs/en-US/component/tooltip.md +++ b/docs/en-US/component/tooltip.md @@ -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 |