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

[外部样式类] 描述问题的标题 #1125

Closed
deajax opened this issue Oct 14, 2023 · 2 comments
Closed

[外部样式类] 描述问题的标题 #1125

deajax opened this issue Oct 14, 2023 · 2 comments
Labels
question Further information is requested wontfix This will not be worked on

Comments

@deajax
Copy link

deajax commented Oct 14, 2023

这个功能解决了什么问题

可以协同tailwindcss来辅助td框架开发项目

你建议的方案是什么

增加类似小程序的externalClasses类,比如:
虽然 的class可以直接控制cell组件,但是cell的下级如titile,desc等无法直接控制,只能在css里写诸如「.t-cell .t-cell-title { ''' }」这样的,如果使用tailwind的话,可以直接在class定义原子类型来控制下级,就像小程序那样,t-class-title="text-red-600"就可以直接定义到title的class上了,而不用写到css上。

@github-actions
Copy link
Contributor

👋 @deajax,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao
Copy link
Collaborator

anlyyao commented Oct 16, 2023

@deajax 小程序和 vue 机器还是不一样的,小程序外部样式类是为了解决组件开启组件隔离后外部无法修改组件样式,而且是局部的。所以目前暂时不考虑加externalClasses属性,如果目标是修改组件下级样式,可以看一下深度选择器 :deep()。

@anlyyao anlyyao added question Further information is requested wontfix This will not be worked on labels Oct 16, 2023
@anlyyao anlyyao closed this as completed Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants