最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

sass 中使用 /deep/ 修改 elementUI 組件樣式報(bào)錯(cuò)的解決方案

 更新時(shí)間:2024年02月19日 10:00:47   作者:程序員iteng  
這篇文章主要介紹了sass 中使用 /deep/ 修改 elementUI 組件樣式報(bào)錯(cuò)的解決方案,嘗試用 ::v-deep 替換 /deep/ ,成功解決了問(wèn)題,感興趣的朋友跟隨小編一起看看吧

element plus 想要覆蓋組件的樣式,想到了/deep/樣式穿透,但樣式一直不生效,代碼如下:

<style scoped lang="sass">
.main_wrapper{
	padding: 0 53px
	position: relative
	top: -20px
}
>>> .el-tabs__item{
    height: 30px
    line-height: 30px
    color: #fff!important
}
</style>

上邊的寫法不會(huì)報(bào)錯(cuò),但是也不會(huì)生效。改用下面的方式:

<style scoped lang="sass">
.main_wrapper{
	padding: 0 53px
	position: relative
	top: -20px
}
/deep/ .el-tabs__item{
    height: 30px
    line-height: 30px
    color: #fff!important
}

這樣就報(bào)錯(cuò)了,SassError: expected selector

解決方法:

嘗試用 ::v-deep 替換 /deep/ ,成功解決了問(wèn)題。

<style scoped lang="sass">
.main_wrapper{
	padding: 0 53px
	position: relative
	top: -20px
}
::v-deep(.el-tabs__item){
    height: 30px
    line-height: 30px
    color: #fff!important
}

到此這篇關(guān)于sass 中使用 /deep/ 修改 elementUI 組件樣式報(bào)錯(cuò)的文章就介紹到這了,更多相關(guān)sass 使用 /deep/ 報(bào)錯(cuò)內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評(píng)論

阳谷县| 商水县| 柞水县| 东兰县| 玉龙| 长兴县| 松江区| 牡丹江市| 通化市| 莱芜市| 宜兰县| 麦盖提县| 建湖县| 文山县| 高阳县| 鄂温| 区。| 开化县| 万荣县| 安新县| 武邑县| 寿阳县| 绥德县| 贵港市| 博湖县| 唐河县| 黄浦区| 青海省| 彩票| 昭平县| 融水| 广州市| 民丰县| 平湖市| 砀山县| 清镇市| 大宁县| 嘉荫县| 疏附县| 普陀区| 凌海市|