feat(color-picker): add eyeDropper prop and eyedropper change trigger - #923
Open
LiamFan16-mikasa wants to merge 1 commit into
Open
feat(color-picker): add eyeDropper prop and eyedropper change trigger#923LiamFan16-mikasa wants to merge 1 commit into
LiamFan16-mikasa wants to merge 1 commit into
Conversation
LiamFan16-mikasa
requested review from
anlyyao,
chaishi,
liweijie0812 and
uyarn
as code owners
July 10, 2026 10:45
This was referenced Jul 10, 2026
LiamFan16-mikasa
force-pushed
the
feat/color-picker-eyedropper
branch
from
July 19, 2026 07:08
7abaf7a to
d511a30
Compare
LiamFan16-mikasa
force-pushed
the
feat/color-picker-eyedropper
branch
from
July 19, 2026 07:17
d511a30 to
366b022
Compare
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.
🤔 这个 PR 的性质是?
🔗 相关 Issue
closes Tencent/tdesign-common#2568
配套 PR(同一作者):
💡 需求背景和解决方案
为 ColorPicker / ColorPickerPanel 同步吸色(EyeDropper)相关 API 数据:
eyeDropper(Boolean,默认false,平台 Vue(PC),ColorPicker 与 ColorPickerPanel 各一条):是否开启吸色(屏幕取色)功能。开启后面板顶部显示吸色按钮,基于浏览器原生 EyeDropper API 实现,浏览器不支持时按钮呈禁用状态change事件(ColorPicker / ColorPickerPanel)的ColorPickerChangeTrigger联合类型追加'eyedropper'。该记录为 Vue(PC) / React(PC) 共享,枚举表示可能的触发来源,对未实现该功能的框架无影响补充说明:仅提交
db/TDesign.db与packages/scripts/api.json数据变更,未包含packages/products生成产物——本地全量重新生成会引入大量与本变更无关的行尾/重排 diff。产物可由维护者按需生成验证:npm run api:docs ColorPicker 'VueNext(PC)'(已本地验证,生成的 props.ts / type.ts / md 与框架侧 PR Tencent/tdesign-vue-next#6796 的内容一致)。📝 更新日志
eyeDropper属性与change事件的eyedropper触发来源☑️ 请求合并前的自查清单