components.scss 620 B

1234567891011121314151617181920212223
  1. @mixin flex($direction: row) {
  2. /* #ifndef APP-NVUE */
  3. display: flex;
  4. /* #endif */
  5. flex-direction: $direction;
  6. }
  7. /* #ifndef APP-NVUE */
  8. // 由于uvui是基于nvue环境进行开发的,此环境中普通元素默认为flex-direction: column;
  9. // 所以在非nvue中,需要对元素进行重置为flex-direction: column; 否则可能会表现异常
  10. $uvui-nvue-style: true !default;
  11. @if $uvui-nvue-style == true {
  12. view, scroll-view, swiper-item {
  13. display: flex;
  14. flex-direction: column;
  15. flex-shrink: 0;
  16. flex-grow: 0;
  17. flex-basis: auto;
  18. align-items: stretch;
  19. align-content: flex-start;
  20. }
  21. }
  22. /* #endif */