evui 3.8.2 → 3.9.0

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/index.js CHANGED
@@ -2655,7 +2655,13 @@ function si(e, { min: t, max: n, step: i }) {
2655
2655
  return c;
2656
2656
  }
2657
2657
  function Th() {
2658
- const { props: e, emit: t } = Ie(), n = se(e.modelValue), i = se(e.modelValue), s = (c) => e.precision && (c || c === 0) ? Number(c).toFixed(e.precision) : c, o = (c) => {
2658
+ const { props: e, emit: t } = Ie(), n = se(e.modelValue), i = se(e.modelValue), s = (c) => {
2659
+ if (e.precision && (c || c === 0)) {
2660
+ const d = Number(c).toFixed(e.precision);
2661
+ return e.trimTrailingZero ? String(parseFloat(d)) : d;
2662
+ }
2663
+ return c;
2664
+ }, o = (c) => {
2659
2665
  let d = c;
2660
2666
  !c && c !== 0 ? d = e.stepStrictly ? i.value : null : isNaN(c) ? d = i.value : e.stepStrictly ? (e.min === -1 / 0 && (e.min = 0), d = si(c, {
2661
2667
  min: e.min,
@@ -2752,6 +2758,10 @@ const Oh = {
2752
2758
  type: Number,
2753
2759
  default: 0,
2754
2760
  validator: (e) => e >= 0 && e <= 100 && e === parseInt(e, 10)
2761
+ },
2762
+ trimTrailingZero: {
2763
+ type: Boolean,
2764
+ default: !1
2755
2765
  }
2756
2766
  },
2757
2767
  emits: ["update:modelValue", "focus", "blur", "input", "change"],
@@ -23552,7 +23562,7 @@ const ws = /* @__PURE__ */ we(p1, [["render", S1]]);
23552
23562
  ws.install = (e) => {
23553
23563
  e.component(ws.name, ws);
23554
23564
  };
23555
- const C1 = "3.8.1", w1 = [
23565
+ const C1 = "3.8.2", w1 = [
23556
23566
  qi,
23557
23567
  Ki,
23558
23568
  ai,