Fixed #1509 - Add getFormatter method to InputNumber

pull/1527/head
mertsincan 2021-09-07 10:06:38 +03:00
parent 888a187845
commit b17ed7924e
1 changed files with 4 additions and 1 deletions

View File

@ -477,7 +477,7 @@ export default {
event.preventDefault();
if (selectionStart === selectionEnd) {
let deleteChar = inputValue.charAt(selectionStart);
const deleteChar = inputValue.charAt(selectionStart);
const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
if (this.isNumeralChar(deleteChar)) {
@ -938,6 +938,9 @@ export default {
formattedValue() {
const val = !this.modelValue && !this.allowEmpty ? 0 : this.modelValue;
return this.formatValue(val);
},
getFormatter() {
return this.numberFormat;
}
},
components: {