mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
docs(components): [watermark/dropdown] correct content value & add effect prop (#22481)
* docs(components): [watermark/dropdown] correct value & add prop * Update packages/components/dropdown/src/dropdown.ts Co-authored-by: Zhong <cszhjh@gmail.com> * Update docs/en-US/component/dropdown.md Co-authored-by: Zhong <cszhjh@gmail.com> --------- Co-authored-by: Zhong <cszhjh@gmail.com> Co-authored-by: btea <2356281422@qq.com>
This commit is contained in:
@@ -110,6 +110,7 @@ dropdown/virtual-trigger
|
||||
| split-button | whether a button group is displayed | ^[boolean] | false |
|
||||
| disabled | whether to disable | ^[boolean] | false |
|
||||
| placement | placement of pop menu | ^[enum]`'top' \| 'top-start' \| 'top-end' \| 'bottom' \| 'bottom-start' \| 'bottom-end'` | bottom |
|
||||
| effect | Tooltip theme, built-in theme: `dark` / `light` | ^[enum]`'dark' \| 'light'` / ^[string] | light |
|
||||
| trigger | how to trigger | ^[enum]`'hover' \| 'click' \| 'contextmenu'` | hover |
|
||||
| trigger-keys ^(2.9.1) | specify which keys on the keyboard can trigger when pressed | ^[array]`string[]` | `['Enter', 'Space', 'ArrowDown', 'NumpadEnter']` |
|
||||
| virtual-triggering ^(2.11.3) | indicates whether virtual triggering is enabled | ^[boolean] | — |
|
||||
|
||||
@@ -58,7 +58,7 @@ watermark/custom
|
||||
| rotate | When the watermark is drawn, the rotation Angle, unit `°` | ^[number] | -22 |
|
||||
| z-index | The z-index of the appended watermark element | ^[number] | 9 |
|
||||
| image | Image source, it is recommended to export 2x or 3x image, high priority | ^[string] | — |
|
||||
| content | Watermark text content | ^[string]/^[object]`string[]` | — |
|
||||
| content | Watermark text content | ^[string]/^[object]`string[]` | Element Plus |
|
||||
| font | Text style | [Font](#font) | [Font](#font) |
|
||||
| gap | The spacing between watermarks | ^[object]`[number, number]` | \[100, 100\] |
|
||||
| offset | The offset of the watermark from the upper left corner of the container. The default is `gap/2` | ^[object]`[number, number]` | \[gap\[0\]/2, gap\[1\]/2\] |
|
||||
|
||||
@@ -46,6 +46,9 @@ export const dropdownProps = buildProps({
|
||||
* @description Indicates the reference element to which the dropdown is attached
|
||||
*/
|
||||
virtualRef: useTooltipTriggerProps.virtualRef,
|
||||
/**
|
||||
* @description Tooltip theme, built-in theme: `dark` / `light`
|
||||
*/
|
||||
effect: {
|
||||
...useTooltipContentProps.effect,
|
||||
default: 'light',
|
||||
|
||||
Reference in New Issue
Block a user