vue项目引入外部less、scss

 引入less

<style lang="less" scoped>
// @import "../assets/styles/fullscreenDialog.less";
@import "~@/assets/styles/fullscreenDialog.less";
::v-deep .el-dialog__header {
    background-color: #048fd2;
}
::v-deep .el-dialog__body {
    padding: 10px 10px;
}
::v-deep .el-dialog__title {
    font-size: 25px;
    color: white;
}
.collapseCSS {
    font-size: 25px;
    padding: 0 1%;
}
.el-collapse-item /deep/ .el-collapse-item__header {
    background-color: #cdd3db;
    margin-bottom: 1%;
}
</style>

上一篇:在使用uni-app中mygoods引用的时候样式不起作用的解决办法


下一篇:Vite当中的scss配置踩坑