-
Notifications
You must be signed in to change notification settings - Fork 280
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
[cell] 外部样式类t-class-title划分不合理 #2428
Comments
👋 @Oreslok,感谢给 TDesign 提出了 issue。 |
@anlyyao 我觉得你可能没有理解我意思。我目的就是控制title区域的样式。举个例子吧,我想调整title的flex。
你看,基于上述代码,并不能达到我设置flex: none的目的,我必须通过.t-cell__title才能实现 |
|
点赞! |
tdesign-miniprogram 版本
2.8.3-1
重现链接
No response
重现步骤
<t-cell title="我是标题">
<view slot="note">
<t-button>选择1</t-button>
<t-button>选择2</t-button>
</view>
</t-cell>
上述代码,在微信开发者工具中,将解析为
<view class="t-class t-cell t-middle">
<view class="t-cell__left t-class-left"></view>
<view class="t-cell__title">
<view class="t-cell__title-text t-class-title"></view>
</view>
<view class="t-cell__note t-class-note"></view>
<view class="t-cell__right t-class-right"></view>
</view>
</view>
这么一看发现问题了吗? t-class-left t-class-note t-class-right 都位于第二层,但偏偏 t-class-title在第三层
如果我想控制title这一层的样式,依靠t-class-title可不行,得使用t-cell__title,所以建议把t-class-title放到t-cell__title后
期望结果
No response
实际结果
No response
基础库版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: