@das-fed/ui 7.0.7-hot.21 → 7.0.7-hot.22

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 (99) hide show
  1. package/package.json +5 -5
  2. package/packages/business-components/ai-panel/{index-8yffh0Id.js → index-DMJXZM7n.js} +1067 -1056
  3. package/packages/business-components/ai-panel/index-DMJXZM7n.js.gz +0 -0
  4. package/packages/business-components/ai-panel/{index-IzGl26KU.js → index-MqhMkLo9.js} +9 -9
  5. package/packages/business-components/ai-panel/index-MqhMkLo9.js.gz +0 -0
  6. package/packages/business-components/ai-panel/{index-OwRrV6K8.js → index-_q72oKSF.js} +63 -62
  7. package/packages/business-components/ai-panel/index-_q72oKSF.js.gz +0 -0
  8. package/packages/business-components/ai-panel/index.js +1 -1
  9. package/packages/business-components/device-panel/index.js +14908 -14808
  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 +46 -46
  14. package/packages/business-components/process-configuration/index.js.gz +0 -0
  15. package/packages/business-components/process-form/index.js +99 -99
  16. package/packages/business-components/process-form/index.js.gz +0 -0
  17. package/packages/business-components/process-search-form/index.js +77 -77
  18. package/packages/business-components/process-search-form/index.js.gz +0 -0
  19. package/packages/business-components/process-table/index.js +215 -213
  20. package/packages/business-components/process-table/index.js.gz +0 -0
  21. package/packages/business-components/urgent-panel/index.js +1104 -1096
  22. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  23. package/packages/business-components/user-org-dialog/index.js +243 -240
  24. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  25. package/packages/business-components/video-dialog/index.js +65 -64
  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 +99 -99
  30. package/packages/components/calendar/index.js.gz +0 -0
  31. package/packages/components/cascader/index.js +2 -2
  32. package/packages/components/cascader/index.js.gz +0 -0
  33. package/packages/components/checkbox/index.js +30 -30
  34. package/packages/components/checkbox/index.js.gz +0 -0
  35. package/packages/components/date-picker/index.js +212 -212
  36. package/packages/components/date-picker/index.js.gz +0 -0
  37. package/packages/components/dimple-layout/index.js +77 -75
  38. package/packages/components/dimple-layout/index.js.gz +0 -0
  39. package/packages/components/dropdown/index.js +25 -24
  40. package/packages/components/dropdown/index.js.gz +0 -0
  41. package/packages/components/edit-table/index.js +398 -397
  42. package/packages/components/edit-table/index.js.gz +0 -0
  43. package/packages/components/error-overlay-model/index.js +47 -45
  44. package/packages/components/error-overlay-model/index.js.gz +0 -0
  45. package/packages/components/form-item/index.js +67 -67
  46. package/packages/components/form-item/index.js.gz +0 -0
  47. package/packages/components/hls-player/index.js +14 -7
  48. package/packages/components/hls-player/index.js.gz +0 -0
  49. package/packages/components/image-upload/index.js +147 -143
  50. package/packages/components/image-upload/index.js.gz +0 -0
  51. package/packages/components/image-viewer/index.js +297 -293
  52. package/packages/components/image-viewer/index.js.gz +0 -0
  53. package/packages/components/input/index.js +52 -52
  54. package/packages/components/input/index.js.gz +0 -0
  55. package/packages/components/input-number/index.js +26 -26
  56. package/packages/components/input-number/index.js.gz +0 -0
  57. package/packages/components/live-player/index.js +251 -248
  58. package/packages/components/live-player/index.js.gz +0 -0
  59. package/packages/components/map/index.js +421 -415
  60. package/packages/components/map/index.js.gz +0 -0
  61. package/packages/components/menu-aside/index.js +1 -1
  62. package/packages/components/menu-aside/index.js.gz +0 -0
  63. package/packages/components/message/index.js +6 -6
  64. package/packages/components/message/index.js.gz +0 -0
  65. package/packages/components/popover/index.js +12 -12
  66. package/packages/components/popover/index.js.gz +0 -0
  67. package/packages/components/radio-tabs/index.js +34 -34
  68. package/packages/components/radio-tabs/index.js.gz +0 -0
  69. package/packages/components/rich-editor/index.js +4613 -4583
  70. package/packages/components/rich-editor/index.js.gz +0 -0
  71. package/packages/components/scrollbar/index.js +135 -135
  72. package/packages/components/scrollbar/index.js.gz +0 -0
  73. package/packages/components/search/index.js +24 -24
  74. package/packages/components/search/index.js.gz +0 -0
  75. package/packages/components/select/index.js +60 -60
  76. package/packages/components/select/index.js.gz +0 -0
  77. package/packages/components/select-list/index.js +9 -5
  78. package/packages/components/select-list/index.js.gz +0 -0
  79. package/packages/components/special-range-picker-month/index.js +16 -14
  80. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  81. package/packages/components/special-range-picker-year/index.js +53 -51
  82. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  83. package/packages/components/spin/index.js +33 -33
  84. package/packages/components/spin/index.js.gz +0 -0
  85. package/packages/components/split-panel/index.js +129 -128
  86. package/packages/components/split-panel/index.js.gz +0 -0
  87. package/packages/components/table/index.js +179 -178
  88. package/packages/components/table/index.js.gz +0 -0
  89. package/packages/components/time-line/index.js +1 -1
  90. package/packages/components/time-line/index.js.gz +0 -0
  91. package/packages/components/tree-select/index.js +1 -1
  92. package/packages/components/tree-select/index.js.gz +0 -0
  93. package/packages/components/tree-table/index.js +2 -2
  94. package/packages/components/tree-table/index.js.gz +0 -0
  95. package/packages/components/tree-v2/index.js +1117 -1093
  96. package/packages/components/tree-v2/index.js.gz +0 -0
  97. package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
  98. package/packages/business-components/ai-panel/index-IzGl26KU.js.gz +0 -0
  99. package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
@@ -1,10 +1,10 @@
1
1
  import '@das-fed/ui/packages/components/split-panel/style.css';
2
- import { getCurrentScope as ge, onScopeDispose as be, getCurrentInstance as ye, onMounted as oe, nextTick as Se, unref as $, ref as y, watch as q, defineComponent as he, computed as x, createElementBlock as z, openBlock as L, normalizeStyle as A, createElementVNode as E, renderSlot as R, createCommentVNode as P, normalizeClass as Q, createVNode as J, withModifiers as X } from "vue";
2
+ import { getCurrentScope as ge, onScopeDispose as be, getCurrentInstance as ye, onMounted as se, nextTick as Se, unref as q, ref as y, watch as $, defineComponent as he, computed as x, createElementBlock as z, openBlock as A, normalizeStyle as L, createElementVNode as w, renderSlot as R, createCommentVNode as P, normalizeClass as Q, createVNode as J, withModifiers as X } from "vue";
3
3
  import { withInstall as Oe } from "@das-fed/utils/with-install/index";
4
- import { DasIconShuyoufanye as we } from "@das-fed/ui/packages/icons/shuyoufanye/index";
5
- import { DasIconShuzuofanye as Ee } from "@das-fed/ui/packages/icons/shuzuofanye/index";
4
+ import { DasIconShuyoufanye as Ee } from "@das-fed/ui/packages/icons/shuyoufanye/index";
5
+ import { DasIconShuzuofanye as we } from "@das-fed/ui/packages/icons/shuzuofanye/index";
6
6
  import { setThemeRule as Te } from "@das-fed/web/packages/theme/index";
7
- function V(e) {
7
+ function G(e) {
8
8
  var n = typeof e;
9
9
  return e != null && (n == "object" || n == "function");
10
10
  }
@@ -25,11 +25,11 @@ function De(e) {
25
25
  var n = xe.call(e, j), t = e[j];
26
26
  try {
27
27
  e[j] = void 0;
28
- var o = !0;
28
+ var s = !0;
29
29
  } catch {
30
30
  }
31
- var l = je.call(e);
32
- return o && (n ? e[j] = t : delete e[j]), l;
31
+ var r = je.call(e);
32
+ return s && (n ? e[j] = t : delete e[j]), r;
33
33
  }
34
34
  var Ne = Object.prototype, Re = Ne.toString;
35
35
  function Pe(e) {
@@ -39,83 +39,83 @@ var We = "[object Null]", Be = "[object Undefined]", Y = W ? W.toStringTag : voi
39
39
  function ze(e) {
40
40
  return e == null ? e === void 0 ? Be : We : Y && Y in Object(e) ? De(e) : Pe(e);
41
41
  }
42
- function Le(e) {
42
+ function Ae(e) {
43
43
  return e != null && typeof e == "object";
44
44
  }
45
- var Ae = "[object Symbol]";
45
+ var Le = "[object Symbol]";
46
46
  function Qe(e) {
47
- return typeof e == "symbol" || Le(e) && ze(e) == Ae;
47
+ return typeof e == "symbol" || Ae(e) && ze(e) == Le;
48
48
  }
49
- var Z = NaN, Xe = /^[-+]0x[0-9a-f]+$/i, Ue = /^0b[01]+$/i, $e = /^0o[0-7]+$/i, qe = parseInt;
49
+ var Z = NaN, Xe = /^[-+]0x[0-9a-f]+$/i, Ue = /^0b[01]+$/i, qe = /^0o[0-7]+$/i, $e = parseInt;
50
50
  function ee(e) {
51
51
  if (typeof e == "number")
52
52
  return e;
53
53
  if (Qe(e))
54
54
  return Z;
55
- if (V(e)) {
55
+ if (G(e)) {
56
56
  var n = typeof e.valueOf == "function" ? e.valueOf() : e;
57
- e = V(n) ? n + "" : n;
57
+ e = G(n) ? n + "" : n;
58
58
  }
59
59
  if (typeof e != "string")
60
60
  return e === 0 ? e : +e;
61
61
  e = _e(e);
62
62
  var t = Ue.test(e);
63
- return t || $e.test(e) ? qe(e.slice(2), t ? 2 : 8) : Xe.test(e) ? Z : +e;
63
+ return t || qe.test(e) ? $e(e.slice(2), t ? 2 : 8) : Xe.test(e) ? Z : +e;
64
64
  }
65
- var Ve = "Expected a function", Ge = Math.max, He = Math.min;
65
+ var Ge = "Expected a function", Ve = Math.max, He = Math.min;
66
66
  function Ke(e, n, t) {
67
- var o, l, i, f, u, g, S = 0, a = !1, m = !1, v = !0;
67
+ var s, r, i, f, o, g, S = 0, a = !1, p = !1, v = !0;
68
68
  if (typeof e != "function")
69
- throw new TypeError(Ve);
70
- n = ee(n) || 0, V(t) && (a = !!t.leading, m = "maxWait" in t, i = m ? Ge(ee(t.maxWait) || 0, n) : i, v = "trailing" in t ? !!t.trailing : v);
69
+ throw new TypeError(Ge);
70
+ n = ee(n) || 0, G(t) && (a = !!t.leading, p = "maxWait" in t, i = p ? Ve(ee(t.maxWait) || 0, n) : i, v = "trailing" in t ? !!t.trailing : v);
71
71
  function d(c) {
72
- var b = o, w = l;
73
- return o = l = void 0, S = c, f = e.apply(w, b), f;
72
+ var b = s, E = r;
73
+ return s = r = void 0, S = c, f = e.apply(E, b), f;
74
74
  }
75
- function s(c) {
76
- return S = c, u = setTimeout(T, n), a ? d(c) : f;
75
+ function u(c) {
76
+ return S = c, o = setTimeout(T, n), a ? d(c) : f;
77
77
  }
78
78
  function h(c) {
79
- var b = c - g, w = c - S, N = n - b;
80
- return m ? He(N, i - w) : N;
79
+ var b = c - g, E = c - S, N = n - b;
80
+ return p ? He(N, i - E) : N;
81
81
  }
82
82
  function M(c) {
83
- var b = c - g, w = c - S;
84
- return g === void 0 || b >= n || b < 0 || m && w >= i;
83
+ var b = c - g, E = c - S;
84
+ return g === void 0 || b >= n || b < 0 || p && E >= i;
85
85
  }
86
86
  function T() {
87
87
  var c = U();
88
88
  if (M(c))
89
89
  return D(c);
90
- u = setTimeout(T, h(c));
90
+ o = setTimeout(T, h(c));
91
91
  }
92
92
  function D(c) {
93
- return u = void 0, v && o ? d(c) : (o = l = void 0, f);
93
+ return o = void 0, v && s ? d(c) : (s = r = void 0, f);
94
94
  }
95
95
  function F() {
96
- u !== void 0 && clearTimeout(u), S = 0, o = g = l = u = void 0;
96
+ o !== void 0 && clearTimeout(o), S = 0, s = g = r = o = void 0;
97
97
  }
98
98
  function O() {
99
- return u === void 0 ? f : D(U());
99
+ return o === void 0 ? f : D(U());
100
100
  }
101
101
  function I() {
102
102
  var c = U(), b = M(c);
103
- if (o = arguments, l = this, g = c, b) {
104
- if (u === void 0)
105
- return s(g);
106
- if (m)
107
- return clearTimeout(u), u = setTimeout(T, n), d(g);
103
+ if (s = arguments, r = this, g = c, b) {
104
+ if (o === void 0)
105
+ return u(g);
106
+ if (p)
107
+ return clearTimeout(o), o = setTimeout(T, n), d(g);
108
108
  }
109
- return u === void 0 && (u = setTimeout(T, n)), f;
109
+ return o === void 0 && (o = setTimeout(T, n)), f;
110
110
  }
111
111
  return I.cancel = F, I.flush = O, I;
112
112
  }
113
113
  var te;
114
- const G = typeof window < "u", Je = (e) => typeof e == "string", Ye = () => {
114
+ const V = typeof window < "u", Je = (e) => typeof e == "string", Ye = () => {
115
115
  };
116
- G && ((te = window == null ? void 0 : window.navigator) != null && te.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
116
+ V && ((te = window == null ? void 0 : window.navigator) != null && te.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
117
117
  function ce(e) {
118
- return typeof e == "function" ? e() : $(e);
118
+ return typeof e == "function" ? e() : q(e);
119
119
  }
120
120
  function Ze(e) {
121
121
  return e;
@@ -124,35 +124,35 @@ function de(e) {
124
124
  return ge() ? (be(e), !0) : !1;
125
125
  }
126
126
  function et(e, n = !0) {
127
- ye() ? oe(e) : n ? e() : Se(e);
127
+ ye() ? se(e) : n ? e() : Se(e);
128
128
  }
129
129
  function ve(e) {
130
130
  var n;
131
131
  const t = ce(e);
132
132
  return (n = t == null ? void 0 : t.$el) != null ? n : t;
133
133
  }
134
- const tt = G ? window : void 0, nt = G ? window.document : void 0;
135
- function rt(...e) {
136
- let n, t, o, l;
137
- if (Je(e[0]) || Array.isArray(e[0]) ? ([t, o, l] = e, n = tt) : [n, t, o, l] = e, !n)
134
+ const tt = V ? window : void 0, nt = V ? window.document : void 0;
135
+ function lt(...e) {
136
+ let n, t, s, r;
137
+ if (Je(e[0]) || Array.isArray(e[0]) ? ([t, s, r] = e, n = tt) : [n, t, s, r] = e, !n)
138
138
  return Ye;
139
- Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
139
+ Array.isArray(t) || (t = [t]), Array.isArray(s) || (s = [s]);
140
140
  const i = [], f = () => {
141
141
  i.forEach((a) => a()), i.length = 0;
142
- }, u = (a, m, v, d) => (a.addEventListener(m, v, d), () => a.removeEventListener(m, v, d)), g = q(() => [ve(n), ce(l)], ([a, m]) => {
143
- f(), a && i.push(...t.flatMap((v) => o.map((d) => u(a, v, d, m))));
142
+ }, o = (a, p, v, d) => (a.addEventListener(p, v, d), () => a.removeEventListener(p, v, d)), g = $(() => [ve(n), ce(r)], ([a, p]) => {
143
+ f(), a && i.push(...t.flatMap((v) => s.map((d) => o(a, v, d, p))));
144
144
  }, { immediate: !0, flush: "post" }), S = () => {
145
145
  g(), f();
146
146
  };
147
147
  return de(S), S;
148
148
  }
149
- function lt(e, n = !1) {
150
- const t = y(), o = () => t.value = !!e();
151
- return o(), et(o, n), t;
149
+ function rt(e, n = !1) {
150
+ const t = y(), s = () => t.value = !!e();
151
+ return s(), et(s, n), t;
152
152
  }
153
- const ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, re = "__vueuse_ssr_handlers__";
154
- ne[re] = ne[re] || {};
155
- const le = [
153
+ const ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, le = "__vueuse_ssr_handlers__";
154
+ ne[le] = ne[le] || {};
155
+ const re = [
156
156
  [
157
157
  "requestFullscreen",
158
158
  "exitFullscreen",
@@ -195,50 +195,50 @@ const le = [
195
195
  ]
196
196
  ];
197
197
  function at(e, n = {}) {
198
- const { document: t = nt, autoExit: o = !1 } = n, l = t == null ? void 0 : t.querySelector("html"), i = y(!1);
199
- let f = le[0];
200
- const u = lt(() => {
198
+ const { document: t = nt, autoExit: s = !1 } = n, r = t == null ? void 0 : t.querySelector("html"), i = y(!1);
199
+ let f = re[0];
200
+ const o = rt(() => {
201
201
  if (t) {
202
- for (const h of le)
202
+ for (const h of re)
203
203
  if (h[1] in t)
204
204
  return f = h, !0;
205
205
  } else
206
206
  return !1;
207
207
  return !1;
208
- }), [g, S, a, , m] = f;
208
+ }), [g, S, a, , p] = f;
209
209
  async function v() {
210
- u.value && (t != null && t[a] && await t[S](), i.value = !1);
210
+ o.value && (t != null && t[a] && await t[S](), i.value = !1);
211
211
  }
212
212
  async function d() {
213
- if (!u.value)
213
+ if (!o.value)
214
214
  return;
215
215
  await v();
216
- const h = ve(l);
216
+ const h = ve(r);
217
217
  h && (await h[g](), i.value = !0);
218
218
  }
219
- async function s() {
219
+ async function u() {
220
220
  i.value ? await v() : await d();
221
221
  }
222
- return t && rt(t, m, () => {
222
+ return t && lt(t, p, () => {
223
223
  i.value = !!(t != null && t[a]);
224
- }, !1), o && de(v), {
225
- isSupported: u,
224
+ }, !1), s && de(v), {
225
+ isSupported: o,
226
226
  isFullscreen: i,
227
227
  enter: d,
228
228
  exit: v,
229
- toggle: s
229
+ toggle: u
230
230
  };
231
231
  }
232
232
  var ae;
233
233
  (function(e) {
234
234
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
235
235
  })(ae || (ae = {}));
236
- var ut = Object.defineProperty, ue = Object.getOwnPropertySymbols, st = Object.prototype.hasOwnProperty, ot = Object.prototype.propertyIsEnumerable, se = (e, n, t) => n in e ? ut(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, it = (e, n) => {
236
+ var ot = Object.defineProperty, oe = Object.getOwnPropertySymbols, ut = Object.prototype.hasOwnProperty, st = Object.prototype.propertyIsEnumerable, ue = (e, n, t) => n in e ? ot(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, it = (e, n) => {
237
237
  for (var t in n || (n = {}))
238
- st.call(n, t) && se(e, t, n[t]);
239
- if (ue)
240
- for (var t of ue(n))
241
- ot.call(n, t) && se(e, t, n[t]);
238
+ ut.call(n, t) && ue(e, t, n[t]);
239
+ if (oe)
240
+ for (var t of oe(n))
241
+ st.call(n, t) && ue(e, t, n[t]);
242
242
  return e;
243
243
  };
244
244
  const ft = {
@@ -288,51 +288,52 @@ const ct = { class: "das-split-panel-second" }, dt = {
288
288
  },
289
289
  emits: ["onLeft", "onRight", "onDefault", "onMouseDown", "onMouseMove", "onMouseUp"],
290
290
  setup(e, { expose: n, emit: t }) {
291
- const { isFullscreen: o } = at(), l = e, i = t, f = y(null), u = y(null), g = x(() => {
292
- var r;
293
- return u != null && u.value && Number((r = u == null ? void 0 : u.value) == null ? void 0 : r.offsetWidth) - 2 || 1;
291
+ const { isFullscreen: s } = at(), r = e, i = t, f = y(null), o = y(null), g = x(() => {
292
+ var l;
293
+ return console.log("分割线宽度"), console.dir(o == null ? void 0 : o.value), o != null && o.value && Number((l = o == null ? void 0 : o.value) == null ? void 0 : l.offsetWidth) - 2 || 1;
294
294
  });
295
295
  x(() => g.value + "px");
296
- const S = y(null), a = y(), m = y(), v = y(), d = y(0), s = y(0), h = y(!0), M = x(() => s.value + "px"), T = x(() => ({ width: M.value })), D = x(() => ({ left: M.value })), F = y(!1), O = y(!1);
297
- q(
298
- s,
299
- (r, p) => {
300
- r === 0 ? F.value = !0 : F.value = !1, r === (a == null ? void 0 : a.value) ? O.value = !0 : O.value = !1;
296
+ const S = y(null), a = y(), p = y(), v = y(), d = y(0), u = y(0), h = y(!0), M = x(() => u.value + "px"), T = x(() => ({ width: M.value })), D = x(() => ({ left: M.value })), F = y(!1), O = y(!1);
297
+ $(
298
+ u,
299
+ (l, m) => {
300
+ l === 0 ? F.value = !0 : F.value = !1, l === (a == null ? void 0 : a.value) ? O.value = !0 : O.value = !1;
301
301
  },
302
302
  { immediate: !0 }
303
- ), q(o, (r) => {
304
- B();
303
+ ), $(s, (l) => {
304
+ console.log("isFullscreen", l), B();
305
305
  });
306
306
  const I = () => {
307
- s.value > d.value ? (s.value = d.value, i("onDefault")) : s.value <= d.value && s.value > 0 && (s.value = 0, i("onLeft"));
307
+ u.value > d.value ? (u.value = d.value, i("onDefault")) : u.value <= d.value && u.value > 0 && (u.value = 0, i("onLeft"));
308
308
  }, c = () => {
309
- s.value < d.value ? (s.value = d.value, i("onDefault")) : s.value >= d.value && s.value < a.value && (s.value = a.value, i("onRight"));
309
+ u.value < d.value ? (u.value = d.value, i("onDefault")) : u.value >= d.value && u.value < a.value && (u.value = a.value, i("onRight"));
310
310
  }, b = y({
311
311
  mouseFlag: !1,
312
312
  startX: 0,
313
313
  startWidth: 0
314
- }), w = (r) => {
315
- l.canDrag && (b.value.mouseFlag = !0, b.value.startX = r.clientX, b.value.startWidth = s.value, document.onmousemove = N, document.onmouseup = pe, i("onMouseDown"));
316
- }, N = (r) => {
317
- if (r.preventDefault(), !b.value.mouseFlag) return;
318
- let k = r.clientX - b.value.startX, _ = b.value.startWidth + k;
319
- _ < m.value ? s.value = m.value : _ > v.value ? s.value = v.value : _ > m.value && _ < v.value && (s.value = _), i("onMouseMove");
314
+ }), E = (l) => {
315
+ r.canDrag && (b.value.mouseFlag = !0, b.value.startX = l.clientX, b.value.startWidth = u.value, document.onmousemove = N, document.onmouseup = pe, i("onMouseDown"));
316
+ }, N = (l) => {
317
+ if (l.preventDefault(), !b.value.mouseFlag) return;
318
+ let k = l.clientX - b.value.startX, _ = b.value.startWidth + k;
319
+ _ < p.value ? u.value = p.value : _ > v.value ? u.value = v.value : _ > p.value && _ < v.value && (u.value = _), i("onMouseMove");
320
320
  }, pe = () => {
321
321
  b.value.mouseFlag = !1, document.onmousemove = null, document.onmouseup = null, i("onMouseUp");
322
- }, C = (r, p) => {
322
+ }, C = (l, m) => {
323
323
  let k = 0;
324
- return typeof p == "number" && p <= 1 ? k = r * p : typeof p == "number" ? k = p : k = Number(p), k;
324
+ return typeof m == "number" && m <= 1 ? k = l * m : typeof m == "number" ? k = m : k = Number(m), k;
325
325
  }, H = () => {
326
- let r = 0;
327
- l.defaultSplit.first !== void 0 ? (r = C(a.value, l.defaultSplit.first), d.value = r, s.value = r) : l.defaultSplit.second !== void 0 && (typeof l.defaultSplit.second == "number" && l.defaultSplit.second <= 1 ? r = C(a.value, 1 - l.defaultSplit.second) : r = a.value - C(a.value, l.defaultSplit.second), d.value = r, s.value = r), l.defaultClose && l.defaultClose == "first" ? s.value = 0 : l.defaultClose && l.defaultClose == "second" && (s.value = a.value);
326
+ let l = 0;
327
+ r.defaultSplit.first !== void 0 ? (l = C(a.value, r.defaultSplit.first), d.value = l, u.value = l) : r.defaultSplit.second !== void 0 && (typeof r.defaultSplit.second == "number" && r.defaultSplit.second <= 1 ? l = C(a.value, 1 - r.defaultSplit.second) : l = a.value - C(a.value, r.defaultSplit.second), d.value = l, u.value = l), r.defaultClose && r.defaultClose == "first" ? u.value = 0 : r.defaultClose && r.defaultClose == "second" && (u.value = a.value);
328
328
  }, me = () => {
329
329
  H();
330
330
  };
331
331
  let K = y(!0);
332
332
  const B = () => {
333
- var p;
334
- let r = !1;
335
- if (O.value && (r = !0), !!(f != null && f.value) && (a.value = Number(((p = f == null ? void 0 : f.value) == null ? void 0 : p.offsetWidth) - (g == null ? void 0 : g.value)) || 0, m.value = C(a.value, l.firstMin), v.value = a.value - C(a.value, l.secondMin), r && (s.value = a.value), h.value === !0)) {
333
+ var m;
334
+ console.log("onresize");
335
+ let l = !1;
336
+ if (O.value && (l = !0), !!(f != null && f.value) && (a.value = Number(((m = f == null ? void 0 : f.value) == null ? void 0 : m.offsetWidth) - (g == null ? void 0 : g.value)) || 0, p.value = C(a.value, r.firstMin), v.value = a.value - C(a.value, r.secondMin), console.log(a.value, p.value, v.value), l && (u.value = a.value), h.value === !0)) {
336
337
  if (H(), K.value) {
337
338
  K.value = !1;
338
339
  return;
@@ -340,74 +341,74 @@ const ct = { class: "das-split-panel-second" }, dt = {
340
341
  h.value = !1;
341
342
  }
342
343
  };
343
- return oe(() => {
344
- var r;
345
- h.value = !0, S.value = new ResizeObserver(Ke(B, 30)), (r = S.value) == null || r.observe(f == null ? void 0 : f.value), B();
344
+ return se(() => {
345
+ var l;
346
+ h.value = !0, S.value = new ResizeObserver(Ke(B, 30)), (l = S.value) == null || l.observe(f == null ? void 0 : f.value), B();
346
347
  }), n({
347
348
  toLeft: I,
348
349
  toRight: c,
349
350
  reset: me
350
- }), (r, p) => (L(), z(
351
+ }), (l, m) => (A(), z(
351
352
  "div",
352
353
  {
353
354
  class: "das-ui-split-panel",
354
355
  ref_key: "$splitPanel",
355
356
  ref: f,
356
- style: A(r.boxStyle)
357
+ style: L(l.boxStyle)
357
358
  },
358
359
  [
359
- E(
360
+ w(
360
361
  "div",
361
362
  {
362
363
  class: "das-split-panel-first",
363
- style: A(T.value)
364
+ style: L(T.value)
364
365
  },
365
366
  [
366
- R(r.$slots, "firstSlot", {}, void 0, !0)
367
+ R(l.$slots, "firstSlot", {}, void 0, !0)
367
368
  ],
368
369
  4
369
370
  /* STYLE */
370
371
  ),
371
- E(
372
+ w(
372
373
  "div",
373
374
  {
374
375
  class: "das-split-panel-mid",
375
376
  ref_key: "$splitLine",
376
- ref: u,
377
- style: A(D.value)
377
+ ref: o,
378
+ style: L(D.value)
378
379
  },
379
380
  [
380
- r.canFold ? (L(), z("span", {
381
+ l.canFold ? (A(), z("span", {
381
382
  key: 0,
382
383
  onClick: I
383
384
  }, [
384
- R(r.$slots, "leftBtn", {}, () => [
385
- E(
385
+ R(l.$slots, "leftBtn", {}, () => [
386
+ w(
386
387
  "span",
387
388
  {
388
389
  class: Q(["das-split-panel-btn left", [O.value ? "isBase" : ""]])
389
390
  },
390
391
  [
391
- J($(Ee), { size: "medium" })
392
+ J(q(we), { size: "medium" })
392
393
  ],
393
394
  2
394
395
  /* CLASS */
395
396
  )
396
397
  ], !0)
397
398
  ])) : P("v-if", !0),
398
- E(
399
+ w(
399
400
  "div",
400
401
  {
401
- class: Q(["das-split-panel-line", { hide: F.value || O.value, canDrag: l.canDrag }]),
402
- onDragstart: p[0] || (p[0] = X(() => {
402
+ class: Q(["das-split-panel-line", { hide: F.value || O.value, canDrag: r.canDrag }]),
403
+ onDragstart: m[0] || (m[0] = X(() => {
403
404
  }, ["stop", "prevent"])),
404
- onMousedown: X(w, ["prevent"]),
405
- onClick: p[1] || (p[1] = X(() => {
405
+ onMousedown: X(E, ["prevent"]),
406
+ onClick: m[1] || (m[1] = X(() => {
406
407
  }, ["stop", "prevent"]))
407
408
  },
408
409
  [
409
410
  P(' <slot name="splitLine"> '),
410
- p[2] || (p[2] = E(
411
+ m[2] || (m[2] = w(
411
412
  "div",
412
413
  { class: "das-split-panel-divider" },
413
414
  null,
@@ -419,18 +420,18 @@ const ct = { class: "das-split-panel-second" }, dt = {
419
420
  34
420
421
  /* CLASS, NEED_HYDRATION */
421
422
  ),
422
- r.canFold ? (L(), z("span", {
423
+ l.canFold ? (A(), z("span", {
423
424
  key: 1,
424
425
  onClick: c
425
426
  }, [
426
- R(r.$slots, "rightBtn", {}, () => [
427
- E(
427
+ R(l.$slots, "rightBtn", {}, () => [
428
+ w(
428
429
  "span",
429
430
  {
430
431
  class: Q(["das-split-panel-btn right", [F.value ? "isBase" : ""]])
431
432
  },
432
433
  [
433
- J($(we), { size: "medium" })
434
+ J(q(Ee), { size: "medium" })
434
435
  ],
435
436
  2
436
437
  /* CLASS */
@@ -441,8 +442,8 @@ const ct = { class: "das-split-panel-second" }, dt = {
441
442
  4
442
443
  /* STYLE */
443
444
  ),
444
- E("div", ct, [
445
- R(r.$slots, "secondSlot", {}, void 0, !0)
445
+ w("div", ct, [
446
+ R(l.$slots, "secondSlot", {}, void 0, !0)
446
447
  ])
447
448
  ],
448
449
  4
@@ -451,8 +452,8 @@ const ct = { class: "das-split-panel-second" }, dt = {
451
452
  }
452
453
  }), pt = (e, n) => {
453
454
  const t = e.__vccOpts || e;
454
- for (const [o, l] of n)
455
- t[o] = l;
455
+ for (const [s, r] of n)
456
+ t[s] = r;
456
457
  return t;
457
458
  }, mt = /* @__PURE__ */ pt(vt, [["__scopeId", "data-v-ba259a73"]]), gt = {
458
459
  "--das-ui-split-panel-color-primary": "#5582F3",
@@ -463,9 +464,9 @@ const ct = { class: "das-split-panel-second" }, dt = {
463
464
  // 按钮icon色
464
465
  };
465
466
  Te(gt);
466
- const wt = Oe(mt), Et = () => y(null), Tt = { name: "splitPanel 分割面板" };
467
+ const Et = Oe(mt), wt = () => y(null), Tt = { name: "splitPanel 分割面板" };
467
468
  export {
468
- wt as DasSplitPanel,
469
- Et as DasSplitPanelRef,
469
+ Et as DasSplitPanel,
470
+ wt as DasSplitPanelRef,
470
471
  Tt as default
471
472
  };