Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

【问题】统一 Shape 的枚举 #121

@teacher-zhou

Description

@teacher-zhou

问题描述

Shape 枚举出现了很多种形式,只是某些枚举项不同,需要改为枚举类型,并根据不同组件分别定义,参考 Theme 枚举类型

目前发现以下组件的枚举出现重复

  • ButtonShape
    • Circle
    • Square
    • Round
  • ImageShape
    • Circle
    • Square
    • Round
  • BadgeShape
    • Circle
    • Round
    • Dot
  • TagShape
    • Round
    • Mark
    • Square
  • AvatarGroup
    • Circle
    • Round

希望解决方案

通用的可以作为基类,调用时则是 BadgeShape.Dot ,Shape.Circle

解决方法

#121 (comment)

Metadata

Metadata

Assignees

Labels

enhancement在已有的功能上做出优化idea建议、反馈、点子

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions