schangxiang@126.com
2024-09-04 4c0f8b9123f9627be73fff05c2062cffeee42cb7
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;
}