@nixweb/nixloc-ui 0.0.164 → 0.0.166

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": "@nixweb/nixloc-ui",
3
- "version": "0.0.164",
3
+ "version": "0.0.166",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -18,11 +18,17 @@ export default {
18
18
  },
19
19
  methods: {
20
20
  somaGrupo(grupo) {
21
- let total = "";
22
- this.d.itensLocacao.forEach((x) => {
23
- if (x.grupo === grupo) return (total = x.valorTotal);
21
+ let sum = [];
22
+ this.d.itensLocacao.forEach((item) => {
23
+ if (item.grupo === grupo) {
24
+ console.log(item);
25
+ sum.push(item.totalValue);
26
+ }
24
27
  });
25
- return total;
28
+ return sum.reduce((a, b) => a + b, 0);
29
+ },
30
+ convertToNumber(value) {
31
+ return parseFloat(value.replace("R$", "").replace(",", "."));
26
32
  },
27
33
  },
28
34
  computed: {
@@ -172,6 +172,10 @@ export default {
172
172
  padding-top: 10px;
173
173
  }
174
174
 
175
+ .center-vertical-bank {
176
+ padding-top: 6px;
177
+ }
178
+
175
179
  .badge-center {
176
180
  margin: auto !important;
177
181
  }