【问题】统一 Shape 的枚举 #132
-
问题描述
目前发现以下组件的枚举出现重复
希望解决方案通用的可以作为基类,调用时则是 |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
补充一个Avatar组件的Shape属性枚举,现在代码里使用的枚举是
|
Beta Was this translation helpful? Give feedback.
-
AvatarShapeEnum 这个吧 |
Beta Was this translation helpful? Give feedback.
-
我其实觉得通用性不是很强,尤其是看腾讯的这个文档变动,差异化越来越大,不如维持现状的基础上按照腾讯的文档完善一下枚举 |
Beta Was this translation helpful? Give feedback.
-
数据类型就已经能识别这个是枚举了,不需要特定的表示一个后缀,这也不符合规范 |
Beta Was this translation helpful? Give feedback.
-
有道理,不需要为一个细小的内容搞成通用性,否则维护和兼容成本就变得很大 |
Beta Was this translation helpful? Give feedback.
-
那修改下issue的内容吧
|
Beta Was this translation helpful? Give feedback.
-
最后两个提2个新的 issue |
Beta Was this translation helpful? Give feedback.
-
最终解决方案
|
Beta Was this translation helpful? Give feedback.
最终解决方案
ButtonShape
AvatarShape
cs
文件