Blame view

src/components/base/AccountNum.vue 1.15 KB
f9b345a2   liuqimichale   全局filters
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
  <template>
      <div class="total-wrap">
          <span>总计</span>
          <div class="total-main">
              <div class="eleNumBg" v-for="item in total" :key="item">
                  {{item}}
              </div>
          </div>
      </div>
  </template>
  
  <script>
  import { formaterTotal } from '../../utils/formate'
  export default {
    name: 'AccountNum',
    data(){
      return {
        total: formaterTotal('219706'),
        msg:'123'
      }
    }
  }
  </script>
  
  <style scoped lang="scss">
      .total-wrap{
          height: 30%;
          display: flex;
          align-items: center;
          .total-main{
              margin-left: 10px;
              padding: 5px 5px 5px 0;
              background: url("../../images/content/numBorder.svg") no-repeat;
              background-size: 100% 100%;
          }
          .eleNumBg{
              width: 20px;
              height: 30px;
              display: inline-block;
              margin-left: 5px;
              line-height: 30px;
              font-size: 22px;
              font-weight: 600;
              text-align: center;
              background: url("../../images/content/numBg.svg") no-repeat;
              background-size: 100% 100%;
          }
      }
  </style>