[犀牛鸟]feat(color-picker): add eyeDropper prop for screen color sampling - #6793
Closed
Lfan-ke wants to merge 4 commits into
Closed
[犀牛鸟]feat(color-picker): add eyeDropper prop for screen color sampling#6793Lfan-ke wants to merge 4 commits into
Lfan-ke wants to merge 4 commits into
Conversation
Lfan-ke
requested review from
Cat1007,
PengYYYYY,
Wesley-0808,
chaishi,
liweijie0812,
uyarn,
zhangpaopao0609 and
zydemail
as code owners
July 10, 2026 02:27
Collaborator
|
/update-common 2615 |
Collaborator
TDesign Component Site Preview Open
|
Signed-off-by: 林晨 (Leo Cheng) <leo-cheng@vip.qq.com>
…module Signed-off-by: 林晨 (Leo Cheng) <leo-cheng@vip.qq.com>
Signed-off-by: 林晨 (Leo Cheng) <leo-cheng@vip.qq.com>
Lfan-ke
force-pushed
the
feat/color-picker-eyedropper
branch
from
August 4, 2026 18:45
a9ef456 to
d8b985d
Compare
…:vue. Signed-off-by: Leo Cheng <chengkelfan@qq.com>
Collaborator
|
谢谢参与犀牛鸟的活动,综合实现的视觉效果,讨论之后决定采纳 #6823 继续推进 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds an
eyeDropperprop to ColorPicker. When enabled, a button in the panel header invokes the browser's native EyeDropper API to sample any color on screen; the button is disabled automatically when the browser lacks support.Details:
color-picker/utils/eyedropper.ts) wrappingwindow.EyeDropper, so the component does not depend on the common submodule at runtime.colorPicker.eyeDropper), consistent with the other color-picker strings, and falls back to 吸色. The i18n key is added across all eight locales in the paired common PR.config-provider/type.tsregenerates with the neweyeDropperfield; the panel snapshot is updated for the added conditional node.Verified locally:
tsc --noEmitclean, eslint clean (--max-warnings 0), and the color-picker unit tests pass with the refreshed snapshot.Depends on Tencent/tdesign-common#2615 (adds the
colorPicker.eyeDropperi18n string). The submodule is pinned to that branch; once the common PR merges, the pointer moves to common develop. Please merge the common PR first.