st-comp 0.0.260 → 0.0.262

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.
Files changed (89) hide show
  1. package/es/ChartLayout.js +4 -4
  2. package/es/CustomFunction.js +31 -31
  3. package/es/FactorWarning.cjs +1 -1
  4. package/es/FactorWarning.js +36 -37
  5. package/es/Kline.cjs +1 -1
  6. package/es/Kline.js +1593 -839
  7. package/es/KlineBasic.cjs +1 -1
  8. package/es/KlineBasic.js +1 -1197
  9. package/es/KlineConfig.js +89 -89
  10. package/es/KlineNew.js +17 -17
  11. package/es/KlinePlus.js +20 -20
  12. package/es/MonacoEditor.js +25 -25
  13. package/es/Pagination.js +113 -113
  14. package/es/PasswordPrompt.js +3 -3
  15. package/es/Table.js +29 -29
  16. package/es/User.js +25 -25
  17. package/es/VarSelectDialog.cjs +1 -1
  18. package/es/VarSelectDialog.js +27 -27
  19. package/es/VarietyAiHelper.cjs +3 -5
  20. package/es/VarietyAiHelper.js +244 -330
  21. package/es/VarietyAutoComplete.js +11 -11
  22. package/es/VarietySearch.cjs +18 -19
  23. package/es/VarietySearch.js +1169 -1205
  24. package/es/{VarietySelect-9f267958.js → VarietySelect-faef4799.js} +4 -4
  25. package/es/VarietyTextCopy.js +13 -13
  26. package/es/VirtualTable.js +74 -74
  27. package/es/{_initCloneObject-69c8ae23.js → _initCloneObject-009eedf8.js} +7 -7
  28. package/es/aiTools-2e1f92d2.cjs +3 -0
  29. package/es/aiTools-faa0a14d.js +90 -0
  30. package/es/{base-29f73b05.js → base-7ff209fc.js} +40 -40
  31. package/es/{castArray-609a313e.js → castArray-b9f1609f.js} +1 -1
  32. package/es/{config-provider-7860903c.js → config-provider-071b8bec.js} +6 -6
  33. package/es/{debounce-a09ce9a3.js → debounce-23c2f7e1.js} +1 -1
  34. package/es/{dropdown-497442b7.js → dropdown-9941f401.js} +4 -4
  35. package/es/{el-autocomplete-27c60cc8.js → el-autocomplete-43f205b0.js} +17 -17
  36. package/es/{el-button-e2c63c08.js → el-button-7f58608d.js} +33 -33
  37. package/es/{el-checkbox-71ebd862.js → el-checkbox-40664b27.js} +17 -17
  38. package/es/{el-input-number-c8018cb1.js → el-checkbox-group-3ddad0d7.js} +34 -34
  39. package/es/{el-input-number-3d94fa58.cjs → el-checkbox-group-f775e73f.cjs} +1 -1
  40. package/es/{el-dialog-eedcfd3e.js → el-dialog-2f10a2f4.js} +15 -15
  41. package/es/{el-divider-523e5874.js → el-divider-4e66c835.js} +1 -1
  42. package/es/{el-empty-f5a1607a.js → el-empty-e0d826de.js} +5 -5
  43. package/es/{el-form-item-bdcfd297.js → el-form-item-2b68cdf5.js} +36 -36
  44. package/es/{el-input-d47281da.js → el-input-31a818d4.js} +36 -36
  45. package/es/{el-loading-0cd81d05.js → el-loading-3e350f5e.js} +5 -5
  46. package/es/{el-message-box-fea4fca8.js → el-message-box-a3aa9b89.js} +11 -11
  47. package/es/{el-overlay-1ee0338d.js → el-overlay-4e9a99e0.js} +59 -59
  48. package/es/{el-popconfirm-089b8bec.js → el-popconfirm-c2896741.js} +12 -12
  49. package/es/{el-popper-c9b3d3cf.js → el-popper-003b3af7.js} +177 -177
  50. package/es/{el-segmented-9d3a9e11.js → el-segmented-4ae54e6a.js} +8 -8
  51. package/es/{el-select-e51e11c1.js → el-select-19ee0e79.js} +65 -65
  52. package/es/{el-table-column-05d292a8.js → el-table-column-3be856d7.js} +16 -16
  53. package/es/{el-tag-17cd04a1.js → el-tag-19cc5b59.js} +14 -14
  54. package/es/{el-text-2710fff3.js → el-text-9a7a4f0f.js} +2 -2
  55. package/es/{index-0f79095c.js → index-19ac550e.js} +49 -49
  56. package/es/{index-1d9b50de.js → index-308aab33.js} +34 -34
  57. package/es/{index-8a54ceeb.js → index-41dd5a1c.js} +10 -10
  58. package/es/{index-0ee486ad.js → index-6917da9d.js} +43 -43
  59. package/es/{index-bcd895a0.js → index-6d530e54.js} +13 -13
  60. package/es/{index-c71e37dc.js → index-808db9b4.js} +11 -11
  61. package/es/{index-f30561d3.js → index-99abf4ff.js} +17 -17
  62. package/es/{index-95e5d454.js → index-b56d81e8.js} +3 -3
  63. package/es/{index-8391a3df.js → index-d898531c.js} +37 -37
  64. package/es/{index-c2b9bbfd.js → index-e17987ac.js} +30 -30
  65. package/es/{index-b0117ba2.js → index-f3799536.js} +2 -2
  66. package/es/{index-de24705f.js → index-f402d1da.js} +1 -1
  67. package/es/{python-99011a53.js → python-be79c7c1.js} +25 -25
  68. package/es/raf-ba3dfafe.js +6 -0
  69. package/es/{scroll-6799bafc.js → scroll-8642151c.js} +5 -5
  70. package/es/style.css +1 -1
  71. package/es/{use-form-common-props-cb0ca65c.js → use-form-common-props-d170ccfd.js} +72 -72
  72. package/es/{use-global-config-cdaeca54.js → use-global-config-74436b92.js} +14 -14
  73. package/es/{validator-4ab9774f.js → validator-672bad4a.js} +1 -1
  74. package/es/{vnode-a83e6de8.js → vnode-6d2615f0.js} +1 -1
  75. package/es/{zh-cn-8a6390a4.js → zh-cn-ed10eeb1.js} +2 -2
  76. package/lib/bundle.js +1 -1
  77. package/lib/bundle.umd.cjs +150 -151
  78. package/lib/{index-107e931f.js → index-c3ddbee7.js} +7463 -7499
  79. package/lib/{python-5735efdf.js → python-da8fd227.js} +1 -1
  80. package/lib/style.css +1 -1
  81. package/package.json +1 -1
  82. package/packages/VarietyAiHelper/index.vue +3 -3
  83. package/packages/VarietySearch/components/FactorScreen/index.vue +20 -7
  84. package/packages/VarietySearch/components/FactorScreen/tools.js +0 -41
  85. package/es/el-checkbox-group-0ea8fbf8.cjs +0 -1
  86. package/es/el-checkbox-group-4ed993c7.js +0 -1
  87. package/es/el-menu-item-26071fd6.cjs +0 -1
  88. package/es/el-menu-item-dac65bb3.js +0 -769
  89. package/es/raf-744cf95a.js +0 -6
@@ -1,8 +1,8 @@
1
- import "./base-29f73b05.js";
2
- import { E as y } from "./el-autocomplete-27c60cc8.js";
3
- import "./el-input-d47281da.js";
1
+ import "./base-7ff209fc.js";
2
+ import { E as y } from "./el-autocomplete-43f205b0.js";
3
+ import "./el-input-31a818d4.js";
4
4
  import "./el-scrollbar-323542e7.js";
5
- import "./el-popper-c9b3d3cf.js";
5
+ import "./el-popper-003b3af7.js";
6
6
  import { inject as S, ref as b, openBlock as i, createElementBlock as p, createCommentVNode as V, createVNode as x, withCtx as v, createElementVNode as C, toDisplayString as E } from "vue";
7
7
  import { V as z } from "./index-7ed0999e.js";
8
8
  import { _ as B } from "./_plugin-vue_export-helper-dad06003.js";
@@ -1,21 +1,21 @@
1
- import "./base-29f73b05.js";
2
- import { E as y } from "./el-input-d47281da.js";
1
+ import "./base-7ff209fc.js";
2
+ import { E as y } from "./el-input-31a818d4.js";
3
3
  import "./el-tooltip-4ed993c7.js";
4
- import { E as h } from "./el-popper-c9b3d3cf.js";
4
+ import { E as h } from "./el-popper-003b3af7.js";
5
5
  import { inject as g, ref as E, computed as C, openBlock as V, createElementBlock as I, createElementVNode as n, toDisplayString as S, createVNode as i, withCtx as l, createTextVNode as c, unref as b, pushScopeId as w, popScopeId as T } from "vue";
6
- import { i as q, E as B } from "./index-c2b9bbfd.js";
6
+ import { i as q, E as B } from "./index-e17987ac.js";
7
7
  import "./el-message-4ed993c7.js";
8
8
  import { _ as N } from "./_plugin-vue_export-helper-dad06003.js";
9
- import { E as k } from "./index-f30561d3.js";
10
- import "./use-form-common-props-cb0ca65c.js";
11
- import "./index-8391a3df.js";
9
+ import { E as k } from "./index-99abf4ff.js";
10
+ import "./use-form-common-props-d170ccfd.js";
11
+ import "./index-d898531c.js";
12
12
  import "./typescript-7ae59c4c.js";
13
- import "./index-0f79095c.js";
14
- import "./index-c71e37dc.js";
15
- import "./use-global-config-cdaeca54.js";
16
- import "./index-de24705f.js";
17
- import "./index-0ee486ad.js";
18
- import "./config-provider-7860903c.js";
13
+ import "./index-19ac550e.js";
14
+ import "./index-808db9b4.js";
15
+ import "./use-global-config-74436b92.js";
16
+ import "./index-f402d1da.js";
17
+ import "./index-6917da9d.js";
18
+ import "./config-provider-071b8bec.js";
19
19
  const p = (t) => (w("data-v-445e2903"), t = t(), T(), t), j = { class: "variety-text-copy" }, z = { class: "stats-container" }, D = { class: "stat-item" }, F = /* @__PURE__ */ p(() => /* @__PURE__ */ n("span", { class: "label" }, "品种数量统计:", -1)), M = { class: "value" }, P = /* @__PURE__ */ p(() => /* @__PURE__ */ n("br", null, null, -1)), U = /* @__PURE__ */ p(() => /* @__PURE__ */ n("br", null, null, -1)), A = {
20
20
  __name: "index",
21
21
  props: {
@@ -1,28 +1,28 @@
1
- import { I as Oe, e as I, b as ae, u as Ie, f as xt, p as Q, j as We, n as Qe, x as Tt, s as Dl, c as Nt, y as Pl, i as $l, w as Jt } from "./base-29f73b05.js";
2
- import { E as Qt } from "./el-empty-f5a1607a.js";
3
- import { B as Fl } from "./el-scrollbar-323542e7.js";
4
- import { E as Wl } from "./el-divider-523e5874.js";
5
- import { E as Gl } from "./el-button-e2c63c08.js";
6
- import { getCurrentInstance as nt, computed as E, defineComponent as xe, ref as F, reactive as kl, unref as n, watch as Re, onBeforeUnmount as el, h as ue, withModifiers as Vl, shallowRef as $e, nextTick as Se, isVNode as Ne, toRef as Lt, inject as Et, onUpdated as Kl, createVNode as C, onMounted as rt, resolveDynamicComponent as zt, Fragment as jl, provide as tl, onActivated as Bl, mergeProps as Y, renderSlot as Ye, mergeModels as Dt, useModel as ql, onUnmounted as Ul, openBlock as Xe, createBlock as it, withCtx as De, createElementBlock as Yl, createTextVNode as Pt, createCommentVNode as $t } from "vue";
7
- import { d as Zl } from "./debounce-a09ce9a3.js";
1
+ import { O as Oe, d as I, b as ae, u as Ie, h as xt, f as Q, i as We, j as Qe, c as Tt, a as Dl, e as Nt, s as Pl, o as Fl, w as Jt } from "./base-7ff209fc.js";
2
+ import { E as Qt } from "./el-empty-e0d826de.js";
3
+ import { B as $l } from "./el-scrollbar-323542e7.js";
4
+ import { E as Wl } from "./el-divider-4e66c835.js";
5
+ import { E as Gl } from "./el-button-7f58608d.js";
6
+ import { getCurrentInstance as nt, computed as E, defineComponent as xe, ref as $, reactive as kl, unref as n, watch as Re, onBeforeUnmount as el, h as ue, withModifiers as Vl, shallowRef as Fe, nextTick as Se, isVNode as Ne, toRef as Lt, inject as Et, onUpdated as Kl, createVNode as C, onMounted as rt, resolveDynamicComponent as zt, Fragment as jl, provide as tl, onActivated as Bl, mergeProps as Y, renderSlot as Ye, mergeModels as Dt, useModel as ql, onUnmounted as Ul, openBlock as Xe, createBlock as it, withCtx as De, createElementBlock as Yl, createTextVNode as Pt, createCommentVNode as Ft } from "vue";
7
+ import { d as Zl } from "./debounce-23c2f7e1.js";
8
8
  import { m as ll } from "./typescript-7ae59c4c.js";
9
- import { c as Xl } from "./castArray-609a313e.js";
10
- import { c as Jl, u as Ql } from "./use-form-common-props-cb0ca65c.js";
11
- import { c as ol, r as nl } from "./raf-744cf95a.js";
12
- import { m as eo } from "./index-8391a3df.js";
13
- import { g as to } from "./scroll-6799bafc.js";
14
- import { E as rl, g as lo, C as oo, D as no } from "./index-c2b9bbfd.js";
15
- import { g as ro } from "./index-de24705f.js";
9
+ import { c as Xl } from "./castArray-b9f1609f.js";
10
+ import { b as Jl, h as Ql } from "./use-form-common-props-d170ccfd.js";
11
+ import { c as ol, r as nl } from "./raf-ba3dfafe.js";
12
+ import { p as eo } from "./index-d898531c.js";
13
+ import { g as to } from "./scroll-8642151c.js";
14
+ import { E as rl, A as lo, D as oo, F as no } from "./index-e17987ac.js";
15
+ import { g as ro } from "./index-f402d1da.js";
16
16
  import { _ as ao } from "./_plugin-vue_export-helper-dad06003.js";
17
17
  import "./index-2e331d74.js";
18
- import "./use-global-config-cdaeca54.js";
19
- import "./index-0ee486ad.js";
18
+ import "./use-global-config-74436b92.js";
19
+ import "./index-6917da9d.js";
20
20
  import "./index-657047bb.js";
21
- var Ft = Number.isNaN || function(t) {
21
+ var $t = Number.isNaN || function(t) {
22
22
  return typeof t == "number" && t !== t;
23
23
  };
24
24
  function so(e, t) {
25
- return !!(e === t || Ft(e) && Ft(t));
25
+ return !!(e === t || $t(e) && $t(t));
26
26
  }
27
27
  function io(e, t) {
28
28
  if (e.length !== t.length)
@@ -57,7 +57,7 @@ const uo = () => {
57
57
  const l = (o, a, r) => ({});
58
58
  return t.perfMode ? eo(l) : co(l);
59
59
  });
60
- }, Wt = 50, Gt = "itemRendered", kt = "scroll", je = "forward", dt = "backward", He = "auto", al = "smart", ut = "start", Fe = "center", ht = "end", ft = "horizontal", sl = "vertical", il = "rtl", mt = "negative", cl = "positive-ascending", dl = "positive-descending", ho = {
60
+ }, Wt = 50, Gt = "itemRendered", kt = "scroll", je = "forward", dt = "backward", He = "auto", al = "smart", ut = "start", $e = "center", ht = "end", ft = "horizontal", sl = "vertical", il = "rtl", mt = "negative", cl = "positive-ascending", dl = "positive-descending", ho = {
61
61
  [ft]: "left",
62
62
  [sl]: "top"
63
63
  }, fo = 20, vt = Oe({
@@ -193,12 +193,12 @@ const jt = xe({
193
193
  props: vl,
194
194
  emits: ["scroll", "start-move", "stop-move"],
195
195
  setup(e, { emit: t }) {
196
- const l = E(() => e.startGap + e.endGap), o = Ie("virtual-scrollbar"), a = Ie("scrollbar"), r = F(), s = F();
196
+ const l = E(() => e.startGap + e.endGap), o = Ie("virtual-scrollbar"), a = Ie("scrollbar"), r = $(), s = $();
197
197
  let c = null, m = null;
198
198
  const f = kl({
199
199
  isDragging: !1,
200
200
  traveled: 0
201
- }), u = E(() => Fl[e.layout]), v = E(() => e.clientSize - n(l)), b = E(() => ({
201
+ }), u = E(() => $l[e.layout]), v = E(() => e.clientSize - n(l)), b = E(() => ({
202
202
  position: "absolute",
203
203
  width: `${ft === e.layout ? v.value : e.scrollbarSize}px`,
204
204
  height: `${ft === e.layout ? e.scrollbarSize : v.value}px`,
@@ -212,8 +212,8 @@ const jt = xe({
212
212
  return Number.POSITIVE_INFINITY;
213
213
  if (R >= 50)
214
214
  return R * v.value / 100;
215
- const $ = v.value / 3;
216
- return Math.floor(Math.min(Math.max(R * v.value / 100, fo), $));
215
+ const F = v.value / 3;
216
+ return Math.floor(Math.min(Math.max(R * v.value / 100, fo), F));
217
217
  }), w = E(() => {
218
218
  if (!Number.isFinite(y.value))
219
219
  return {
@@ -238,8 +238,8 @@ const jt = xe({
238
238
  }, S = () => {
239
239
  f.isDragging = !1, f[u.value.axis] = 0, t("stop-move"), i();
240
240
  }, H = (R) => {
241
- const { isDragging: $ } = f;
242
- if (!$ || !s.value || !r.value)
241
+ const { isDragging: F } = f;
242
+ if (!F || !s.value || !r.value)
243
243
  return;
244
244
  const z = f[u.value.axis];
245
245
  if (!z)
@@ -250,7 +250,7 @@ const jt = xe({
250
250
  f.traveled = Math.max(0, Math.min(A, h.value)), t("scroll", A, h.value);
251
251
  });
252
252
  }, M = (R) => {
253
- const $ = Math.abs(R.target.getBoundingClientRect()[u.value.direction] - R[u.value.client]), z = s.value[u.value.offset] / 2, G = $ - z;
253
+ const F = Math.abs(R.target.getBoundingClientRect()[u.value.direction] - R[u.value.client]), z = s.value[u.value.offset] / 2, G = F - z;
254
254
  f.traveled = Math.max(0, Math.min(G, h.value)), t("scroll", G, h.value);
255
255
  };
256
256
  return Re(() => e.scrollFrom, (R) => {
@@ -356,7 +356,7 @@ const bo = (e, {
356
356
  rightTableRef: o,
357
357
  onMaybeEndReached: a
358
358
  }) => {
359
- const r = F({ scrollLeft: 0, scrollTop: 0 });
359
+ const r = $({ scrollLeft: 0, scrollTop: 0 });
360
360
  function s(y) {
361
361
  var w, h, d;
362
362
  const { scrollTop: i } = y;
@@ -403,7 +403,7 @@ const bo = (e, {
403
403
  ns: r,
404
404
  isScrolling: s
405
405
  }) => {
406
- const c = nt(), { emit: m } = c, f = $e(!1), u = F(e.defaultExpandedRowKeys || []), v = F(-1), b = $e(null), y = F({}), w = F({}), h = $e({}), d = $e({}), i = $e({}), g = E(() => Q(e.estimatedRowHeight));
406
+ const c = nt(), { emit: m } = c, f = Fe(!1), u = $(e.defaultExpandedRowKeys || []), v = $(-1), b = Fe(null), y = $({}), w = $({}), h = Fe({}), d = Fe({}), i = Fe({}), g = E(() => Q(e.estimatedRowHeight));
407
407
  function S(x) {
408
408
  var A;
409
409
  (A = e.onRowsRendered) == null || A.call(e, x), x.rowCacheEnd > n(v) && (v.value = x.rowCacheEnd);
@@ -432,9 +432,9 @@ const bo = (e, {
432
432
  }
433
433
  const R = Zl(() => {
434
434
  var x, A, W, N;
435
- f.value = !0, y.value = { ...n(y), ...n(w) }, $(n(b), !1), w.value = {}, b.value = null, (x = t.value) == null || x.forceUpdate(), (A = l.value) == null || A.forceUpdate(), (W = o.value) == null || W.forceUpdate(), (N = c.proxy) == null || N.$forceUpdate(), f.value = !1;
435
+ f.value = !0, y.value = { ...n(y), ...n(w) }, F(n(b), !1), w.value = {}, b.value = null, (x = t.value) == null || x.forceUpdate(), (A = l.value) == null || A.forceUpdate(), (W = o.value) == null || W.forceUpdate(), (N = c.proxy) == null || N.$forceUpdate(), f.value = !1;
436
436
  }, 0);
437
- function $(x, A = !1) {
437
+ function F(x, A = !1) {
438
438
  n(g) && [t, l, o].forEach((W) => {
439
439
  const N = n(W);
440
440
  N && N.resetAfterRowIndex(x, A);
@@ -455,14 +455,14 @@ const bo = (e, {
455
455
  isDynamic: g,
456
456
  isResetting: f,
457
457
  rowHeights: y,
458
- resetAfterIndex: $,
458
+ resetAfterIndex: F,
459
459
  onRowExpanded: M,
460
460
  onRowHovered: H,
461
461
  onRowsRendered: S,
462
462
  onRowHeightChange: G
463
463
  };
464
464
  }, Ro = (e, { expandedRowKeys: t, lastRenderedRowIndex: l, resetAfterIndex: o }) => {
465
- const a = F({}), r = E(() => {
465
+ const a = $({}), r = E(() => {
466
466
  const c = {}, { data: m, rowKey: f } = e, u = n(t);
467
467
  if (!u || !u.length)
468
468
  return m;
@@ -537,7 +537,7 @@ const bo = (e, {
537
537
  };
538
538
  };
539
539
  function Eo(e) {
540
- const t = F(), l = F(), o = F(), {
540
+ const t = $(), l = $(), o = $(), {
541
541
  columns: a,
542
542
  columnsStyles: r,
543
543
  columnsTotalWidth: s,
@@ -559,9 +559,9 @@ function Eo(e) {
559
559
  leftTableRef: l,
560
560
  rightTableRef: o,
561
561
  onMaybeEndReached: Ve
562
- }), S = Ie("table-v2"), H = nt(), M = $e(!1), {
562
+ }), S = Ie("table-v2"), H = nt(), M = Fe(!1), {
563
563
  expandedRowKeys: R,
564
- lastRenderedRowIndex: $,
564
+ lastRenderedRowIndex: F,
565
565
  isDynamic: z,
566
566
  isResetting: G,
567
567
  rowHeights: x,
@@ -579,7 +579,7 @@ function Eo(e) {
579
579
  isScrolling: M
580
580
  }), { data: V, depthMap: U } = Ro(e, {
581
581
  expandedRowKeys: R,
582
- lastRenderedRowIndex: $,
582
+ lastRenderedRowIndex: F,
583
583
  resetAfterIndex: A
584
584
  }), le = E(() => {
585
585
  const { estimatedRowHeight: q, rowHeight: oe } = e, ce = n(V);
@@ -600,7 +600,7 @@ function Eo(e) {
600
600
  fixedColumnsOnLeft: c,
601
601
  fixedColumnsOnRight: m,
602
602
  rowsHeight: le
603
- }), Le = F(), Ge = E(() => {
603
+ }), Le = $(), Ge = E(() => {
604
604
  const q = n(V).length === 0;
605
605
  return We(e.fixedData) ? e.fixedData.length === 0 && q : q;
606
606
  });
@@ -608,13 +608,13 @@ function Eo(e) {
608
608
  const { estimatedRowHeight: oe, rowHeight: ce, rowKey: T } = e;
609
609
  return oe ? n(x)[n(V)[q][T]] || oe : ce;
610
610
  }
611
- const we = F(!1);
611
+ const we = $(!1);
612
612
  function Ve() {
613
613
  const { onEndReached: q } = e;
614
614
  if (!q)
615
615
  return;
616
616
  const { scrollTop: oe } = n(g), ce = n(le), T = n(ve), _ = ce - (oe + T) + e.hScrollbarSize;
617
- !we.value && n($) >= 0 && ce <= oe + n(re) - n(ye) ? (we.value = !0, q(_)) : we.value = !1;
617
+ !we.value && n(F) >= 0 && ce <= oe + n(re) - n(ye) ? (we.value = !0, q(_)) : we.value = !1;
618
618
  }
619
619
  return Re(() => n(le), () => we.value = !1), Re(() => e.expandedRowKeys, (q) => R.value = q, {
620
620
  deep: !0
@@ -870,7 +870,7 @@ const _t = Symbol("tableV2"), wl = "tableV2GridScrollLeft", bl = String, Ze = {
870
870
  slots: t,
871
871
  expose: l
872
872
  }) {
873
- const o = Ie("table-v2"), a = Et(wl), r = F(), s = E(() => be({
873
+ const o = Ie("table-v2"), a = Et(wl), r = $(), s = E(() => be({
874
874
  width: e.width,
875
875
  height: e.height
876
876
  })), c = E(() => be({
@@ -979,9 +979,9 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
979
979
  setup(h, { emit: d, expose: i, slots: g }) {
980
980
  const S = Ie("vl");
981
981
  w(h);
982
- const H = nt(), M = F(b(h, H));
982
+ const H = nt(), M = $(b(h, H));
983
983
  y == null || y(H, M);
984
- const R = F(), $ = F(), z = F(), G = F(null), x = F({
984
+ const R = $(), F = $(), z = $(), G = $(null), x = $({
985
985
  isScrolling: !1,
986
986
  scrollLeft: Q(h.initScrollLeft) ? h.initScrollLeft : 0,
987
987
  scrollTop: Q(h.initScrollTop) ? h.initScrollTop : 0,
@@ -1114,7 +1114,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
1114
1114
  atYEndEdge: E(() => x.value.scrollTop >= V.value - n(W))
1115
1115
  }, (T, _) => {
1116
1116
  var p, D, L, O;
1117
- (D = (p = $.value) == null ? void 0 : p.onMouseUp) == null || D.call(p), (O = (L = z.value) == null ? void 0 : L.onMouseUp) == null || O.call(L);
1117
+ (D = (p = F.value) == null ? void 0 : p.onMouseUp) == null || D.call(p), (O = (L = z.value) == null ? void 0 : L.onMouseUp) == null || O.call(L);
1118
1118
  const P = n(N), k = n(W);
1119
1119
  Z({
1120
1120
  scrollLeft: Math.min(x.value.scrollLeft + T, U.value - P),
@@ -1215,7 +1215,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
1215
1215
  totalColumn: D,
1216
1216
  totalRow: L
1217
1217
  } = h, O = n(N), P = n(W), k = n(U), K = n(V), { scrollLeft: X, scrollTop: te } = n(x), J = ue(jt, {
1218
- ref: $,
1218
+ ref: F,
1219
1219
  alwaysOn: T,
1220
1220
  startGap: _,
1221
1221
  endGap: p,
@@ -1362,12 +1362,12 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
1362
1362
  r === "row" ? e.height : e.width,
1363
1363
  No[r]
1364
1364
  ], f = he(e, t, a, r), u = m(e, a), v = ot(0, Tl(u - c, f.offset)), b = ot(0, f.offset - c + s + f.size);
1365
- switch (l === al && (o >= b - c && o <= v + c ? l = He : l = Fe), l) {
1365
+ switch (l === al && (o >= b - c && o <= v + c ? l = He : l = $e), l) {
1366
1366
  case ut:
1367
1367
  return v;
1368
1368
  case ht:
1369
1369
  return b;
1370
- case Fe:
1370
+ case $e:
1371
1371
  return Math.round(b + (v - b) / 2);
1372
1372
  case He:
1373
1373
  default:
@@ -1406,7 +1406,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
1406
1406
  injectToInstance: (e, t) => {
1407
1407
  const l = ({ columnIndex: r, rowIndex: s }, c) => {
1408
1408
  var m, f;
1409
- c = $l(c) ? !0 : c, Q(r) && (t.value.lastVisitedColumnIndex = Math.min(t.value.lastVisitedColumnIndex, r - 1)), Q(s) && (t.value.lastVisitedRowIndex = Math.min(t.value.lastVisitedRowIndex, s - 1)), (m = e.exposed) == null || m.getItemStyleCache.value(-1, null, null), c && ((f = e.proxy) == null || f.$forceUpdate());
1409
+ c = Fl(c) ? !0 : c, Q(r) && (t.value.lastVisitedColumnIndex = Math.min(t.value.lastVisitedColumnIndex, r - 1)), Q(s) && (t.value.lastVisitedRowIndex = Math.min(t.value.lastVisitedRowIndex, s - 1)), (m = e.exposed) == null || m.getItemStyleCache.value(-1, null, null), c && ((f = e.proxy) == null || f.$forceUpdate());
1410
1410
  }, o = (r, s) => {
1411
1411
  l({
1412
1412
  columnIndex: r
@@ -1451,12 +1451,12 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
1451
1451
  getColumnOffset: ({ totalColumn: e, columnWidth: t, width: l }, o, a, r, s, c) => {
1452
1452
  l = Number(l);
1453
1453
  const m = Math.max(0, e * t - l), f = Math.min(m, o * t), u = Math.max(0, o * t - l + c + t);
1454
- switch (a === "smart" && (r >= u - l && r <= f + l ? a = He : a = Fe), a) {
1454
+ switch (a === "smart" && (r >= u - l && r <= f + l ? a = He : a = $e), a) {
1455
1455
  case ut:
1456
1456
  return f;
1457
1457
  case ht:
1458
1458
  return u;
1459
- case Fe: {
1459
+ case $e: {
1460
1460
  const v = Math.round(u + (f - u) / 2);
1461
1461
  return v < Math.ceil(l / 2) ? 0 : v > m + Math.floor(l / 2) ? m : v;
1462
1462
  }
@@ -1468,12 +1468,12 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
1468
1468
  getRowOffset: ({ rowHeight: e, height: t, totalRow: l }, o, a, r, s, c) => {
1469
1469
  t = Number(t);
1470
1470
  const m = Math.max(0, l * e - t), f = Math.min(m, o * e), u = Math.max(0, o * e - t + c + e);
1471
- switch (a === al && (r >= u - t && r <= f + t ? a = He : a = Fe), a) {
1471
+ switch (a === al && (r >= u - t && r <= f + t ? a = He : a = $e), a) {
1472
1472
  case ut:
1473
1473
  return f;
1474
1474
  case ht:
1475
1475
  return u;
1476
- case Fe: {
1476
+ case $e: {
1477
1477
  const v = Math.round(u + (f - u) / 2);
1478
1478
  return v < Math.ceil(t / 2) ? 0 : v > m + Math.floor(t / 2) ? m : v;
1479
1479
  }
@@ -1498,7 +1498,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
1498
1498
  validateProps: ({ columnWidth: e, rowHeight: t }) => {
1499
1499
  }
1500
1500
  }), Do = "ElTableV2Grid", Po = (e) => {
1501
- const t = F(), l = F(), o = F(0), a = E(() => {
1501
+ const t = $(), l = $(), o = $(0), a = E(() => {
1502
1502
  const {
1503
1503
  data: d,
1504
1504
  rowHeight: i,
@@ -1582,7 +1582,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
1582
1582
  scrollToRow: w,
1583
1583
  scrollLeft: o
1584
1584
  };
1585
- }, $o = xe({
1585
+ }, Fo = xe({
1586
1586
  name: Do,
1587
1587
  props: tt,
1588
1588
  setup(e, {
@@ -1627,7 +1627,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
1627
1627
  cache: H,
1628
1628
  columns: M,
1629
1629
  data: R,
1630
- fixedData: $,
1630
+ fixedData: F,
1631
1631
  useIsScrolling: z,
1632
1632
  scrollbarAlwaysOn: G,
1633
1633
  scrollbarEndGap: x,
@@ -1683,7 +1683,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
1683
1683
  columns: M,
1684
1684
  headerData: R,
1685
1685
  headerHeight: e.headerHeight,
1686
- fixedHeaderData: $,
1686
+ fixedHeaderData: F,
1687
1687
  rowWidth: V,
1688
1688
  rowHeight: N,
1689
1689
  width: le,
@@ -1695,8 +1695,8 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
1695
1695
  };
1696
1696
  }
1697
1697
  });
1698
- var pt = $o;
1699
- function Fo(e) {
1698
+ var pt = Fo;
1699
+ function $o(e) {
1700
1700
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ne(e);
1701
1701
  }
1702
1702
  const Wo = (e, {
@@ -1708,7 +1708,7 @@ const Wo = (e, {
1708
1708
  } = e;
1709
1709
  return C(pt, Y({
1710
1710
  ref: l
1711
- }, o), Fo(t) ? t : {
1711
+ }, o), $o(t) ? t : {
1712
1712
  default: () => [t]
1713
1713
  });
1714
1714
  };
@@ -1754,7 +1754,7 @@ var qo = Bo;
1754
1754
  const Uo = (e) => {
1755
1755
  const {
1756
1756
  isScrolling: t
1757
- } = Et(_t), l = F(!1), o = F(), a = E(() => Q(e.estimatedRowHeight) && e.rowIndex >= 0), r = (m = !1) => {
1757
+ } = Et(_t), l = $(!1), o = $(), a = E(() => Q(e.estimatedRowHeight) && e.rowIndex >= 0), r = (m = !1) => {
1758
1758
  const f = n(o);
1759
1759
  if (!f)
1760
1760
  return;
@@ -1947,17 +1947,17 @@ const Qo = (e, {
1947
1947
  columns: l,
1948
1948
  rowData: f,
1949
1949
  rowIndex: u
1950
- }), R = f[h], $ = a[R] || 0, z = !!r, G = u < 0, x = [i.e("row"), H, {
1951
- [i.e(`row-depth-${$}`)]: z && u >= 0,
1950
+ }), R = f[h], F = a[R] || 0, z = !!r, G = u < 0, x = [i.e("row"), H, {
1951
+ [i.e(`row-depth-${F}`)]: z && u >= 0,
1952
1952
  [i.is("expanded")]: z && s.includes(R),
1953
- [i.is("fixed")]: !$ && G,
1953
+ [i.is("fixed")]: !F && G,
1954
1954
  [i.is("customized")]: !!t.row
1955
1955
  }], A = m ? g : void 0, W = {
1956
1956
  ...M,
1957
1957
  columns: l,
1958
1958
  columnsStyles: o,
1959
1959
  class: x,
1960
- depth: $,
1960
+ depth: F,
1961
1961
  expandColumnKey: r,
1962
1962
  estimatedRowHeight: G ? void 0 : c,
1963
1963
  isScrolling: b,
@@ -2072,7 +2072,7 @@ const pl = ({
2072
2072
  columnIndex: l,
2073
2073
  rowIndex: c,
2074
2074
  rowData: s
2075
- }), $ = {
2075
+ }), F = {
2076
2076
  class: u.e("cell-text"),
2077
2077
  columns: e,
2078
2078
  column: t,
@@ -2081,7 +2081,7 @@ const pl = ({
2081
2081
  isScrolling: r,
2082
2082
  rowData: s,
2083
2083
  rowIndex: c
2084
- }, z = yl(g), G = z ? z($) : Ye(d, "default", $, () => [C(tn, $, null)]), x = [u.e("row-cell"), t.class, t.align === qe.CENTER && u.is("align-center"), t.align === qe.RIGHT && u.is("align-right")], A = c >= 0 && b && t.key === b, W = c >= 0 && f.includes(s[h]);
2084
+ }, z = yl(g), G = z ? z(F) : Ye(d, "default", F, () => [C(tn, F, null)]), x = [u.e("row-cell"), t.class, t.align === qe.CENTER && u.is("align-center"), t.align === qe.RIGHT && u.is("align-right")], A = c >= 0 && b && t.key === b, W = c >= 0 && f.includes(s[h]);
2085
2085
  let N;
2086
2086
  const j = `margin-inline-start: ${o * y}px;`;
2087
2087
  return A && (xt(a) ? N = C(on, Y(a, {
@@ -2309,7 +2309,7 @@ const wn = "ElTableV2", bn = xe({
2309
2309
  isResetting: H,
2310
2310
  isScrolling: M,
2311
2311
  bodyWidth: R,
2312
- emptyStyle: $,
2312
+ emptyStyle: F,
2313
2313
  rootStyle: z,
2314
2314
  footerHeight: G,
2315
2315
  showEmpty: x,
@@ -2504,7 +2504,7 @@ const wn = "ElTableV2", bn = xe({
2504
2504
  default: t.footer
2505
2505
  }), n(x) && C(gn, {
2506
2506
  class: o.e("empty"),
2507
- style: n($)
2507
+ style: n(F)
2508
2508
  }, {
2509
2509
  default: t.empty
2510
2510
  }), t.overlay && C(yn, {
@@ -2523,7 +2523,7 @@ const Rn = ae({
2523
2523
  type: I(Function)
2524
2524
  }
2525
2525
  }), xn = (e) => {
2526
- const t = F(), l = F(0), o = F(0);
2526
+ const t = $(), l = $(0), o = $(0);
2527
2527
  let a;
2528
2528
  return rt(() => {
2529
2529
  a = Ql(t, ([r]) => {
@@ -2617,7 +2617,7 @@ const Hn = {
2617
2617
  pageUpDownEnabled: !0,
2618
2618
  // 是否开启键盘pageUp, pageDown切换选中功能
2619
2619
  ...o.config
2620
- })), r = F(null), s = F(0);
2620
+ })), r = $(null), s = $(0);
2621
2621
  let c = 0, m = !1, f = null;
2622
2622
  const u = ql(e, "tableActiveData"), v = E(() => u.value.map((i) => i[a.value.tableActiveKey])), b = ({
2623
2623
  rowData: i,
@@ -2643,7 +2643,7 @@ const Hn = {
2643
2643
  } = a.value;
2644
2644
  if (!g.length || !M)
2645
2645
  return;
2646
- const R = g.findIndex((x) => x[H] === v.value.at(0)), $ = g.findIndex((x) => x[H] === v.value.at(-1));
2646
+ const R = g.findIndex((x) => x[H] === v.value.at(0)), F = g.findIndex((x) => x[H] === v.value.at(-1));
2647
2647
  let z = null, G = null;
2648
2648
  switch (i) {
2649
2649
  case "PageUp":
@@ -2652,7 +2652,7 @@ const Hn = {
2652
2652
  z = R - S > 0 ? R - S : 0, G = z + S - 1, u.value = g.slice(z, G + 1), h(z, "PageUp");
2653
2653
  break;
2654
2654
  case "PageDown":
2655
- if ($ === g.length - 1)
2655
+ if (F === g.length - 1)
2656
2656
  return;
2657
2657
  z = R + S, G = z + S - 1, u.value = g.slice(z, G + 1), h(G, "PageDown");
2658
2658
  break;
@@ -2683,8 +2683,8 @@ const Hn = {
2683
2683
  }), Ul(() => {
2684
2684
  window.removeEventListener("keydown", y);
2685
2685
  }), (i, g) => {
2686
- const S = Qt, H = Gl, M = Wl, R = _n, $ = Cn;
2687
- return Xe(), it($, null, {
2686
+ const S = Qt, H = Gl, M = Wl, R = _n, F = Cn;
2687
+ return Xe(), it(F, null, {
2688
2688
  default: De(({
2689
2689
  height: z,
2690
2690
  width: G
@@ -2731,7 +2731,7 @@ const Hn = {
2731
2731
  }, {
2732
2732
  default: De(() => [Pt(" 已无更多数据 ")]),
2733
2733
  _: 1
2734
- })) : $t("", !0)])) : $t("", !0)]),
2734
+ })) : Ft("", !0)])) : Ft("", !0)]),
2735
2735
  _: 2
2736
2736
  }, 1032, ["data", "columns", "width", "height", "header-height", "row-height", "row-event-handlers", "footer-height"])]),
2737
2737
  _: 1
@@ -1,6 +1,6 @@
1
- import { o as O, r as y } from "./use-form-common-props-cb0ca65c.js";
2
- import { j as p, a as m, l as x, o as w, U as i } from "./index-0ee486ad.js";
3
- import { i as v, r as P } from "./index-8391a3df.js";
1
+ import { n as O, p as y } from "./use-form-common-props-d170ccfd.js";
2
+ import { i as p, a as m, b as x, o as w, U as i } from "./index-6917da9d.js";
3
+ import { c as v, r as P } from "./index-d898531c.js";
4
4
  var u = Object.create, b = function() {
5
5
  function e() {
6
6
  }
@@ -70,11 +70,11 @@ function J(e) {
70
70
  return typeof e.constructor == "function" && !p(e) ? A(T(e)) : {};
71
71
  }
72
72
  export {
73
- q as a,
74
- G as b,
73
+ E as a,
74
+ H as b,
75
75
  D as c,
76
- H as d,
77
- E as e,
76
+ q as d,
77
+ G as e,
78
78
  T as g,
79
79
  J as i,
80
80
  F as k
@@ -0,0 +1,3 @@
1
+ "use strict";const y=async({appId:f,apiKey:i,value:p,callback:e})=>{var a;try{const t=await fetch(`https://dashscope.aliyuncs.com/api/v1/apps/${f}/completion`,{method:"POST",body:JSON.stringify({input:{prompt:p},parameters:{incremental_output:"true"},debug:{}}),headers:{Authorization:`Bearer ${i}`,"Content-Type":"application/json","X-DashScope-SSE":"enable"}});if(!t.ok){e("error",`HTTP ${t.status}: ${t.statusText}`);return}const u=t.body.getReader(),r=new TextDecoder;let s="",o=null;for(;;){const{done:h,value:S}=await u.read();if(h){s.trim()&&x(s,e),e("finish","");break}s+=r.decode(S,{stream:!0});let m;for(;(m=s.indexOf(`
2
+ `))!==-1;){const c=s.substring(0,m).trim();if(s=s.substring(m+1),c.startsWith("event:")){o=c.substring(6).trim();continue}if(c.startsWith("data:")){const d=c.substring(5).trim();if(o==="error"||d&&d.startsWith("{"))try{const n=JSON.parse(d);if(n.code||n.message||o==="error"){const l=n.message||n.code||"未知错误";e("error",`百炼服务端错误: ${l}`);return}const g=(a=n==null?void 0:n.output)==null?void 0:a.text;g&&e&&e("message",g)}catch{console.debug("JSON 解析失败:",d)}o=null}}}}catch(t){console.error("流式请求失败:",t),e("error",t.message)}},x=(f,i)=>{var a;const p=f.split(`
3
+ `);let e=null;for(const t of p){if(t.startsWith("event:")){e=t.substring(6).trim();continue}if(t.startsWith("data:")){const u=t.substring(5).trim();if(u&&u!=="[DONE]")try{const r=JSON.parse(u);if(e==="error"||r.code||r.message){const o=r.message||r.code||"未知错误";i("error",`百炼服务端错误: ${o}`);return}const s=(a=r==null?void 0:r.output)==null?void 0:a.text;s&&i&&i("message",s)}catch{}e=null}}};exports.sendToBaiLianAppStreaming=y;
@@ -0,0 +1,90 @@
1
+ const x = async ({ appId: f, apiKey: i, value: p, callback: e }) => {
2
+ var a;
3
+ try {
4
+ const t = await fetch(`https://dashscope.aliyuncs.com/api/v1/apps/${f}/completion`, {
5
+ method: "POST",
6
+ body: JSON.stringify({
7
+ input: { prompt: p },
8
+ parameters: { incremental_output: "true" },
9
+ debug: {}
10
+ }),
11
+ headers: {
12
+ Authorization: `Bearer ${i}`,
13
+ "Content-Type": "application/json",
14
+ "X-DashScope-SSE": "enable"
15
+ }
16
+ });
17
+ if (!t.ok) {
18
+ e("error", `HTTP ${t.status}: ${t.statusText}`);
19
+ return;
20
+ }
21
+ const u = t.body.getReader(), r = new TextDecoder();
22
+ let s = "", o = null;
23
+ for (; ; ) {
24
+ const { done: h, value: l } = await u.read();
25
+ if (h) {
26
+ s.trim() && y(s, e), e("finish", "");
27
+ break;
28
+ }
29
+ s += r.decode(l, { stream: !0 });
30
+ let m;
31
+ for (; (m = s.indexOf(`
32
+ `)) !== -1; ) {
33
+ const c = s.substring(0, m).trim();
34
+ if (s = s.substring(m + 1), c.startsWith("event:")) {
35
+ o = c.substring(6).trim();
36
+ continue;
37
+ }
38
+ if (c.startsWith("data:")) {
39
+ const d = c.substring(5).trim();
40
+ if (o === "error" || d && d.startsWith("{"))
41
+ try {
42
+ const n = JSON.parse(d);
43
+ if (n.code || n.message || o === "error") {
44
+ const S = n.message || n.code || "未知错误";
45
+ e("error", `百炼服务端错误: ${S}`);
46
+ return;
47
+ }
48
+ const g = (a = n == null ? void 0 : n.output) == null ? void 0 : a.text;
49
+ g && e && e("message", g);
50
+ } catch {
51
+ console.debug("JSON 解析失败:", d);
52
+ }
53
+ o = null;
54
+ }
55
+ }
56
+ }
57
+ } catch (t) {
58
+ console.error("流式请求失败:", t), e("error", t.message);
59
+ }
60
+ }, y = (f, i) => {
61
+ var a;
62
+ const p = f.split(`
63
+ `);
64
+ let e = null;
65
+ for (const t of p) {
66
+ if (t.startsWith("event:")) {
67
+ e = t.substring(6).trim();
68
+ continue;
69
+ }
70
+ if (t.startsWith("data:")) {
71
+ const u = t.substring(5).trim();
72
+ if (u && u !== "[DONE]")
73
+ try {
74
+ const r = JSON.parse(u);
75
+ if (e === "error" || r.code || r.message) {
76
+ const o = r.message || r.code || "未知错误";
77
+ i("error", `百炼服务端错误: ${o}`);
78
+ return;
79
+ }
80
+ const s = (a = r == null ? void 0 : r.output) == null ? void 0 : a.text;
81
+ s && i && i("message", s);
82
+ } catch {
83
+ }
84
+ e = null;
85
+ }
86
+ }
87
+ };
88
+ export {
89
+ x as s
90
+ };