jinjian1.1/uni_modules/uview-ui/libs/css/mixin.scss

9 lines
294 B
SCSS
Raw Permalink Normal View History

2024-11-05 16:29:09 +08:00
// 通过scss的mixin功能把原来需要写4行的css变成一行
// 目的是保持代码干净整洁不至于在nvue下到处都要写display:flex的条件编译
@mixin flex($direction: row) {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: $direction;
}