@tagplus/components 4.8.2 → 4.8.3
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/dist/tp.common.js +1 -1
- package/dist/tp.common.js.map +1 -1
- package/dist/tp.css +2 -2
- package/dist/tp.umd.js +1 -1
- package/dist/tp.umd.js.map +1 -1
- package/dist/tp.umd.min.js +1 -1
- package/dist/tp.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Money/Money.vue +1 -1
- package/src/components/Percent/Percent.vue +1 -1
- package/src/mixins/floatFormatter.js +8 -1
package/package.json
CHANGED
|
@@ -39,6 +39,13 @@ export default {
|
|
|
39
39
|
},
|
|
40
40
|
|
|
41
41
|
methods: {
|
|
42
|
+
inputPercent (evt) {
|
|
43
|
+
this.formattedValue = formatMoney(evt, true, this.locale, this.customPrecision)
|
|
44
|
+
const moneyFormatado = formatMoney(evt, false, this.locale, this.customPrecision)
|
|
45
|
+
|
|
46
|
+
this.$emit('input', moneyFormatado)
|
|
47
|
+
},
|
|
48
|
+
|
|
42
49
|
/**
|
|
43
50
|
* Converte o valor de entrada para float.
|
|
44
51
|
* @param {string} value - O valor de entrada.
|
|
@@ -68,7 +75,7 @@ export default {
|
|
|
68
75
|
* @param {string} value - O valor de entrada a ser manipulado.
|
|
69
76
|
* @emits input - Emite o valor numérico analisado.
|
|
70
77
|
*/
|
|
71
|
-
|
|
78
|
+
handleInputMoney (value) {
|
|
72
79
|
// remove todos os caracteres que não são números ou a primeira vírgula
|
|
73
80
|
const sanitized = value.replace(/[^\d,]/g, '')
|
|
74
81
|
const commaCount = (sanitized.match(/,/g) || []).length
|