ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

Color and status concepts in unified badge components

Open wuyadan opened this issue 3 years ago • 0 comments
trafficstars

首先,感谢你的贡献! 😄

新特性请提交至 feature 分支,其余可提交至 master 分支。在一个维护者审核通过后合并。请确保填写以下 pull request 的信息,谢谢!~

[[English Template / 英文模板](?expand=1)]

这个变动的性质是

  • [x] 新特性提交
  • [ ] 日常 bug 修复
  • [ ] 站点、文档改进
  • [ ] 组件样式改进
  • [ ] TypeScript 定义更新
  • [ ] 重构
  • [ ] 代码风格优化
  • [ ] 分支合并
  • [ ] 其他改动(是关于什么的改动?)

需求背景

  1. 来源:issue #5730.
  2. 要解决的问题:①Unify the concepts of color and status in the badge component, similar to the concept of color in the tag component。②badge组件的text属性不止是在设置了status的前提下有效
  3. issue链接:https://github.com/vueComponent/ant-design-vue/issues/5730

实现方案和 API(非新功能可选)

  1. 方案:①合并status属性和color属性于color属性,②修改text属性的api说明文档。

  2. 用法:color可使用'success', 'processing, 'default', 'error', 'warning'等状态、预设色彩和色值。

  3. 截图:

    image

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 已提供或无须提供

wuyadan avatar Jul 05 '22 03:07 wuyadan