index.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <template>
  2. <div class="rightSpot">
  3. <div class="title">
  4. <!-- <a-icon type="gold"/> -->
  5. <div class="tltLeft">
  6. <span class="blue">铜杆(吨)</span>
  7. <span class="green ml10">正常</span>
  8. </div>
  9. <div class="tltBtns">
  10. <a-button class="blueBtn">修改</a-button>
  11. <a-button class="redBtn">停用</a-button>
  12. </div>
  13. </div>
  14. <div class="spotCont">
  15. <a-collapse class="spotCollapse" :bordered="false">
  16. <template #expandIcon>
  17. <!-- <svg class="icon svg-icon" aria-hidden="true">
  18. <use xlink:href="#icon-shouqi1"></use>
  19. </svg> -->
  20. </template>
  21. <a-collapse-panel key="1" header="This is panel header 1">
  22. <a-collapse default-active-key="4">
  23. <template #expandIcon>
  24. <!-- <svg class="icon svg-icon" aria-hidden="true">
  25. <use xlink:href="#icon-shouqi1"></use>
  26. </svg> -->
  27. </template>
  28. <a-collapse-panel key="4" header="This is panel nest panel">
  29. <p>A dog is a type of domesticated animal.Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world</p>
  30. </a-collapse-panel>
  31. </a-collapse>
  32. </a-collapse-panel>
  33. <a-collapse-panel key="2" header="This is panel header 2" :disabled="false">
  34. <p>A dog is a type of domesticated animal.Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world</p>
  35. </a-collapse-panel>
  36. <a-collapse-panel key="3" header="This is panel header 3">
  37. <p>A dog is a type of domesticated animal.Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world</p>
  38. </a-collapse-panel>
  39. </a-collapse>
  40. </div>
  41. </div>
  42. </template>
  43. <script lang="ts">
  44. import { defineComponent, ref, PropType } from 'vue';
  45. import APP from '@/services';
  46. export default defineComponent({
  47. name: 'rightSpot',
  48. props: {
  49. },
  50. components: {},
  51. setup(props, context) {
  52. return {
  53. };
  54. },
  55. });
  56. </script>
  57. <style lang="less">
  58. .rightSpot {
  59. width: 100%;
  60. height: 100%;
  61. padding: 10px 12px;
  62. .flex;
  63. flex-direction: column;
  64. .title {
  65. width: 100%;
  66. height: 35px;
  67. .flex;
  68. justify-content: space-between;
  69. div {
  70. align-self: center;
  71. align-items: center;
  72. }
  73. .tltLeft {
  74. font-size: 16px;
  75. }
  76. .tltBtns {
  77. .ant-btn+.ant-btn {
  78. margin-left: 10px;
  79. }
  80. }
  81. }
  82. .spotCont {
  83. width: 100%;
  84. padding: 0 30px;
  85. }
  86. }
  87. .blue {
  88. color: @m-blue0;
  89. }
  90. .green {
  91. color: @m-green0;
  92. }
  93. .ml10 {
  94. margin-left: 10px;
  95. }
  96. .blueBtn {
  97. width: 80px;
  98. height: 26px;
  99. text-align: center;
  100. background: linear-gradient(0deg, @m-blue2, @m-blue0);
  101. box-shadow: -1px 0px 0px 0px #121618;
  102. .rounded-corners(3px);
  103. border: 0;
  104. color: @m-white0;
  105. font-size: 14px;
  106. &:hover {
  107. background: linear-gradient(0deg, @m-blue2-hover, @m-blue0-hover);
  108. color: @m-white0-hover;
  109. }
  110. }
  111. .redBtn {
  112. width: 80px;
  113. height: 26px;
  114. background: linear-gradient(0deg, @m-red0, @m-red1);
  115. .rounded-corners(3px);
  116. border: 0;
  117. color: @m-white0;
  118. font-size: 14px;
  119. &:hover {
  120. background: linear-gradient(0deg, @m-red0-hover, @m-red1-hover);
  121. color: @m-white0-hover;
  122. }
  123. }
  124. .ant-collapse.spotCollapse.ant-collapse-borderless {
  125. margin-top: 10px;
  126. background-color: transparent;
  127. .ant-collapse-item {
  128. border-bottom: 0;
  129. .ant-collapse-header {
  130. color: @m-grey17;
  131. font-size: 14px;
  132. }
  133. .ant-collapse-content {
  134. }
  135. }
  136. }
  137. </style>;