当前位置:网站首页>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
边栏推荐
- Clickhouse synchronization MySQL (based on materialization engine)
- An elegant program for Euclid‘s algorithm
- C # use awaiter
- error Couldn‘t find a package. JSON file in "your path“
- 我就一写代码的,王总整天和我谈格局...
- 输入的查询SQL语句,是如何执行的?
- Redis source code analysis: redis cluster
- An elegant program for Euclid‘s algorithm
- [untitled]
- 线程基础知识
猜你喜欢
【刷题】BFS题目精选
[untitled]
CTF stegano practice stegano 9
Online sql to excel (xls/xlsx) tool
陇原战“疫“2021网络安全大赛 Web EasyJaba
[positioning in JS]
Soul 3: what is interface testing, how to play interface testing, and how to play interface automation testing?
[web Audit - source code disclosure] obtain source code methods and use tools
Installation of postman and postman interceptor
UE4 DMX和grandMA2 onPC 3.1.2.5的操作流程
随机推荐
3. Package the bottom navigation tabbar
English essential vocabulary 3400
An elegant program for Euclid‘s algorithm
Deep learning - LSTM Foundation
On the day 25K joined Tencent, I cried
[an Xun cup 2019] not file upload
How to use jedis of redis
[C language] address book - dynamic and static implementation
[untitled]
As soon as I write the code, President Wang talks with me about the pattern all day
输入的查询SQL语句,是如何执行的?
Clickhouse materialized view
汇编-入门
Summary of scene design
[wp]bmzclub几道题的writeup
lds链接的 顺序问题
Excuse me, my request is a condition update, but it is blocked in the buffer. In this case, can I only flush the cache every time?
已解决(sqlalchemy+pandas.read_sql)AttributeError: ‘Engine‘ object has no attribute ‘execution_options‘
MindFusion. Virtual Keyboard for WPF
speed or tempo in classical music