qingyiay
2023-08-28 82a7eba143cc761b303b99889193f7aad2dc9d08
1
2
3
4
5
6
7
8
// 通过scss的mixin功能,把原来需要写4行的css,变成一行
// 目的是保持代码干净整洁,不至于在nvue下,到处都要写display:flex的条件编译
@mixin flex($direction: row) {
    /* #ifndef APP-NVUE */
    display: flex;
    /* #endif */
    flex-direction: $direction;
}