ant-design-vue
ant-design-vue copied to clipboard
Color and status concepts in unified badge components
trafficstars
首先,感谢你的贡献! 😄
新特性请提交至 feature 分支,其余可提交至 master 分支。在一个维护者审核通过后合并。请确保填写以下 pull request 的信息,谢谢!~
[[English Template / 英文模板](?expand=1)]
这个变动的性质是
- [x] 新特性提交
- [ ] 日常 bug 修复
- [ ] 站点、文档改进
- [ ] 组件样式改进
- [ ] TypeScript 定义更新
- [ ] 重构
- [ ] 代码风格优化
- [ ] 分支合并
- [ ] 其他改动(是关于什么的改动?)
需求背景
- 来源:issue #5730.
- 要解决的问题:①Unify the concepts of color and status in the badge component, similar to the concept of color in the tag component。②badge组件的text属性不止是在设置了
status的前提下有效- issue链接:https://github.com/vueComponent/ant-design-vue/issues/5730
实现方案和 API(非新功能可选)
方案:①合并status属性和color属性于color属性,②修改text属性的api说明文档。
用法:color可使用'success', 'processing, 'default', 'error', 'warning'等状态、预设色彩和色值。
截图:
Changelog 描述(非新功能可选)
Unify the concepts of color and status in the badge component, similar to the concept of color in the tag component。
请求合并前的自查清单
- [x] 文档已补充或无须补充
- [x] 代码演示已提供或无须提供
- [x] TypeScript 定义已补充或无须补充
- [x] Changelog 已提供或无须提供
