demo1.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <m-row>
  3. <m-col><div class="bg-purple-dark col-box">24</div></m-col>
  4. </m-row>
  5. <m-row>
  6. <m-col :span="12"><div class="col-box-2 col-box">12</div></m-col>
  7. <m-col :span="12"><div class="col-box-1 col-box">12</div></m-col>
  8. </m-row>
  9. <m-row>
  10. <m-col :span="8"><div class="col-box-1 col-box">8</div></m-col>
  11. <m-col :span="8"><div class="col-box-2 col-box">8</div></m-col>
  12. <m-col :span="8"><div class="col-box-1 col-box">8</div></m-col>
  13. </m-row>
  14. <m-row>
  15. <m-col :span="6"><div class="col-box-2 col-box">6</div></m-col>
  16. <m-col :span="6"><div class="col-box-1 col-box">6</div></m-col>
  17. <m-col :span="6"><div class="col-box-2 col-box">6</div></m-col>
  18. <m-col :span="6"><div class="col-box-1 col-box">6</div></m-col>
  19. </m-row>
  20. </template>
  21. <style scoped>
  22. .bg-purple-dark{
  23. background: #99a9bf;
  24. }
  25. .col-box {
  26. height: 35px;
  27. line-height: 35px;
  28. margin-bottom: 10px;
  29. text-align: center;
  30. }
  31. .col-box-1 {
  32. background-color: #d3dce6;
  33. color: #333;
  34. }
  35. .col-box-2 {
  36. background-color: #e5e9f2;
  37. color: #333;
  38. }
  39. </style>