ShowMoney.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <div class="show_money">
  3. <div class="content_box">
  4. <div v-for="(title, index) in title" :key="index" class="content">
  5. <span class="name"> {{ title }} :</span>
  6. <span class="value">
  7. {{ content[index] }}
  8. </span>
  9. </div>
  10. </div>
  11. </div>
  12. </template>
  13. <script>
  14. export default {
  15. name: "",
  16. components: {},
  17. data() {
  18. return {};
  19. },
  20. props: {
  21. // 标题
  22. title: {
  23. type: Array,
  24. default: function () {
  25. return [];
  26. },
  27. },
  28. // 内容
  29. content: {
  30. type: Array,
  31. default: function () {
  32. return [];
  33. },
  34. },
  35. },
  36. computed: {},
  37. watch: {},
  38. created() {},
  39. mounted() {},
  40. methods: {},
  41. };
  42. </script>
  43. <style lang='less' scoped>
  44. .show_money {
  45. width: 35%;
  46. padding: 20px;
  47. margin-right: 20px;
  48. box-sizing: border-box;
  49. float: left;
  50. background-color: #fff;
  51. border-top: 1px solid #2196f3;
  52. .content_box {
  53. .content {
  54. padding: 0 10px;
  55. height: 35px;
  56. line-height: 35px;
  57. margin-top: 10px;
  58. text-align: left;
  59. background-color: #f5f5f5;
  60. color: #3d3b3b;
  61. border-radius: 2px;
  62. &:last-child {
  63. height: 200px;
  64. text-align: center;
  65. background-color: #f2f2f2;
  66. overflow: hidden;
  67. .name {
  68. display: block;
  69. margin-top: 70px;
  70. }
  71. .value {
  72. display: block;
  73. }
  74. }
  75. }
  76. }
  77. }
  78. </style>