@fox-js/foxui-pc 4.1.1-0 → 4.1.1-1

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.esm.js CHANGED
@@ -5,7 +5,7 @@ import { ElAffix as fp, ElAlert as dp, ElAnchor as hp, ElAnchorLink as gp, ElAsi
5
5
  import { ArrowLeft as Ja, ArrowUp as En, Download as Qa, RefreshLeft as eo, Loading as Fs, Setting as Ds, CircleClose as As, Close as to, ArrowRight as Os } from "@element-plus/icons-vue";
6
6
  import { useFoxI18n as Je } from "@fox-js/i18n";
7
7
  /*!
8
- * @fox-js/foxui-desktop v4.0.0 Thu Aug 22 2024 15:31:13 GMT+0800 (中国标准时间)
8
+ * @fox-js/foxui-desktop v4.0.0 Thu Aug 29 2024 18:59:40 GMT+0800 (中国标准时间)
9
9
  */
10
10
  const un = window, Vs = typeof window < "u";
11
11
  function Ps() {
@@ -20,7 +20,7 @@ function am(e) {
20
20
  }
21
21
  const no = Ps();
22
22
  /*!
23
- * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
23
+ * @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
24
24
  */
25
25
  function pn(e, t = "0") {
26
26
  let l = 0, n = -1;
@@ -79,8 +79,7 @@ function an(e, t = 0, l = Fe.HALF_EVEN) {
79
79
  if (a[1]) {
80
80
  if (a[1].length < t)
81
81
  return (n ? "-" : "") + o + "." + a[1] + new Array(t - a[1].length + 1).join("0");
82
- } else
83
- return (n ? "-" : "") + o + "." + new Array(t + 1).join("0");
82
+ } else return (n ? "-" : "") + o + "." + new Array(t + 1).join("0");
84
83
  s = a[1].substring(0, t);
85
84
  let r = a[1].substring(t);
86
85
  return r && Il(r, s, n, l) && (s = _n(s), s.length > t) ? (n ? "-" : "") + _n(o, parseInt(s[0])) + "." + s.substring(1) : (n ? "-" : "") + o + "." + s;
@@ -167,8 +166,7 @@ function el(e, t, l = 8) {
167
166
  e = e.replace(".", "");
168
167
  let c = e.length - f + a;
169
168
  e = Me(e.substring(0, c) + "." + e.substring(c));
170
- } else
171
- a == f && (e = Me(e.replace(".", "")));
169
+ } else a == f && (e = Me(e.replace(".", "")));
172
170
  }
173
171
  let o = 0, s = t.length, r = "", i = e.indexOf(".") > -1 && e.indexOf(".") < s ? e.substring(0, s + 1) : e.substring(0, s);
174
172
  if (e = e.indexOf(".") > -1 && e.indexOf(".") < s ? e.substring(s + 1) : e.substring(s), i.indexOf(".") > -1) {
@@ -220,11 +218,9 @@ class ve {
220
218
  static RoundingModes = Fe;
221
219
  static validate(t) {
222
220
  if (t) {
223
- if (t = t.toString(), isNaN(t))
224
- throw Error("Parameter is not a number: " + t);
221
+ if (t = t.toString(), isNaN(t)) throw Error("Parameter is not a number: " + t);
225
222
  t[0] == "+" && (t = t.substring(1));
226
- } else
227
- t = "0";
223
+ } else t = "0";
228
224
  if (t.startsWith(".") ? t = "0" + t : t.startsWith("-.") && (t = "-0" + t.substr(1)), /e/i.test(t)) {
229
225
  let [l, n] = t.split(/[eE]/);
230
226
  l = Me(l);
@@ -257,13 +253,11 @@ class ve {
257
253
  return ve.getPrettyValue(this.value, t, l);
258
254
  }
259
255
  static round(t, l = 0, n = Fe.HALF_EVEN) {
260
- if (t = ve.validate(t), isNaN(l))
261
- throw Error("Precision is not a number: " + l);
256
+ if (t = ve.validate(t), isNaN(l)) throw Error("Precision is not a number: " + l);
262
257
  return an(t, l, n);
263
258
  }
264
259
  round(t = 0, l = Fe.HALF_EVEN) {
265
- if (isNaN(t))
266
- throw Error("Precision is not a number: " + t);
260
+ if (isNaN(t)) throw Error("Precision is not a number: " + t);
267
261
  return new ve(an(this.value, t, l));
268
262
  }
269
263
  static floor(t) {