@das-fed/upf-ui 6.4.0-dev.215 → 6.4.0-dev.216

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 (96) hide show
  1. package/package.json +5 -5
  2. package/packages/business-components/ai-panel/index-B4pMosXu.js +143 -0
  3. package/packages/business-components/ai-panel/index-B4pMosXu.js.gz +0 -0
  4. package/packages/business-components/ai-panel/{index-BybM3Q9u.js → index-BgyMyjJo.js} +711 -700
  5. package/packages/business-components/ai-panel/index-BgyMyjJo.js.gz +0 -0
  6. package/packages/business-components/ai-panel/{index-CwdJKHy0.js → index-Bw7rNZmA.js} +9 -9
  7. package/packages/business-components/ai-panel/index-Bw7rNZmA.js.gz +0 -0
  8. package/packages/business-components/ai-panel/index.js +1 -1
  9. package/packages/business-components/device-panel/index.js +8873 -8773
  10. package/packages/business-components/device-panel/index.js.gz +0 -0
  11. package/packages/business-components/echarts/index.js +2056 -2049
  12. package/packages/business-components/echarts/index.js.gz +0 -0
  13. package/packages/business-components/process-configuration/index.js +50 -50
  14. package/packages/business-components/process-configuration/index.js.gz +0 -0
  15. package/packages/business-components/process-form/index.js +149 -149
  16. package/packages/business-components/process-form/index.js.gz +0 -0
  17. package/packages/business-components/process-search-form/index.js +60 -60
  18. package/packages/business-components/process-search-form/index.js.gz +0 -0
  19. package/packages/business-components/process-table/index.js +130 -128
  20. package/packages/business-components/process-table/index.js.gz +0 -0
  21. package/packages/business-components/urgent-panel/index.js +904 -896
  22. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  23. package/packages/business-components/user-org-dialog/index.js +249 -246
  24. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  25. package/packages/business-components/video-dialog/index.js +1 -0
  26. package/packages/business-components/video-dialog/index.js.gz +0 -0
  27. package/packages/components/autocomplete/index.js +12 -6
  28. package/packages/components/autocomplete/index.js.gz +0 -0
  29. package/packages/components/calendar/index.js +104 -104
  30. package/packages/components/calendar/index.js.gz +0 -0
  31. package/packages/components/cascader/index.js +27 -27
  32. package/packages/components/cascader/index.js.gz +0 -0
  33. package/packages/components/checkbox/index.js +54 -54
  34. package/packages/components/checkbox/index.js.gz +0 -0
  35. package/packages/components/date-picker/index.js +459 -459
  36. package/packages/components/date-picker/index.js.gz +0 -0
  37. package/packages/components/dimple-layout/index.js +63 -61
  38. package/packages/components/dimple-layout/index.js.gz +0 -0
  39. package/packages/components/dropdown/index.js +23 -22
  40. package/packages/components/dropdown/index.js.gz +0 -0
  41. package/packages/components/edit-table/index.js +224 -223
  42. package/packages/components/edit-table/index.js.gz +0 -0
  43. package/packages/components/error-overlay-model/index.js +44 -42
  44. package/packages/components/error-overlay-model/index.js.gz +0 -0
  45. package/packages/components/form-item/index.js +67 -63
  46. package/packages/components/form-item/index.js.gz +0 -0
  47. package/packages/components/image-viewer/index.js +32 -32
  48. package/packages/components/image-viewer/index.js.gz +0 -0
  49. package/packages/components/input/index.js +51 -51
  50. package/packages/components/input/index.js.gz +0 -0
  51. package/packages/components/input-number/index.js +44 -44
  52. package/packages/components/input-number/index.js.gz +0 -0
  53. package/packages/components/live-player/index.js +834 -832
  54. package/packages/components/live-player/index.js.gz +0 -0
  55. package/packages/components/map/index.js +437 -431
  56. package/packages/components/map/index.js.gz +0 -0
  57. package/packages/components/menu-aside/index.js +1 -1
  58. package/packages/components/menu-aside/index.js.gz +0 -0
  59. package/packages/components/message/index.js +6 -6
  60. package/packages/components/message/index.js.gz +0 -0
  61. package/packages/components/radio-tabs/index.js +33 -33
  62. package/packages/components/radio-tabs/index.js.gz +0 -0
  63. package/packages/components/rich-editor/index.js +4586 -4556
  64. package/packages/components/rich-editor/index.js.gz +0 -0
  65. package/packages/components/scrollbar/index.js +135 -135
  66. package/packages/components/scrollbar/index.js.gz +0 -0
  67. package/packages/components/search/index.js +2 -2
  68. package/packages/components/search/index.js.gz +0 -0
  69. package/packages/components/select/index.js +92 -92
  70. package/packages/components/select/index.js.gz +0 -0
  71. package/packages/components/select-list/index.js +10 -6
  72. package/packages/components/select-list/index.js.gz +0 -0
  73. package/packages/components/special-range-picker-month/index.js +16 -14
  74. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  75. package/packages/components/special-range-picker-year/index.js +53 -51
  76. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  77. package/packages/components/spin/index.js +35 -35
  78. package/packages/components/spin/index.js.gz +0 -0
  79. package/packages/components/split-panel/index.js +102 -101
  80. package/packages/components/split-panel/index.js.gz +0 -0
  81. package/packages/components/table/index.js +604 -599
  82. package/packages/components/table/index.js.gz +0 -0
  83. package/packages/components/time-line/index.js +1 -1
  84. package/packages/components/time-line/index.js.gz +0 -0
  85. package/packages/components/tree/index.js +182 -173
  86. package/packages/components/tree/index.js.gz +0 -0
  87. package/packages/components/tree-select/index.js +81 -81
  88. package/packages/components/tree-select/index.js.gz +0 -0
  89. package/packages/components/tree-table/index.js +2 -2
  90. package/packages/components/tree-table/index.js.gz +0 -0
  91. package/packages/components/tree-v2/index.js +1240 -1208
  92. package/packages/components/tree-v2/index.js.gz +0 -0
  93. package/packages/business-components/ai-panel/index-BybM3Q9u.js.gz +0 -0
  94. package/packages/business-components/ai-panel/index-CgWRv2Ge.js +0 -142
  95. package/packages/business-components/ai-panel/index-CgWRv2Ge.js.gz +0 -0
  96. package/packages/business-components/ai-panel/index-CwdJKHy0.js.gz +0 -0
@@ -1,13 +1,13 @@
1
1
  import '@das-fed/upf-ui/packages/components/split-panel/style.css';
2
- import { getCurrentScope as me, onScopeDispose as ge, unref as be, getCurrentInstance as ye, onMounted as se, nextTick as Se, ref as b, watch as U, defineComponent as he, computed as _, openBlock as P, createElementBlock as L, normalizeStyle as A, createElementVNode as O, renderSlot as D, normalizeClass as z, createCommentVNode as K, withModifiers as Q } from "vue";
2
+ import { getCurrentScope as me, onScopeDispose as ge, unref as be, getCurrentInstance as ye, onMounted as ue, nextTick as Se, ref as b, watch as U, defineComponent as he, computed as _, openBlock as P, createElementBlock as L, normalizeStyle as z, createElementVNode as O, renderSlot as D, normalizeClass as A, createCommentVNode as K, withModifiers as Q } from "vue";
3
3
  import { withInstall as Oe } from "@das-fed/upf-utils/with-install/index";
4
4
  import { setThemeRule as we } from "@das-fed/upf-web/packages/theme/index";
5
- function $(e) {
5
+ function q(e) {
6
6
  var n = typeof e;
7
7
  return e != null && (n == "object" || n == "function");
8
8
  }
9
- var Ee = typeof global == "object" && global && global.Object === Object && global, Te = typeof self == "object" && self && self.Object === Object && self, ie = Ee || Te || Function("return this")(), X = function() {
10
- return ie.Date.now();
9
+ var Ee = typeof global == "object" && global && global.Object === Object && global, Te = typeof self == "object" && self && self.Object === Object && self, oe = Ee || Te || Function("return this")(), X = function() {
10
+ return oe.Date.now();
11
11
  }, Fe = /\s/;
12
12
  function Ie(e) {
13
13
  for (var n = e.length; n-- && Fe.test(e.charAt(n)); )
@@ -18,16 +18,16 @@ var ke = /^\s+/;
18
18
  function Me(e) {
19
19
  return e && e.slice(0, Ie(e) + 1).replace(ke, "");
20
20
  }
21
- var R = ie.Symbol, oe = Object.prototype, Ce = oe.hasOwnProperty, xe = oe.toString, j = R ? R.toStringTag : void 0;
21
+ var R = oe.Symbol, ie = Object.prototype, Ce = ie.hasOwnProperty, xe = ie.toString, j = R ? R.toStringTag : void 0;
22
22
  function _e(e) {
23
23
  var n = Ce.call(e, j), t = e[j];
24
24
  try {
25
25
  e[j] = void 0;
26
- var i = !0;
26
+ var o = !0;
27
27
  } catch {
28
28
  }
29
29
  var r = xe.call(e);
30
- return i && (n ? e[j] = t : delete e[j]), r;
30
+ return o && (n ? e[j] = t : delete e[j]), r;
31
31
  }
32
32
  var je = Object.prototype, Ne = je.toString;
33
33
  function We(e) {
@@ -41,37 +41,37 @@ function Pe(e) {
41
41
  return e != null && typeof e == "object";
42
42
  }
43
43
  var Le = "[object Symbol]";
44
- function Ae(e) {
44
+ function ze(e) {
45
45
  return typeof e == "symbol" || Pe(e) && Be(e) == Le;
46
46
  }
47
- var Y = NaN, ze = /^[-+]0x[0-9a-f]+$/i, Qe = /^0b[01]+$/i, Xe = /^0o[0-7]+$/i, Ue = parseInt;
47
+ var Y = NaN, Ae = /^[-+]0x[0-9a-f]+$/i, Qe = /^0b[01]+$/i, Xe = /^0o[0-7]+$/i, Ue = parseInt;
48
48
  function Z(e) {
49
49
  if (typeof e == "number")
50
50
  return e;
51
- if (Ae(e))
51
+ if (ze(e))
52
52
  return Y;
53
- if ($(e)) {
53
+ if (q(e)) {
54
54
  var n = typeof e.valueOf == "function" ? e.valueOf() : e;
55
- e = $(n) ? n + "" : n;
55
+ e = q(n) ? n + "" : n;
56
56
  }
57
57
  if (typeof e != "string")
58
58
  return e === 0 ? e : +e;
59
59
  e = Me(e);
60
60
  var t = Qe.test(e);
61
- return t || Xe.test(e) ? Ue(e.slice(2), t ? 2 : 8) : ze.test(e) ? Y : +e;
61
+ return t || Xe.test(e) ? Ue(e.slice(2), t ? 2 : 8) : Ae.test(e) ? Y : +e;
62
62
  }
63
- var $e = "Expected a function", qe = Math.max, Ge = Math.min;
64
- function Ve(e, n, t) {
65
- var i, r, f, c, u, y, S = 0, a = !1, m = !1, p = !0;
63
+ var qe = "Expected a function", $e = Math.max, Ge = Math.min;
64
+ function He(e, n, t) {
65
+ var o, r, f, c, s, y, S = 0, a = !1, m = !1, p = !0;
66
66
  if (typeof e != "function")
67
- throw new TypeError($e);
68
- n = Z(n) || 0, $(t) && (a = !!t.leading, m = "maxWait" in t, f = m ? qe(Z(t.maxWait) || 0, n) : f, p = "trailing" in t ? !!t.trailing : p);
67
+ throw new TypeError(qe);
68
+ n = Z(n) || 0, q(t) && (a = !!t.leading, m = "maxWait" in t, f = m ? $e(Z(t.maxWait) || 0, n) : f, p = "trailing" in t ? !!t.trailing : p);
69
69
  function v(d) {
70
- var g = i, T = r;
71
- return i = r = void 0, S = d, c = e.apply(T, g), c;
70
+ var g = o, T = r;
71
+ return o = r = void 0, S = d, c = e.apply(T, g), c;
72
72
  }
73
- function s(d) {
74
- return S = d, u = setTimeout(I, n), a ? v(d) : c;
73
+ function u(d) {
74
+ return S = d, s = setTimeout(I, n), a ? v(d) : c;
75
75
  }
76
76
  function h(d) {
77
77
  var g = d - y, T = d - S, W = n - g;
@@ -85,33 +85,33 @@ function Ve(e, n, t) {
85
85
  var d = X();
86
86
  if (C(d))
87
87
  return N(d);
88
- u = setTimeout(I, h(d));
88
+ s = setTimeout(I, h(d));
89
89
  }
90
90
  function N(d) {
91
- return u = void 0, p && i ? v(d) : (i = r = void 0, c);
91
+ return s = void 0, p && o ? v(d) : (o = r = void 0, c);
92
92
  }
93
93
  function k() {
94
- u !== void 0 && clearTimeout(u), S = 0, i = y = r = u = void 0;
94
+ s !== void 0 && clearTimeout(s), S = 0, o = y = r = s = void 0;
95
95
  }
96
96
  function E() {
97
- return u === void 0 ? c : N(X());
97
+ return s === void 0 ? c : N(X());
98
98
  }
99
99
  function M() {
100
100
  var d = X(), g = C(d);
101
- if (i = arguments, r = this, y = d, g) {
102
- if (u === void 0)
103
- return s(y);
101
+ if (o = arguments, r = this, y = d, g) {
102
+ if (s === void 0)
103
+ return u(y);
104
104
  if (m)
105
- return clearTimeout(u), u = setTimeout(I, n), v(y);
105
+ return clearTimeout(s), s = setTimeout(I, n), v(y);
106
106
  }
107
- return u === void 0 && (u = setTimeout(I, n)), c;
107
+ return s === void 0 && (s = setTimeout(I, n)), c;
108
108
  }
109
109
  return M.cancel = k, M.flush = E, M;
110
110
  }
111
111
  var ee;
112
- const q = typeof window < "u", He = (e) => typeof e == "string", Ke = () => {
112
+ const $ = typeof window < "u", Ve = (e) => typeof e == "string", Ke = () => {
113
113
  };
114
- q && ((ee = window == null ? void 0 : window.navigator) != null && ee.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
114
+ $ && ((ee = window == null ? void 0 : window.navigator) != null && ee.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
115
115
  function fe(e) {
116
116
  return typeof e == "function" ? e() : be(e);
117
117
  }
@@ -122,31 +122,31 @@ function ce(e) {
122
122
  return me() ? (ge(e), !0) : !1;
123
123
  }
124
124
  function Ye(e, n = !0) {
125
- ye() ? se(e) : n ? e() : Se(e);
125
+ ye() ? ue(e) : n ? e() : Se(e);
126
126
  }
127
127
  function de(e) {
128
128
  var n;
129
129
  const t = fe(e);
130
130
  return (n = t == null ? void 0 : t.$el) != null ? n : t;
131
131
  }
132
- const Ze = q ? window : void 0, et = q ? window.document : void 0;
132
+ const Ze = $ ? window : void 0, et = $ ? window.document : void 0;
133
133
  function tt(...e) {
134
- let n, t, i, r;
135
- if (He(e[0]) || Array.isArray(e[0]) ? ([t, i, r] = e, n = Ze) : [n, t, i, r] = e, !n)
134
+ let n, t, o, r;
135
+ if (Ve(e[0]) || Array.isArray(e[0]) ? ([t, o, r] = e, n = Ze) : [n, t, o, r] = e, !n)
136
136
  return Ke;
137
- Array.isArray(t) || (t = [t]), Array.isArray(i) || (i = [i]);
137
+ Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
138
138
  const f = [], c = () => {
139
139
  f.forEach((a) => a()), f.length = 0;
140
- }, u = (a, m, p, v) => (a.addEventListener(m, p, v), () => a.removeEventListener(m, p, v)), y = U(() => [de(n), fe(r)], ([a, m]) => {
141
- c(), a && f.push(...t.flatMap((p) => i.map((v) => u(a, p, v, m))));
140
+ }, s = (a, m, p, v) => (a.addEventListener(m, p, v), () => a.removeEventListener(m, p, v)), y = U(() => [de(n), fe(r)], ([a, m]) => {
141
+ c(), a && f.push(...t.flatMap((p) => o.map((v) => s(a, p, v, m))));
142
142
  }, { immediate: !0, flush: "post" }), S = () => {
143
143
  y(), c();
144
144
  };
145
145
  return ce(S), S;
146
146
  }
147
147
  function nt(e, n = !1) {
148
- const t = b(), i = () => t.value = !!e();
149
- return i(), Ye(i, n), t;
148
+ const t = b(), o = () => t.value = !!e();
149
+ return o(), Ye(o, n), t;
150
150
  }
151
151
  const te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ne = "__vueuse_ssr_handlers__";
152
152
  te[ne] = te[ne] || {};
@@ -193,9 +193,9 @@ const le = [
193
193
  ]
194
194
  ];
195
195
  function lt(e, n = {}) {
196
- const { document: t = et, autoExit: i = !1 } = n, r = t == null ? void 0 : t.querySelector("html"), f = b(!1);
196
+ const { document: t = et, autoExit: o = !1 } = n, r = t == null ? void 0 : t.querySelector("html"), f = b(!1);
197
197
  let c = le[0];
198
- const u = nt(() => {
198
+ const s = nt(() => {
199
199
  if (t) {
200
200
  for (const h of le)
201
201
  if (h[1] in t)
@@ -205,41 +205,41 @@ function lt(e, n = {}) {
205
205
  return !1;
206
206
  }), [y, S, a, , m] = c;
207
207
  async function p() {
208
- u.value && (t != null && t[a] && await t[S](), f.value = !1);
208
+ s.value && (t != null && t[a] && await t[S](), f.value = !1);
209
209
  }
210
210
  async function v() {
211
- if (!u.value)
211
+ if (!s.value)
212
212
  return;
213
213
  await p();
214
214
  const h = de(r);
215
215
  h && (await h[y](), f.value = !0);
216
216
  }
217
- async function s() {
217
+ async function u() {
218
218
  f.value ? await p() : await v();
219
219
  }
220
220
  return t && tt(t, m, () => {
221
221
  f.value = !!(t != null && t[a]);
222
- }, !1), i && ce(p), {
223
- isSupported: u,
222
+ }, !1), o && ce(p), {
223
+ isSupported: s,
224
224
  isFullscreen: f,
225
225
  enter: v,
226
226
  exit: p,
227
- toggle: s
227
+ toggle: u
228
228
  };
229
229
  }
230
230
  var re;
231
231
  (function(e) {
232
232
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
233
233
  })(re || (re = {}));
234
- var rt = Object.defineProperty, ae = Object.getOwnPropertySymbols, at = Object.prototype.hasOwnProperty, ut = Object.prototype.propertyIsEnumerable, ue = (e, n, t) => n in e ? rt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, st = (e, n) => {
234
+ var rt = Object.defineProperty, ae = Object.getOwnPropertySymbols, at = Object.prototype.hasOwnProperty, st = Object.prototype.propertyIsEnumerable, se = (e, n, t) => n in e ? rt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, ut = (e, n) => {
235
235
  for (var t in n)
236
- at.call(n, t) && ue(e, t, n[t]);
236
+ at.call(n, t) && se(e, t, n[t]);
237
237
  if (ae)
238
238
  for (var t of ae(n))
239
- ut.call(n, t) && ue(e, t, n[t]);
239
+ st.call(n, t) && se(e, t, n[t]);
240
240
  return e;
241
241
  };
242
- const it = {
242
+ const ot = {
243
243
  easeInSine: [0.12, 0, 0.39, 0],
244
244
  easeOutSine: [0.61, 1, 0.88, 1],
245
245
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -265,10 +265,10 @@ const it = {
265
265
  easeOutBack: [0.34, 1.56, 0.64, 1],
266
266
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
267
267
  };
268
- st({
268
+ ut({
269
269
  linear: Je
270
- }, it);
271
- const ot = { class: "das-split-panel-second" }, ft = {
270
+ }, ot);
271
+ const it = { class: "das-split-panel-second" }, ft = {
272
272
  name: "DasSplitPanel"
273
273
  }, ct = /* @__PURE__ */ he({
274
274
  ...ft,
@@ -286,95 +286,96 @@ const ot = { class: "das-split-panel-second" }, ft = {
286
286
  },
287
287
  emits: ["onLeft", "onRight", "onDefault", "onMouseDown", "onMouseMove", "onMouseUp"],
288
288
  setup(e, { expose: n, emit: t }) {
289
- const { isFullscreen: i } = lt(), r = e, f = t, c = b(null), u = b(null), y = _(() => {
290
- var o;
291
- if (!(u != null && u.value)) return 1;
292
- const l = (o = u == null ? void 0 : u.value) == null ? void 0 : o.offsetWidth;
289
+ const { isFullscreen: o } = lt(), r = e, f = t, c = b(null), s = b(null), y = _(() => {
290
+ var i;
291
+ if (console.log("分割线宽度"), console.dir(s == null ? void 0 : s.value), !(s != null && s.value)) return 1;
292
+ const l = (i = s == null ? void 0 : s.value) == null ? void 0 : i.offsetWidth;
293
293
  return l == null || isNaN(l) ? 1 : l - 2 || 1;
294
294
  });
295
295
  _(() => y.value + "px");
296
- const S = b(null), a = b(), m = b(), p = b(), v = b(0), s = b(0), h = b(!0), C = _(() => s.value + "px"), I = _(() => ({ width: C.value })), N = _(() => ({ left: C.value })), k = b(!1), E = b(!1);
296
+ const S = b(null), a = b(), m = b(), p = b(), v = b(0), u = b(0), h = b(!0), C = _(() => u.value + "px"), I = _(() => ({ width: C.value })), N = _(() => ({ left: C.value })), k = b(!1), E = b(!1);
297
297
  U(
298
- s,
299
- (l, o) => {
298
+ u,
299
+ (l, i) => {
300
300
  l === 0 ? k.value = !0 : k.value = !1, l === (a == null ? void 0 : a.value) ? E.value = !0 : E.value = !1;
301
301
  },
302
302
  { immediate: !0 }
303
- ), U(i, (l) => {
304
- B();
303
+ ), U(o, (l) => {
304
+ console.log("isFullscreen", l), B();
305
305
  });
306
306
  const M = () => {
307
- s.value > v.value ? (s.value = v.value, f("onDefault")) : s.value <= v.value && s.value > 0 && (s.value = 0, f("onLeft"));
307
+ u.value > v.value ? (u.value = v.value, f("onDefault")) : u.value <= v.value && u.value > 0 && (u.value = 0, f("onLeft"));
308
308
  }, d = () => {
309
- s.value < v.value ? (s.value = v.value, f("onDefault")) : s.value >= v.value && s.value < a.value && (s.value = a.value, f("onRight"));
309
+ u.value < v.value ? (u.value = v.value, f("onDefault")) : u.value >= v.value && u.value < a.value && (u.value = a.value, f("onRight"));
310
310
  }, g = b({
311
311
  mouseFlag: !1,
312
312
  startX: 0,
313
313
  startWidth: 0
314
314
  }), T = (l) => {
315
- r.canDrag && (g.value.mouseFlag = !0, g.value.startX = l.clientX, g.value.startWidth = s.value, document.onmousemove = W, document.onmouseup = ve, f("onMouseDown"));
315
+ r.canDrag && (g.value.mouseFlag = !0, g.value.startX = l.clientX, g.value.startWidth = u.value, document.onmousemove = W, document.onmouseup = ve, f("onMouseDown"));
316
316
  }, W = (l) => {
317
317
  if (l.preventDefault(), !g.value.mouseFlag) return;
318
318
  let w = l.clientX - g.value.startX, F = g.value.startWidth + w;
319
- F < m.value ? s.value = m.value : F > p.value ? s.value = p.value : F > m.value && F < p.value && (s.value = F), f("onMouseMove");
319
+ F < m.value ? u.value = m.value : F > p.value ? u.value = p.value : F > m.value && F < p.value && (u.value = F), f("onMouseMove");
320
320
  }, ve = () => {
321
321
  g.value.mouseFlag = !1, document.onmousemove = null, document.onmouseup = null, f("onMouseUp");
322
- }, x = (l, o) => {
322
+ }, x = (l, i) => {
323
323
  let w = 0;
324
324
  const F = l ?? 0;
325
- if (typeof o == "number" && o <= 1)
326
- w = F * o;
327
- else if (typeof o == "number")
328
- w = o;
325
+ if (typeof i == "number" && i <= 1)
326
+ w = F * i;
327
+ else if (typeof i == "number")
328
+ w = i;
329
329
  else {
330
- const H = Number(o);
331
- w = isNaN(H) ? 0 : H;
330
+ const V = Number(i);
331
+ w = isNaN(V) ? 0 : V;
332
332
  }
333
333
  return isNaN(w) ? 0 : w;
334
334
  }, G = () => {
335
335
  let l = 0;
336
- r.defaultSplit.first !== void 0 ? (l = x(a.value, r.defaultSplit.first), v.value = l, s.value = l) : r.defaultSplit.second !== void 0 && (typeof r.defaultSplit.second == "number" && r.defaultSplit.second <= 1 ? l = x(a.value, 1 - r.defaultSplit.second) : l = a.value - x(a.value, r.defaultSplit.second), v.value = l, s.value = l), r.defaultClose && r.defaultClose == "first" ? s.value = 0 : r.defaultClose && r.defaultClose == "second" && (s.value = a.value);
336
+ r.defaultSplit.first !== void 0 ? (l = x(a.value, r.defaultSplit.first), v.value = l, u.value = l) : r.defaultSplit.second !== void 0 && (typeof r.defaultSplit.second == "number" && r.defaultSplit.second <= 1 ? l = x(a.value, 1 - r.defaultSplit.second) : l = a.value - x(a.value, r.defaultSplit.second), v.value = l, u.value = l), r.defaultClose && r.defaultClose == "first" ? u.value = 0 : r.defaultClose && r.defaultClose == "second" && (u.value = a.value);
337
337
  }, pe = () => {
338
338
  G();
339
339
  };
340
- let V = b(!0);
340
+ let H = b(!0);
341
341
  const B = () => {
342
342
  var w;
343
+ console.log("onresize");
343
344
  let l = !1;
344
345
  if (E.value && (l = !0), !(c != null && c.value)) return;
345
- const o = ((w = c == null ? void 0 : c.value) == null ? void 0 : w.clientWidth) ?? 0;
346
- if (a.value = o - y.value || 0, m.value = x(a.value, r.firstMin), p.value = a.value - x(a.value, r.secondMin), l && (s.value = a.value), h.value === !0) {
347
- if (G(), V.value) {
348
- V.value = !1;
346
+ const i = ((w = c == null ? void 0 : c.value) == null ? void 0 : w.clientWidth) ?? 0;
347
+ if (a.value = i - y.value || 0, m.value = x(a.value, r.firstMin), p.value = a.value - x(a.value, r.secondMin), console.log(a.value, m.value, p.value), l && (u.value = a.value), h.value === !0) {
348
+ if (G(), H.value) {
349
+ H.value = !1;
349
350
  return;
350
351
  }
351
352
  h.value = !1;
352
353
  }
353
354
  };
354
- return se(() => {
355
+ return ue(() => {
355
356
  var l;
356
- h.value = !0, S.value = new ResizeObserver(Ve(B, 30)), (l = S.value) == null || l.observe(c == null ? void 0 : c.value), B();
357
+ h.value = !0, S.value = new ResizeObserver(He(B, 30)), (l = S.value) == null || l.observe(c == null ? void 0 : c.value), B();
357
358
  }), n({
358
359
  toLeft: M,
359
360
  toRight: d,
360
361
  reset: pe
361
- }), (l, o) => (P(), L("div", {
362
+ }), (l, i) => (P(), L("div", {
362
363
  class: "das-ui-split-panel",
363
364
  ref_key: "$splitPanel",
364
365
  ref: c,
365
- style: A(l.boxStyle)
366
+ style: z(l.boxStyle)
366
367
  }, [
367
368
  O("div", {
368
369
  class: "das-split-panel-first",
369
- style: A(I.value)
370
+ style: z(I.value)
370
371
  }, [
371
372
  D(l.$slots, "firstSlot", {}, void 0, !0)
372
373
  ], 4),
373
374
  O("div", {
374
375
  class: "das-split-panel-mid",
375
376
  ref_key: "$splitLine",
376
- ref: u,
377
- style: A(N.value)
377
+ ref: s,
378
+ style: z(N.value)
378
379
  }, [
379
380
  l.canFold ? (P(), L("span", {
380
381
  key: 0,
@@ -382,8 +383,8 @@ const ot = { class: "das-split-panel-second" }, ft = {
382
383
  }, [
383
384
  D(l.$slots, "leftBtn", {}, () => [
384
385
  O("span", {
385
- class: z(["das-split-panel-btn left", [E.value ? "isBase" : ""]])
386
- }, o[2] || (o[2] = [
386
+ class: A(["das-split-panel-btn left", [E.value ? "isBase" : ""]])
387
+ }, i[2] || (i[2] = [
387
388
  O("div", { class: "arrow" }, [
388
389
  O("span", { class: "arrowItem" })
389
390
  ], -1)
@@ -391,13 +392,13 @@ const ot = { class: "das-split-panel-second" }, ft = {
391
392
  ], !0)
392
393
  ])) : K("", !0),
393
394
  O("div", {
394
- class: z(["das-split-panel-line", { hide: k.value || E.value, canDrag: r.canDrag }]),
395
- onDragstart: o[0] || (o[0] = Q(() => {
395
+ class: A(["das-split-panel-line", { hide: k.value || E.value, canDrag: r.canDrag }]),
396
+ onDragstart: i[0] || (i[0] = Q(() => {
396
397
  }, ["stop", "prevent"])),
397
398
  onMousedown: Q(T, ["prevent"]),
398
- onClick: o[1] || (o[1] = Q(() => {
399
+ onClick: i[1] || (i[1] = Q(() => {
399
400
  }, ["stop", "prevent"]))
400
- }, o[3] || (o[3] = [
401
+ }, i[3] || (i[3] = [
401
402
  O("div", { class: "das-split-panel-divider" }, null, -1)
402
403
  ]), 34),
403
404
  l.canFold ? (P(), L("span", {
@@ -406,8 +407,8 @@ const ot = { class: "das-split-panel-second" }, ft = {
406
407
  }, [
407
408
  D(l.$slots, "rightBtn", {}, () => [
408
409
  O("span", {
409
- class: z(["das-split-panel-btn right", [k.value ? "isBase" : ""]])
410
- }, o[4] || (o[4] = [
410
+ class: A(["das-split-panel-btn right", [k.value ? "isBase" : ""]])
411
+ }, i[4] || (i[4] = [
411
412
  O("div", { class: "arrow" }, [
412
413
  O("span", { class: "arrowItem" })
413
414
  ], -1)
@@ -415,15 +416,15 @@ const ot = { class: "das-split-panel-second" }, ft = {
415
416
  ], !0)
416
417
  ])) : K("", !0)
417
418
  ], 4),
418
- O("div", ot, [
419
+ O("div", it, [
419
420
  D(l.$slots, "secondSlot", {}, void 0, !0)
420
421
  ])
421
422
  ], 4));
422
423
  }
423
424
  }), dt = (e, n) => {
424
425
  const t = e.__vccOpts || e;
425
- for (const [i, r] of n)
426
- t[i] = r;
426
+ for (const [o, r] of n)
427
+ t[o] = r;
427
428
  return t;
428
429
  }, vt = /* @__PURE__ */ dt(ct, [["__scopeId", "data-v-4ea84997"]]), pt = {
429
430
  "--das-ui-split-panel-color-primary": "#5582F3",