From aca3724be456039a2e042f77301de240eaccc2d6 Mon Sep 17 00:00:00 2001 From: Lensiq <128720752+Lensiq@users.noreply.github.com> Date: Thu, 16 Oct 2025 09:22:35 +0800 Subject: [PATCH] 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 * Update docs/en-US/component/dropdown.md Co-authored-by: Zhong --------- Co-authored-by: Zhong Co-authored-by: btea <2356281422@qq.com> --- docs/en-US/component/dropdown.md | 1 + docs/en-US/component/watermark.md | 2 +- packages/components/dropdown/src/dropdown.ts | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/en-US/component/dropdown.md b/docs/en-US/component/dropdown.md index cf3bf61291..93eada1dec 100644 --- a/docs/en-US/component/dropdown.md +++ b/docs/en-US/component/dropdown.md @@ -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] | — | diff --git a/docs/en-US/component/watermark.md b/docs/en-US/component/watermark.md index 80dfeb957b..100d0a32a0 100644 --- a/docs/en-US/component/watermark.md +++ b/docs/en-US/component/watermark.md @@ -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\] | diff --git a/packages/components/dropdown/src/dropdown.ts b/packages/components/dropdown/src/dropdown.ts index 746b943cdb..774d5ee705 100644 --- a/packages/components/dropdown/src/dropdown.ts +++ b/packages/components/dropdown/src/dropdown.ts @@ -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',