Skip to content
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

部分组件不支持传入 customStyle 属性来控制组件样式 #44

Closed
pillys opened this issue Dec 23, 2021 · 4 comments
Closed

部分组件不支持传入 customStyle 属性来控制组件样式 #44

pillys opened this issue Dec 23, 2021 · 4 comments

Comments

@pillys
Copy link

pillys commented Dec 23, 2021

【现状】有的组件比如 t-icon 可以传入 customStyle 属性来控制组件样式,但是有的组件不支持,比如 t-button,目前传入 customStyle 无效。
【期望】所有组件都支持该属性

@LeeJim
Copy link
Collaborator

LeeJim commented Dec 23, 2021

其实我们所有组件都支持 externalClass,可以通过这个来覆盖样式的。
而且 externalClass 可以支持多个,功能更加强大。

因为很多组件不像 icon 这样简单,DOM 比较复杂,通过 customStyle 只能改单一元素。

@pillys
Copy link
Author

pillys commented Dec 24, 2021

Thanks

@chaishi
Copy link
Contributor

chaishi commented Dec 24, 2021

印象中确实有些组件没有入库 externalClass

@LeeJim
Copy link
Collaborator

LeeJim commented Dec 27, 2021

等有场景缺乏 externalClass 的时候,再讨论吧。先 close 了

@LeeJim LeeJim closed this as completed Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants