Skip to content

[ColorPicker] Update API for input-less trigger#913

Open
tjujingzong wants to merge 1 commit into
TDesignOteam:mainfrom
tjujingzong:main
Open

[ColorPicker] Update API for input-less trigger#913
tjujingzong wants to merge 1 commit into
TDesignOteam:mainfrom
tjujingzong:main

Conversation

@tjujingzong

Copy link
Copy Markdown

🤔 这个 PR 的性质是?

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

🔗 相关 Issue

close Tencent/tdesign-common#2567

💡 需求背景和解决方案

ColorPicker 需要支持只展示颜色色块、不展示色值输入框的触发器形态。该能力由组件侧新增
isInput API 承载,默认保持现有输入框触发器行为。

本次在 tdesign-api 中补充 ColorPicker 的 API 元数据,并同步生成 Vue Next 产物:

  • 新增 isInput API
  • 类型为 boolean
  • 默认值为 true
  • 当值为 false 时,仅展示颜色色块,不展示颜色值输入框
  • 同步更新 Vue Next 的 type.tsprops.ts 和中英文 API 文档生成结果

用法示例:

<t-color-picker v-model="color" :is-input="false" />                                      
                                                                                          
### 📝 更新日志                                                                           
                                                                                          
- feat(ColorPicker): add isInput API metadata                                             
- [ ] 本条 PR 不需要纳入 Changelog                                                        
                                                                                          
### 请求合并前的自查清单                                                                  
                                                                                          
- [x] 文档已补充或无须补充                                                                
- [ ] 代码演示已提供或无须提供                                                            
- [x] TypeScript 定义已补充或无须补充                                                     
- [x] Changelog 已提供或无须提供                                                          
                                       

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ColorPicker] 支持无文字输入框样式

1 participant