feat(ColorPicker): add input-less trigger style - #2625
Open
LiamFan16-mikasa wants to merge 1 commit into
Open
Conversation
This was referenced Jul 11, 2026
Open
LiamFan16-mikasa
force-pushed
the
feat/color-picker-input-less
branch
from
July 19, 2026 06:36
929028d to
6fdec87
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
close #2567
配套实现:
💡 需求背景和解决方案
ColorPicker 触发器目前强制展示色值输入框,只需要色块的场景用户只能手写样式隐藏(见 issue)。本 PR 为
isInput=false形态补充公共样式与文档:_var.less新增 input-less 形态 token:对称 padding 与三档尺寸(默认/s/l)的 min-width,均由既有色块尺寸 token 推导,未硬编码像素值_index.less新增t-color-picker__trigger--input-less修饰类样式:隐藏色值输入内容、prefix 边距归零、色块居中(prefix 规则显式提升特异性,以覆盖 input 组件的.t-input .t-input__prefix:not(:empty)边距规则,否则色块不居中)input-less示例入口效果案例:
📝 更新日志
☑️ 请求合并前的自查清单