当前位置:网站首页>Uni app change the default component style
Uni app change the default component style
2022-07-05 03:59:00 【Summer is already slightly cool】
One 、 explain
vue After component compilation , Will template For each element in the
[data-v-xxxx]
Attribute to ensure thatstyle scoped
Only the elements of this component will not pollute the globalArrange horizontally without wrapping , as follows
Add style
flex-wrap: wrap;
, Line wrap successful
Two 、 solve
1、 stay class front Join in deep
- If you expect to pass such as modifying its son class The style of . To affect the display effect , Directly increase class There is no effect
- You need to modify the specified component style class front Join in deep Can only be
<style lang="scss" scoped> /deep/ .u-checkbox-group--row{
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
</style>
2、 stay vue-cli3 Compile time , use ::v-deep
- stay vue-cli3 Compile time ,deep An error will be reported or a warning will be given , We use it
::v-deep
<style lang="scss" scoped> ::v-deep .u-checkbox-group--row{
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
</style>
3、 Before editing , Edit well Screenshot comparison
- Before editing
- After editing
3、 ... and 、 His shan zhishi
边栏推荐
- [punch in questions] integrated daily 5-question sharing (phase III)
- Technology sharing swift defense programming
- How rem is used
- JWT漏洞复现
- [untitled]
- About the recent experience of writing questions
- Pyqt pyside custom telescopic menu bar sharing (including tutorial)
- 【看完就懂系列】一文6000字教你从0到1实现接口自动化
- Timing manager based on C #
- Basic function learning 02
猜你喜欢
我国算力规模排名全球第二:计算正向智算跨越
[wp]bmzclub writeup of several questions
灵魂三问:什么是接口测试,接口测试怎么玩,接口自动化测试怎么玩?
Rome链分析
花了2晚,拿到了吴恩达@斯坦福大学的机器学习课程证书
Redis6-01nosql database
3. Package the bottom navigation tabbar
25K 入职腾讯的那天,我特么哭了
@The problem of cross database query invalidation caused by transactional annotation
Test d'automatisation de l'interface utilisateur télécharger manuellement le pilote du navigateur à partir de maintenant
随机推荐
Deflocculant aminoiodotide eye drops
Clickhouse materialized view
lds链接的 顺序问题
Get to know MySQL connection query for the first time
[understand series after reading] 6000 words teach you to realize interface automation from 0 to 1
C语言课设:影院售票管理系统
BDF application - topology sequence
Clickhouse物化视图
speed or tempo in classical music
De debugging (set the main thread as hidden debugging to destroy the debugging Channel & debugger detection)
已解决(sqlalchemy+pandas.read_sql)AttributeError: ‘Engine‘ object has no attribute ‘execution_options‘
[wp][入门]刷弱类型题目
【软件逆向-基础知识】分析方法、汇编指令体系结构
请问一下我的请求是条件更新,但在buffer中就被拦截了,这种情况我只能每次去flush缓存么?
How rem is used
Official announcement! The third cloud native programming challenge is officially launched!
The architect started to write a HelloWorld
Anti debugging (basic principles of debugger Design & NT NP and other anti debugging principles)
About the recent experience of writing questions
[wp]bmzclub writeup of several questions