Comments (3)
@Nero978 感谢反馈和提供修改方案~
但我可能不太倾向在 app.wxss 中通过增加 view 标签选择器的方式来规避 custom-tab-bar 、或 root-portal 组件在 webview模式下无法继承 page选择器样式的问题。
- 不推荐标签选择器
- 优先级view > page,这意味着二次覆盖组件库样式必须大于等于view
综合考虑,我更倾向新增一个 .page
class选择器,在custom-tab-bar 或者 root-portal 组件等特殊场景中,主动引入保证design token能正确被继承
使用上大概是:
// 开启虚拟节点
<view class="page" >
<t-tab-bar />
</view>
// 不开启虚拟节点
<t-tab-bar class="page" />
from tdesign-miniprogram.
👋 @Nero978,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
from tdesign-miniprogram.
#2857 涉及文档补充
from tdesign-miniprogram.
Related Issues (20)
- [t-cell] 动态渲染分割线不显示 HOT 1
- [rate] 控制台报样式 HOT 2
- [t-grid] 点击grid item没有任何反应 HOT 5
- [t-message] 手动设置visible属性无效 HOT 2
- [SwipeCell] 滑动操作在真机上是用不了 HOT 2
- [ Indexes 索引]组件样式出现bug,以及滚动中标题的定位与消失等问题 HOT 3
- [Rate] 弹框交互改进 HOT 1
- [T-Upload] 动态设置 gridConfig 不生效 HOT 1
- [t-popup] prevent-scroll-through问题 HOT 3
- [t-collapse] 关于组件在预览和真机调试不显示? HOT 2
- NoticeBar content插槽循环滚动异常终止 HOT 2
- t-slider 拉到最大值,显示不完整 HOT 2
- [t-dialog] close-on-overlay-click prevent-scroll-through 都不生效 HOT 2
- [t-input] 输入框禁用态样式未能覆盖到 Placeholder 占位符 HOT 2
- [upload] 固定上传数量 HOT 2
- TabBar 标签栏 支持 Skyline 的问题 HOT 3
- [tab-bar] 异步动态更新tab-bar-item后 tab-bar的change 事件响应的值错误 HOT 4
- [NoticeBar]存在无使用组件 HOT 1
- [NoticeBar] 随机出现奇怪的跑马灯效果 HOT 2
- [Grid 宫格] 使用grid组件,小程序开发工具和mac电脑真机预览没有问题,但是使用iphone13真机预览宫格的图片没有缩小 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tdesign-miniprogram.