@eturnity/eturnity_reusable_components 1.1.93 → 1.1.94
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
|
@@ -267,6 +267,10 @@ export default {
|
|
|
267
267
|
required: false,
|
|
268
268
|
default: null,
|
|
269
269
|
},
|
|
270
|
+
numberToStringEnabled: {
|
|
271
|
+
required: false,
|
|
272
|
+
default: true
|
|
273
|
+
}
|
|
270
274
|
},
|
|
271
275
|
methods: {
|
|
272
276
|
onChangeHandler(event) {
|
|
@@ -346,11 +350,13 @@ export default {
|
|
|
346
350
|
return input + " " + unit
|
|
347
351
|
} else if (!adjustedMinValue && adjustedMinValue !== 0) {
|
|
348
352
|
return ""
|
|
349
|
-
} else {
|
|
353
|
+
} else if (this.numberToStringEnabled) {
|
|
350
354
|
return numberToString({
|
|
351
355
|
value: adjustedMinValue,
|
|
352
356
|
numberPrecision: this.numberPrecision,
|
|
353
357
|
})
|
|
358
|
+
} else {
|
|
359
|
+
return adjustedMinValue
|
|
354
360
|
}
|
|
355
361
|
},
|
|
356
362
|
},
|