uni-list.vue 723 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <view class="uni-list">
  3. <slot/>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. name: 'UniList'
  9. }
  10. </script>
  11. <style lang="scss">
  12. .uni-list {
  13. background-color: $uni-bg-color;
  14. position: relative;
  15. width: 100%;
  16. display: flex;
  17. flex-direction: column;
  18. &:after {
  19. position: absolute;
  20. z-index: 10;
  21. right: 0;
  22. bottom: 0;
  23. left: 0;
  24. height: 1px;
  25. content: '';
  26. -webkit-transform: scaleY(0.5);
  27. transform: scaleY(0.5);
  28. background-color: #060818;
  29. }
  30. &:before {
  31. position: absolute;
  32. z-index: 10;
  33. right: 0;
  34. top: 0;
  35. left: 0;
  36. height: 1px;
  37. content: '';
  38. -webkit-transform: scaleY(0.5);
  39. transform: scaleY(0.5);
  40. background-color: #060818;
  41. }
  42. }
  43. </style>