ss-component-new 1.3.735 → 1.3.736

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.
@@ -392,7 +392,39 @@ const Z0 = new ET(), PT = () => ({
392
392
  setImmediate: (r, ...t) => setTimeout(r, 0, ...t),
393
393
  clearImmediate: clearTimeout
394
394
  }
395
- }), OT = AT(r0), { methodApi: zT } = h0(OT), VT = async (r, t) => {
395
+ }), OT = (r, t) => {
396
+ var o, s;
397
+ let e;
398
+ r.replaceAll(" ", `\r
399
+ `).replaceAll(`
400
+ `, `\r
401
+ `).includes(`\r
402
+ `) ? e = r.replaceAll(`
403
+ `, `\r
404
+ `).replaceAll(" ", `\r
405
+ `).split(`\r
406
+ `).filter((l) => l.trim() !== "") : e = r.replaceAll(" ", `\r
407
+ `).split(`
408
+ `).filter((l) => l.trim() !== ""), e = e == null ? void 0 : e.map((l) => (l = l == null ? void 0 : l.replaceAll("\r", ""), l));
409
+ const a = [];
410
+ let i = "", n = 0;
411
+ for (const l of e) {
412
+ n = n + 1;
413
+ let c = l.trim(), u = i ? i + c : c, h = c.includes("{") || c.includes("[") || c.includes("【") || c.includes("(") || c.includes("(") || c.includes("=") || i && (i.includes("{") || i.includes("[") || i.includes("【") || i.includes("(") || i.includes("(") || i.includes("=")), v = u.split("{").length - 1 === u.split("}").length - 1 && u.split("【").length - 1 === u.split("】").length - 1 && u.split("[").length - 1 === u.split("]").length - 1 && u.split("(").length - 1 === u.split(")").length - 1 && u.split("(").length - 1 === u.split(")").length - 1, f = u[u.length - 1], p = (s = (o = e == null ? void 0 : e[n]) == null ? void 0 : o.trim()) == null ? void 0 : s[0], d = t == null ? void 0 : t.find((m) => m === f), g = t == null ? void 0 : t.find((m) => m === p);
414
+ h ? v && !d && !g ? (a.push(u.replace(/\/\*[\s\S]*?\*\//g, "")), i = "") : i = u : !(t != null && t.find((m) => m === c[c.length - 1])) && !g ? a.push(c.replace(/\/\*[\s\S]*?\*\//g, "")) : i = c;
415
+ }
416
+ return (i == null ? void 0 : i.length) > 0 && a.push(i.replace(/\/\*[\s\S]*?\*\//g, "")), a;
417
+ }, Le = (r, t) => {
418
+ var o, s, l, c;
419
+ let e = r;
420
+ if (e === null || typeof e != "string" && !Array.isArray(e))
421
+ return [];
422
+ const a = [];
423
+ let i = "", n = 0;
424
+ for (const u of e)
425
+ n++, u.includes("{") || i.includes("{") || u.includes("[") || i.includes("[") || u.includes("【") || i.includes("【") || u.includes("(") || i.includes("(") || u.includes("(") || i.includes("(") ? (i += u.trim(), i.split("{").length - 1 === i.split("}").length - 1 && i.split("【").length - 1 === i.split("】").length - 1 && i.split("[").length - 1 === i.split("]").length - 1 && i.split("(").length - 1 === i.split(")").length - 1 && i.split("(").length - 1 === i.split(")").length - 1 && i.split("/*").length - 1 === i.split("*/").length - 1 && i[i.length - 1] === t && (i.split("'").length % 2 === 1 || ((o = i.split("'")) == null ? void 0 : o.length) === 1) && (i.split('"').length % 2 === 1 || ((s = i.split('"')) == null ? void 0 : s.length) === 1) ? (a.push(i.replace(/\/\*[\s\S]*?\*\//g, "")), i = "") : n === (r == null ? void 0 : r.length) && (a.push(i.replace(/\/\*[\s\S]*?\*\//g, "")), i = "")) : (i += u.trim(), (i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) === t && (i.split("'").length % 2 === 1 || ((l = i.split("'")) == null ? void 0 : l.length) === 1) && (i.split('"').length % 2 === 1 || ((c = i.split('"')) == null ? void 0 : c.length) === 1) && (a.push(i.replace(/\/\*[\s\S]*?\*\//g, "")), i = ""));
426
+ return (i == null ? void 0 : i.length) !== 0 && a.push(i.replace(/\/\*[\s\S]*?\*\//g, "")), a;
427
+ }, zs = (r, t) => JSON.stringify(r) === JSON.stringify(t), zT = AT(r0), { methodApi: VT } = h0(zT), kT = async (r, t) => {
396
428
  let e = r, a = t, i = a == null ? void 0 : a.filter((o) => {
397
429
  var s;
398
430
  return ((s = o == null ? void 0 : o.calculators) == null ? void 0 : s.length) > 0;
@@ -401,12 +433,12 @@ const Z0 = new ET(), PT = () => ({
401
433
  let s = (l = o == null ? void 0 : o.calculators) == null ? void 0 : l.map(async (c) => {
402
434
  var h, v, f;
403
435
  let u = c == null ? void 0 : c.functionName;
404
- u = (h = u == null ? void 0 : u.split(".")) == null ? void 0 : h[0], u = zT.value + "/" + u + "/" + ((f = (v = c == null ? void 0 : c.functionName) == null ? void 0 : v.split(".")) == null ? void 0 : f[1]) + ".js", e = await kT(u, e, c == null ? void 0 : c.functionRelatedWords, o == null ? void 0 : o.prop);
436
+ u = (h = u == null ? void 0 : u.split(".")) == null ? void 0 : h[0], u = VT.value + "/" + u + "/" + ((f = (v = c == null ? void 0 : c.functionName) == null ? void 0 : v.split(".")) == null ? void 0 : f[1]) + ".js", e = await NT(u, e, c == null ? void 0 : c.functionRelatedWords, o == null ? void 0 : o.prop);
405
437
  });
406
438
  await Promise.all(s);
407
439
  });
408
440
  return await Promise.all(n), e;
409
- }, kT = async (r, t, e, a) => {
441
+ }, NT = async (r, t, e, a) => {
410
442
  const i = await fetch(r);
411
443
  if (!i.ok) throw new Error(`加载失败: ${i.status}`);
412
444
  const n = await i.text(), o = LT(n);
@@ -475,57 +507,40 @@ const Z0 = new ET(), PT = () => ({
475
507
  return t == null || t.forEach((y) => {
476
508
  let _ = y, w = [];
477
509
  e == null || e.forEach((x) => {
478
- w.push(y == null ? void 0 : y[x]);
510
+ if (x != null && x.includes('"') || x != null && x.includes("'"))
511
+ w.push(x == null ? void 0 : x.replaceAll('"', "'"));
512
+ else if ((x == null ? void 0 : x[0]) === "{") {
513
+ let b = {}, D = x == null ? void 0 : x.slice(1, (x == null ? void 0 : x.length) - 1);
514
+ D = Le(D, ","), D == null || D.forEach((T) => {
515
+ (T == null ? void 0 : T[(T == null ? void 0 : T.length) - 1]) === "," && (T = T == null ? void 0 : T.slice(0, (T == null ? void 0 : T.length) - 1)), b[T] = y == null ? void 0 : y[T];
516
+ }), w.push(b);
517
+ } else
518
+ w.push(y == null ? void 0 : y[x]);
479
519
  });
480
520
  let S = g(...w ?? []);
481
521
  _[a] = S.toString(), m.push(_);
482
522
  }), m;
483
- }, NT = async (r) => {
523
+ }, RT = async (r) => {
484
524
  let t = [], e = [], a = [], i = !1;
485
- return t = r == null ? void 0 : r.columns, t = [
525
+ if (t = r == null ? void 0 : r.columns, t = [
486
526
  ...t
487
527
  ], e = nr(r == null ? void 0 : r.data), t != null && t.some((n) => {
488
528
  var o;
489
529
  return ((o = n == null ? void 0 : n.calculators) == null ? void 0 : o.length) > 0;
490
- }) && (e = await VT(e, t), i = !0), {
530
+ })) {
531
+ try {
532
+ e = await kT(e, t);
533
+ } catch {
534
+ }
535
+ i = !0;
536
+ }
537
+ return {
491
538
  columns: t,
492
539
  tableData: e,
493
540
  topButtons: a,
494
541
  isFetch: i
495
542
  };
496
- }, RT = (r, t) => {
497
- var o, s;
498
- let e;
499
- r.replaceAll(" ", `\r
500
- `).replaceAll(`
501
- `, `\r
502
- `).includes(`\r
503
- `) ? e = r.replaceAll(`
504
- `, `\r
505
- `).replaceAll(" ", `\r
506
- `).split(`\r
507
- `).filter((l) => l.trim() !== "") : e = r.replaceAll(" ", `\r
508
- `).split(`
509
- `).filter((l) => l.trim() !== ""), e = e == null ? void 0 : e.map((l) => (l = l == null ? void 0 : l.replaceAll("\r", ""), l));
510
- const a = [];
511
- let i = "", n = 0;
512
- for (const l of e) {
513
- n = n + 1;
514
- let c = l.trim(), u = i ? i + c : c, h = c.includes("{") || c.includes("[") || c.includes("【") || c.includes("(") || c.includes("(") || c.includes("=") || i && (i.includes("{") || i.includes("[") || i.includes("【") || i.includes("(") || i.includes("(") || i.includes("=")), v = u.split("{").length - 1 === u.split("}").length - 1 && u.split("【").length - 1 === u.split("】").length - 1 && u.split("[").length - 1 === u.split("]").length - 1 && u.split("(").length - 1 === u.split(")").length - 1 && u.split("(").length - 1 === u.split(")").length - 1, f = u[u.length - 1], p = (s = (o = e == null ? void 0 : e[n]) == null ? void 0 : o.trim()) == null ? void 0 : s[0], d = t == null ? void 0 : t.find((m) => m === f), g = t == null ? void 0 : t.find((m) => m === p);
515
- h ? v && !d && !g ? (a.push(u.replace(/\/\*[\s\S]*?\*\//g, "")), i = "") : i = u : !(t != null && t.find((m) => m === c[c.length - 1])) && !g ? a.push(c.replace(/\/\*[\s\S]*?\*\//g, "")) : i = c;
516
- }
517
- return (i == null ? void 0 : i.length) > 0 && a.push(i.replace(/\/\*[\s\S]*?\*\//g, "")), a;
518
- }, Le = (r, t) => {
519
- var o, s, l, c;
520
- let e = r;
521
- if (e === null || typeof e != "string" && !Array.isArray(e))
522
- return [];
523
- const a = [];
524
- let i = "", n = 0;
525
- for (const u of e)
526
- n++, u.includes("{") || i.includes("{") || u.includes("[") || i.includes("[") || u.includes("【") || i.includes("【") || u.includes("(") || i.includes("(") || u.includes("(") || i.includes("(") ? (i += u.trim(), i.split("{").length - 1 === i.split("}").length - 1 && i.split("【").length - 1 === i.split("】").length - 1 && i.split("[").length - 1 === i.split("]").length - 1 && i.split("(").length - 1 === i.split(")").length - 1 && i.split("(").length - 1 === i.split(")").length - 1 && i.split("/*").length - 1 === i.split("*/").length - 1 && i[i.length - 1] === t && (i.split("'").length % 2 === 1 || ((o = i.split("'")) == null ? void 0 : o.length) === 1) && (i.split('"').length % 2 === 1 || ((s = i.split('"')) == null ? void 0 : s.length) === 1) ? (a.push(i.replace(/\/\*[\s\S]*?\*\//g, "")), i = "") : n === (r == null ? void 0 : r.length) && (a.push(i.replace(/\/\*[\s\S]*?\*\//g, "")), i = "")) : (i += u.trim(), (i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) === t && (i.split("'").length % 2 === 1 || ((l = i.split("'")) == null ? void 0 : l.length) === 1) && (i.split('"').length % 2 === 1 || ((c = i.split('"')) == null ? void 0 : c.length) === 1) && (a.push(i.replace(/\/\*[\s\S]*?\*\//g, "")), i = ""));
527
- return (i == null ? void 0 : i.length) !== 0 && a.push(i.replace(/\/\*[\s\S]*?\*\//g, "")), a;
528
- }, zs = (r, t) => JSON.stringify(r) === JSON.stringify(t), BT = { key: 0 }, GT = /* @__PURE__ */ Ye({
543
+ }, BT = { key: 0 }, GT = /* @__PURE__ */ Ye({
529
544
  __name: "index",
530
545
  props: {
531
546
  componentElement: {
@@ -546,7 +561,7 @@ const Z0 = new ET(), PT = () => ({
546
561
  async () => {
547
562
  var c, u, h, v, f, p;
548
563
  if (((u = (c = e == null ? void 0 : e.componentElement) == null ? void 0 : c.columns) == null ? void 0 : u.length) === 0) return;
549
- let l = await NT(e == null ? void 0 : e.componentElement);
564
+ let l = await RT(e == null ? void 0 : e.componentElement);
550
565
  if (n.value = (h = e == null ? void 0 : e.componentElement) == null ? void 0 : h.lib, i.value = l, a.value = a.value + 1, l != null && l.isFetch && !zs(l == null ? void 0 : l.tableData, (v = e == null ? void 0 : e.componentElement) == null ? void 0 : v.data)) {
551
566
  let d = (f = l == null ? void 0 : l.tableData) == null ? void 0 : f.filter(
552
567
  (g, m) => {
@@ -595,7 +610,7 @@ const Z0 = new ET(), PT = () => ({
595
610
  }
596
611
  },
597
612
  setup(r) {
598
- const t = r, e = ae(), a = ae(""), i = k0(() => U0(/* @__PURE__ */ Object.assign({ "../../../naiveComponent/form/index.vue": () => import("./index-BggN-zvK.js"), "../../../vxeComponent/form/index.vue": () => import("./index-CfwzR4gE.js") }), `../../../${a.value}Component/form/index.vue`, 6));
613
+ const t = r, e = ae(), a = ae(""), i = k0(() => U0(/* @__PURE__ */ Object.assign({ "../../../naiveComponent/form/index.vue": () => import("./index-D7CiXPV2.js"), "../../../vxeComponent/form/index.vue": () => import("./index-CfwzR4gE.js") }), `../../../${a.value}Component/form/index.vue`, 6));
599
614
  return Fe(
600
615
  () => t == null ? void 0 : t.componentElement,
601
616
  () => {
@@ -46063,7 +46078,7 @@ const pr = (r) => mC(r), tQ = ["xlink:href"], rQ = /* @__PURE__ */ Ye({
46063
46078
  we("use", { "xlink:href": e.value }, null, 8, tQ)
46064
46079
  ], 16));
46065
46080
  }
46066
- }), ln = /* @__PURE__ */ et(rQ, [["__scopeId", "data-v-7820d83a"]]), zl = k0(() => import("./index-CsdL6xGl.js"));
46081
+ }), ln = /* @__PURE__ */ et(rQ, [["__scopeId", "data-v-7820d83a"]]), zl = k0(() => import("./index-LuY_QZlf.js"));
46067
46082
  zl.install = (r) => {
46068
46083
  r.component("ssMenu", zl);
46069
46084
  };
@@ -50186,7 +50201,7 @@ const $ne = ro(r0), { commonSplit: kl } = h0($ne), Jne = (r, t) => {
50186
50201
  return !(((s = o == null ? void 0 : o.trim()) == null ? void 0 : s[0]) === "*" && ((l = o == null ? void 0 : o.trim()) == null ? void 0 : l[1]) === "*");
50187
50202
  }), e = e == null ? void 0 : e.join(`\r
50188
50203
  `);
50189
- let a = RT(e, [",", ":", "@", "=", "&", "{", "*"]);
50204
+ let a = OT(e, [",", ":", "@", "=", "&", "{", "*"]);
50190
50205
  a = a == null ? void 0 : a.filter((o) => o !== "");
50191
50206
  let i = a == null ? void 0 : a.filter((o) => (o == null ? void 0 : o[0]) !== "$");
50192
50207
  if ((i == null ? void 0 : i.length) > 0 && (i = [
@@ -5,7 +5,7 @@ import { _ as S } from "./index.vue_vue_type_script_setup_true_lang-CuwhbWHH.js"
5
5
  import { _ as B } from "./index.vue_vue_type_script_setup_true_lang-CVALRKBG.js";
6
6
  import { _ as I } from "./index.vue_vue_type_script_setup_true_lang-DimtrEJj.js";
7
7
  import { _ as X } from "./index.vue_vue_type_script_setup_true_lang-CARZt7yC.js";
8
- import { g as G } from "./index-qO33lx52.js";
8
+ import { g as G } from "./index-BeE5LpiD.js";
9
9
  const H = /* @__PURE__ */ $({
10
10
  __name: "index",
11
11
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as q, resolveComponent as u, createElementBlock as k, openBlock as s, Fragment as y, renderList as C, createBlock as f, createCommentVNode as z, withCtx as o, createVNode as r, createSlots as O, renderSlot as d, mergeProps as P, computed as j, ref as D, normalizeStyle as g } from "vue";
2
2
  import { u as G, p as w, s as b, a as H } from "./menu-ClNHLze7.js";
3
- import { S as $ } from "./index-qO33lx52.js";
3
+ import { S as $ } from "./index-BeE5LpiD.js";
4
4
  import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const K = /* @__PURE__ */ q({
6
6
  __name: "menuItem",
@@ -8,7 +8,7 @@ const r = [
8
8
  {
9
9
  path: "/",
10
10
  name: "Model",
11
- component: async () => import("./index-qO33lx52.js").then((o) => o.i),
11
+ component: async () => import("./index-BeE5LpiD.js").then((o) => o.i),
12
12
  // component: async ()=>import('@/components/views/model/component/main.vue'),
13
13
  // component: async ()=>import('@/components/views/canvas/index.vue'),
14
14
  // component: async ()=>import('@/components/views/test/index.vue'),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ss-component-new",
3
3
  "private": false,
4
- "version": "1.3.735",
4
+ "version": "1.3.736",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",