statistics.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <template>
  2. <div class="statistics">
  3. <div class="echartTitle">
  4. <div class="block-title">{{ title }}</div>
  5. </div>
  6. <div class="cityList" :style="{ height: height + 'px' }">
  7. <div class="listCon" v-for="(item,i) in cityList" :key="i">
  8. <div class="listArea">
  9. <span>天涯区</span>
  10. <span>48.73km²</span>
  11. </div>
  12. <div class="listItem">
  13. <div class="itemBg"></div>
  14. </div>
  15. <div class="listNum">
  16. <span>图斑数152个</span>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. </template>
  22. <script>
  23. export default {
  24. props: {
  25. title: {
  26. type: String,
  27. },
  28. height: {
  29. type: Number,
  30. },
  31. cityList: {
  32. type: Array,
  33. },
  34. },
  35. components: {},
  36. data() {
  37. return {};
  38. },
  39. computed: {},
  40. mounted() {},
  41. methods: {},
  42. watch: {},
  43. watch: {},
  44. beforeDestroy() {},
  45. };
  46. </script>
  47. <style lang="less" scoped>
  48. .statistics {
  49. .cityList {
  50. width: 100%;
  51. // background: rgba(255, 192, 203, 0.445);
  52. overflow: hidden;
  53. overflow-y: auto;
  54. .listCon {
  55. width: 100%;
  56. height: 55px;
  57. // background: rgba(152, 251, 152, 0.685);
  58. margin: 5px 0px;
  59. .listArea{
  60. width: 365px;
  61. display: flex;
  62. justify-content: space-between;
  63. }
  64. .listItem {
  65. width: 365px;
  66. height: 10px;
  67. background: inherit;
  68. background-color: rgba(242, 242, 242, 0.43921568627451);
  69. border: none;
  70. border-radius: 85px;
  71. box-shadow: none;
  72. margin-bottom: 3px;
  73. .itemBg {
  74. width: 233px;
  75. height: 100%;
  76. background-color: rgba(30, 159, 255, 1);
  77. border: none;
  78. border-radius: 85px;
  79. }
  80. }
  81. .listNum {
  82. font-size: 11px;
  83. color: #fff;
  84. text-align: left;
  85. }
  86. }
  87. }
  88. }
  89. </style>