-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please Don't Use Field _prefixCls
.
#40
Comments
I'm trying to make pull request this weekend. |
@LinboLen |
thanks, i can get an right voice from your team. i have to deep custom closed |
_prefixCls class is sync with ant design it self. |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
I'm submitting a...
Current behavior
Expected behavior
please don't use
_prefixCls = 'ant-btn-group';
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
class filed will consume memory when instance, simplify field will benefit performance.
UI framework/component, should be welcome to developer just using COPY/PASTE command, simplify field will lead developer just focus on data associate field whitch commonly related to binding data.
ui
class name
,html tag
should simple behave as literal exactly. please use string function or string operator as less as possible. (developer can just find or replace what he need globally)i see some
_prefixCls
with string combine style. like[ant-tag-${this.nzColor}] : isPresetColor,
this sames like less/scss problem. the real effect style should beant-tag someofngcolor
fininally, i insist on simplify field. and
_prefixCls
field should be removed.Environment
The text was updated successfully, but these errors were encountered: