n20-common-lib 2.7.37 → 2.7.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.7.37",
3
+ "version": "2.7.40",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,5 +1,5 @@
1
1
  .n20-statis {
2
- font-size: 14px;
2
+ font-size: 12px;
3
3
  color: $--color-text-primary;
4
4
  .n20-primary {
5
5
  color: $--color-primary;
@@ -70,7 +70,7 @@ export default {
70
70
  },
71
71
  label: {
72
72
  type: String,
73
- default: '当页'
73
+ default: '已选'
74
74
  }
75
75
  },
76
76
  computed: {
@@ -1,13 +1,23 @@
1
1
  <template>
2
- <div class="n20-statis">
3
- <span v-if="title" class="p-r text-r stati-item-cell">{{ title }}</span
4
- ><span class="stati-type stati-item-cell">{{ type }}</span
5
- ><span class="n20-statis-division p-l-s p-r-s stati-item-cell">|</span
6
- ><span v-for="(item, i) in list" :key="i" class="p-r stati-item-cell"
7
- >{{ item.label }}: <span v-if="countLabel.includes(item.label)" class="n20-primary">{{ item.value }}</span
2
+ <div v-if="!isDbz" class="n20-statis">
3
+ <span v-if="title" class="p-r-ss text-r stati-item-cell">{{ title }}</span
4
+ ><span class="stati-type stati-item-cell p-r-ss">{{ type }}</span
5
+ ><span class="n20-statis-division p-r-ss stati-item-cell"></span
6
+ ><span v-for="(item, i) in list" :key="i" class="p-r-ss stati-item-cell"
7
+ >{{ item.label }}:<span v-if="countLabel.includes(item.label)" class="n20-primary">{{ item.value }}</span
8
8
  ><span v-else class="n20-primary">{{ item | numerify('0,0.00', showW, showU) }}</span></span
9
9
  >
10
10
  </div>
11
+ <div v-else class="n20-statis">
12
+ <span class="stati-type stati-item-cell">{{ type }}</span>
13
+ <span v-if="total !== null" class="stati-type stati-item-cell n20-primary">:{{ total }}</span>
14
+ <span v-if="title" class="text-r stati-item-cell p-l-ss">{{ title }}</span>
15
+ <span class="n20-statis-division p-r-ss stati-item-cell"></span>
16
+ <span v-for="(item, i) in list" :key="i" class="p-r-ss stati-item-cell"
17
+ >{{ item.label }}:<span v-if="countLabel.includes(item.label)" class="n20-primary">{{ item.value }}</span>
18
+ <span v-else class="n20-primary">{{ item | numerify('0,0.00', showW, showU) }}</span></span
19
+ >
20
+ </div>
11
21
  </template>
12
22
 
13
23
  <script>
@@ -55,6 +65,15 @@ export default {
55
65
  countLabel: {
56
66
  type: Array,
57
67
  default: () => ['笔数']
68
+ },
69
+ // 是否多币种
70
+ isDbz: {
71
+ type: Boolean,
72
+ default: false
73
+ },
74
+ total: {
75
+ type: [Number, Object],
76
+ default: null
58
77
  }
59
78
  }
60
79
  }
@@ -29,6 +29,8 @@
29
29
  :list="item.list"
30
30
  :count-label="countLabel"
31
31
  v-bind="$attrs"
32
+ :is-dbz="true"
33
+ :total="total"
32
34
  />
33
35
  <i class="n20-icon-nianfenqiehuan-youce" :class="show ? 'rotating-icon-show' : 'rotating-icon'"></i>
34
36
  </div>
@@ -63,6 +65,10 @@ export default {
63
65
  countLabel: {
64
66
  type: Array,
65
67
  default: undefined
68
+ },
69
+ total: {
70
+ type: [Number, Object],
71
+ default: null
66
72
  }
67
73
  },
68
74
  data() {