vueless 0.0.765 → 0.0.766

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": "vueless",
3
- "version": "0.0.765",
3
+ "version": "0.0.766",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -105,13 +105,7 @@ export function getFormattedValue(value: string | number, options: FormatOptions
105
105
  if (part.type === "decimal") part.value = decimalSeparator;
106
106
 
107
107
  if (part.type === "fraction") {
108
- const fraction = rawValue.split(rawDecimalMark).at(-1) || "";
109
- const formattedFraction = fraction
110
- .split("")
111
- .slice(actualMinFractionDigit, maxFractionDigits)
112
- .join("");
113
-
114
- part.value = formattedFraction;
108
+ part.value = part.value.padEnd(maxFractionDigits, "0");
115
109
  }
116
110
 
117
111
  return part;