Skip to content

feat(color-picker): support input-less trigger#4306

Open
Malusnow wants to merge 2 commits into
Tencent:developfrom
Malusnow:feat/color-picker-no-input
Open

feat(color-picker): support input-less trigger#4306
Malusnow wants to merge 2 commits into
Tencent:developfrom
Malusnow:feat/color-picker-no-input

Conversation

@Malusnow

@Malusnow Malusnow commented Jul 1, 2026

Copy link
Copy Markdown

Add the isInput prop to control whether the color value input is displayed.The prop defaults to true to preserve the existing behavior.

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

Tencent/tdesign-common#2567

💡 需求背景和解决方案

支持无文字输入框样式
新增isInput prop 相关pr:TDesignOteam/tdesign-api#911
新增无文字输入样式 相关pr:Tencent/tdesign-common#2581
本pr的工作:
ColorPicker.tsx 透传 isInput
components/trigger.tsx 添加 no-input class

通过设置<ColorPicker defaultValue="#0052d9" isInput={false} />可实现以下效果
已在本地联调,ui效果如下,其余功能可正常使用
ca521cf050a4281f898fc67067c6d28f

📝 更新日志

  • 本条 PR 不需要纳入 Changelog

tdesign-react

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

Add the isInput prop to control whether the color value input is displayed.The prop defaults to true
to preserve the existing behavior.
@tdesign-bot

tdesign-bot commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

TDesign Component Site Preview Open

Component Preview
tdesign-react 完成
@tdesign-react/chat 完成

@pkg-pr-new

pkg-pr-new Bot commented Jul 1, 2026

Copy link
Copy Markdown
  • tdesign-react-demo

    npm i https://pkg.pr.new/Tencent/tdesign-react@4306
    
    npm i https://pkg.pr.new/Tencent/tdesign-react/@tdesign-react/chat@4306
    

commit: bc638d4

@Malusnow

Malusnow commented Jul 1, 2026

Copy link
Copy Markdown
Author

@RylanBot 您好,test没跑通似乎并不是本次修改引起的?我还需要做些什么吗

@RylanBot

RylanBot commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

@RylanBot 您好,test没跑通似乎并不是本次修改引起的?我还需要做些什么吗

Prettier 配置有些问题,导致流水线产生了一些冲突...
和你的 PR 无关,正在处理这个问题了,晚些会同步修复后的代码到你的分支上,应该就正常了

@RSS1102

RSS1102 commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

当前的 api 定义还有待商榷,之前在 Tencent/tdesign-vue-next#5383 有提过类似的改动,我先跟进下之前的 pr 确定下 api 的定义。

@RSS1102 RSS1102 added the ⛔️ pending the issue won't be processed right now label Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⛔️ pending the issue won't be processed right now

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants