index.vue 778 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <view class="content">
  3. <view class="swiper">111</view>
  4. <view class="gg">
  5. <view class="gg-list" v-for="item in 10">
  6. 11
  7. </view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {
  15. }
  16. },
  17. onLoad() {
  18. },
  19. methods: {
  20. }
  21. }
  22. </script>
  23. <style lang="scss">
  24. .content{
  25. display: grid;
  26. padding: 20rpx 30rpx;
  27. grid-template-rows: 600rpx 100rpx;
  28. // grid-template-columns: 700rpx auto;
  29. .gg{
  30. background-color: red;
  31. line-height: 100rpx;
  32. grid-template-columns: repeat(auto-fill,100rpx);
  33. grid-gap: 20rpx 20rpx;
  34. .gg-list{
  35. padding: 30rpx;
  36. background-color: #000;
  37. color: #fff;
  38. }
  39. }
  40. .swiper{
  41. background-color: #333;
  42. padding: 20rpx;
  43. }
  44. view{
  45. display: inline-grid;
  46. }
  47. }
  48. </style>