@das-fed/ui 7.1.0-dev.10 → 7.1.0-dev.12

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 (121) hide show
  1. package/package.json +5 -5
  2. package/packages/business-components/ai-panel/{index-DMJXZM7n.js → index-8yffh0Id.js} +1056 -1067
  3. package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
  4. package/packages/business-components/ai-panel/{index-MqhMkLo9.js → index-IzGl26KU.js} +9 -9
  5. package/packages/business-components/ai-panel/index-IzGl26KU.js.gz +0 -0
  6. package/packages/business-components/ai-panel/{index-_q72oKSF.js → index-OwRrV6K8.js} +62 -63
  7. package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
  8. package/packages/business-components/ai-panel/index.js +1 -1
  9. package/packages/business-components/device-panel/index.d.ts +1 -1
  10. package/packages/business-components/device-panel/index.js +11286 -11344
  11. package/packages/business-components/device-panel/index.js.gz +0 -0
  12. package/packages/business-components/device-panel/src/components/devicePanelModal/index.vue.d.ts +1 -1
  13. package/packages/business-components/device-panel/src/index.vue.d.ts +1 -1
  14. package/packages/business-components/device-panel/src/render-panel.d.ts +2 -1
  15. package/packages/business-components/device-panel/style.css +1 -1
  16. package/packages/business-components/device-panel/style.css.gz +0 -0
  17. package/packages/business-components/echarts/index.js +2049 -2056
  18. package/packages/business-components/echarts/index.js.gz +0 -0
  19. package/packages/business-components/layout-breadcrumb/index.js +72 -74
  20. package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
  21. package/packages/business-components/process-configuration/index.js +46 -46
  22. package/packages/business-components/process-configuration/index.js.gz +0 -0
  23. package/packages/business-components/process-form/index.js +99 -99
  24. package/packages/business-components/process-form/index.js.gz +0 -0
  25. package/packages/business-components/process-search-form/index.js +77 -77
  26. package/packages/business-components/process-search-form/index.js.gz +0 -0
  27. package/packages/business-components/process-table/index.js +213 -215
  28. package/packages/business-components/process-table/index.js.gz +0 -0
  29. package/packages/business-components/urgent-panel/index.js +1096 -1104
  30. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  31. package/packages/business-components/user-org-dialog/index.js +240 -243
  32. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  33. package/packages/business-components/video-dialog/index.js +294 -294
  34. package/packages/business-components/video-dialog/index.js.gz +0 -0
  35. package/packages/business-components/video-dialog/src/type.d.ts +2 -0
  36. package/packages/business-components/video-dialog/style.css +1 -1
  37. package/packages/business-components/video-dialog/style.css.gz +0 -0
  38. package/packages/components/autocomplete/index.js +6 -12
  39. package/packages/components/autocomplete/index.js.gz +0 -0
  40. package/packages/components/calendar/index.js +99 -99
  41. package/packages/components/calendar/index.js.gz +0 -0
  42. package/packages/components/cascader/index.js +2 -2
  43. package/packages/components/cascader/index.js.gz +0 -0
  44. package/packages/components/checkbox/index.js +30 -30
  45. package/packages/components/checkbox/index.js.gz +0 -0
  46. package/packages/components/collapse-panel/index.js +64 -39
  47. package/packages/components/collapse-panel/index.js.gz +0 -0
  48. package/packages/components/collapse-panel/style.css +1 -1
  49. package/packages/components/collapse-panel/style.css.gz +0 -0
  50. package/packages/components/date-picker/index.js +212 -212
  51. package/packages/components/date-picker/index.js.gz +0 -0
  52. package/packages/components/dialog/index.d.ts +3 -0
  53. package/packages/components/dialog/index.js +64 -65
  54. package/packages/components/dialog/index.js.gz +0 -0
  55. package/packages/components/dialog/src/Index.vue.d.ts +2 -0
  56. package/packages/components/dialog/src/type.d.ts +2 -0
  57. package/packages/components/dialog/style.css +1 -1
  58. package/packages/components/dialog/style.css.gz +0 -0
  59. package/packages/components/dimple-layout/index.js +75 -77
  60. package/packages/components/dimple-layout/index.js.gz +0 -0
  61. package/packages/components/dropdown/index.js +24 -25
  62. package/packages/components/dropdown/index.js.gz +0 -0
  63. package/packages/components/edit-table/index.js +397 -398
  64. package/packages/components/edit-table/index.js.gz +0 -0
  65. package/packages/components/error-overlay-model/index.js +45 -47
  66. package/packages/components/error-overlay-model/index.js.gz +0 -0
  67. package/packages/components/form-item/index.js +67 -67
  68. package/packages/components/form-item/index.js.gz +0 -0
  69. package/packages/components/hls-player/index.js +7 -14
  70. package/packages/components/hls-player/index.js.gz +0 -0
  71. package/packages/components/image-upload/index.js +143 -147
  72. package/packages/components/image-upload/index.js.gz +0 -0
  73. package/packages/components/image-viewer/index.js +293 -297
  74. package/packages/components/image-viewer/index.js.gz +0 -0
  75. package/packages/components/input/index.js +52 -52
  76. package/packages/components/input/index.js.gz +0 -0
  77. package/packages/components/input-number/index.js +26 -26
  78. package/packages/components/input-number/index.js.gz +0 -0
  79. package/packages/components/live-player/index.js +248 -251
  80. package/packages/components/live-player/index.js.gz +0 -0
  81. package/packages/components/map/index.js +415 -421
  82. package/packages/components/map/index.js.gz +0 -0
  83. package/packages/components/menu-aside/index.js +1 -1
  84. package/packages/components/menu-aside/index.js.gz +0 -0
  85. package/packages/components/message/index.js +6 -6
  86. package/packages/components/message/index.js.gz +0 -0
  87. package/packages/components/popover/index.js +12 -12
  88. package/packages/components/popover/index.js.gz +0 -0
  89. package/packages/components/radio-tabs/index.js +34 -34
  90. package/packages/components/radio-tabs/index.js.gz +0 -0
  91. package/packages/components/rich-editor/index.js +4583 -4613
  92. package/packages/components/rich-editor/index.js.gz +0 -0
  93. package/packages/components/scrollbar/index.js +135 -135
  94. package/packages/components/scrollbar/index.js.gz +0 -0
  95. package/packages/components/search/index.js +24 -24
  96. package/packages/components/search/index.js.gz +0 -0
  97. package/packages/components/select/index.js +60 -60
  98. package/packages/components/select/index.js.gz +0 -0
  99. package/packages/components/select-list/index.js +5 -9
  100. package/packages/components/select-list/index.js.gz +0 -0
  101. package/packages/components/special-range-picker-month/index.js +14 -16
  102. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  103. package/packages/components/special-range-picker-year/index.js +51 -53
  104. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  105. package/packages/components/spin/index.js +33 -33
  106. package/packages/components/spin/index.js.gz +0 -0
  107. package/packages/components/split-panel/index.js +128 -129
  108. package/packages/components/split-panel/index.js.gz +0 -0
  109. package/packages/components/table/index.js +178 -179
  110. package/packages/components/table/index.js.gz +0 -0
  111. package/packages/components/time-line/index.js +1 -1
  112. package/packages/components/time-line/index.js.gz +0 -0
  113. package/packages/components/tree-select/index.js +1 -1
  114. package/packages/components/tree-select/index.js.gz +0 -0
  115. package/packages/components/tree-table/index.js +2 -2
  116. package/packages/components/tree-table/index.js.gz +0 -0
  117. package/packages/components/tree-v2/index.js +1093 -1117
  118. package/packages/components/tree-v2/index.js.gz +0 -0
  119. package/packages/business-components/ai-panel/index-DMJXZM7n.js.gz +0 -0
  120. package/packages/business-components/ai-panel/index-MqhMkLo9.js.gz +0 -0
  121. package/packages/business-components/ai-panel/index-_q72oKSF.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 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";
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";
3
3
  import { withInstall as Oe } from "@das-fed/utils/with-install/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";
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";
6
6
  import { setThemeRule as Te } from "@das-fed/web/packages/theme/index";
7
- function G(e) {
7
+ function V(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 s = !0;
28
+ var o = !0;
29
29
  } catch {
30
30
  }
31
- var r = je.call(e);
32
- return s && (n ? e[j] = t : delete e[j]), r;
31
+ var l = je.call(e);
32
+ return o && (n ? e[j] = t : delete e[j]), l;
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 Ae(e) {
42
+ function Le(e) {
43
43
  return e != null && typeof e == "object";
44
44
  }
45
- var Le = "[object Symbol]";
45
+ var Ae = "[object Symbol]";
46
46
  function Qe(e) {
47
- return typeof e == "symbol" || Ae(e) && ze(e) == Le;
47
+ return typeof e == "symbol" || Le(e) && ze(e) == Ae;
48
48
  }
49
- var Z = NaN, Xe = /^[-+]0x[0-9a-f]+$/i, Ue = /^0b[01]+$/i, qe = /^0o[0-7]+$/i, $e = parseInt;
49
+ var Z = NaN, Xe = /^[-+]0x[0-9a-f]+$/i, Ue = /^0b[01]+$/i, $e = /^0o[0-7]+$/i, qe = 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 (G(e)) {
55
+ if (V(e)) {
56
56
  var n = typeof e.valueOf == "function" ? e.valueOf() : e;
57
- e = G(n) ? n + "" : n;
57
+ e = V(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 || qe.test(e) ? $e(e.slice(2), t ? 2 : 8) : Xe.test(e) ? Z : +e;
63
+ return t || $e.test(e) ? qe(e.slice(2), t ? 2 : 8) : Xe.test(e) ? Z : +e;
64
64
  }
65
- var Ge = "Expected a function", Ve = Math.max, He = Math.min;
65
+ var Ve = "Expected a function", Ge = Math.max, He = Math.min;
66
66
  function Ke(e, n, t) {
67
- var s, r, i, f, o, g, S = 0, a = !1, p = !1, v = !0;
67
+ var o, l, i, f, u, g, S = 0, a = !1, m = !1, v = !0;
68
68
  if (typeof e != "function")
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);
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);
71
71
  function d(c) {
72
- var b = s, E = r;
73
- return s = r = void 0, S = c, f = e.apply(E, b), f;
72
+ var b = o, w = l;
73
+ return o = l = void 0, S = c, f = e.apply(w, b), f;
74
74
  }
75
- function u(c) {
76
- return S = c, o = setTimeout(T, n), a ? d(c) : f;
75
+ function s(c) {
76
+ return S = c, u = setTimeout(T, n), a ? d(c) : f;
77
77
  }
78
78
  function h(c) {
79
- var b = c - g, E = c - S, N = n - b;
80
- return p ? He(N, i - E) : N;
79
+ var b = c - g, w = c - S, N = n - b;
80
+ return m ? He(N, i - w) : N;
81
81
  }
82
82
  function M(c) {
83
- var b = c - g, E = c - S;
84
- return g === void 0 || b >= n || b < 0 || p && E >= i;
83
+ var b = c - g, w = c - S;
84
+ return g === void 0 || b >= n || b < 0 || m && w >= i;
85
85
  }
86
86
  function T() {
87
87
  var c = U();
88
88
  if (M(c))
89
89
  return D(c);
90
- o = setTimeout(T, h(c));
90
+ u = setTimeout(T, h(c));
91
91
  }
92
92
  function D(c) {
93
- return o = void 0, v && s ? d(c) : (s = r = void 0, f);
93
+ return u = void 0, v && o ? d(c) : (o = l = void 0, f);
94
94
  }
95
95
  function F() {
96
- o !== void 0 && clearTimeout(o), S = 0, s = g = r = o = void 0;
96
+ u !== void 0 && clearTimeout(u), S = 0, o = g = l = u = void 0;
97
97
  }
98
98
  function O() {
99
- return o === void 0 ? f : D(U());
99
+ return u === void 0 ? f : D(U());
100
100
  }
101
101
  function I() {
102
102
  var c = U(), b = M(c);
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);
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);
108
108
  }
109
- return o === void 0 && (o = setTimeout(T, n)), f;
109
+ return u === void 0 && (u = setTimeout(T, n)), f;
110
110
  }
111
111
  return I.cancel = F, I.flush = O, I;
112
112
  }
113
113
  var te;
114
- const V = typeof window < "u", Je = (e) => typeof e == "string", Ye = () => {
114
+ const G = typeof window < "u", Je = (e) => typeof e == "string", Ye = () => {
115
115
  };
116
- V && ((te = window == null ? void 0 : window.navigator) != null && te.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
116
+ G && ((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() : q(e);
118
+ return typeof e == "function" ? e() : $(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() ? se(e) : n ? e() : Se(e);
127
+ ye() ? oe(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 = 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)
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)
138
138
  return Ye;
139
- Array.isArray(t) || (t = [t]), Array.isArray(s) || (s = [s]);
139
+ Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
140
140
  const i = [], f = () => {
141
141
  i.forEach((a) => a()), i.length = 0;
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))));
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))));
144
144
  }, { immediate: !0, flush: "post" }), S = () => {
145
145
  g(), f();
146
146
  };
147
147
  return de(S), S;
148
148
  }
149
- function rt(e, n = !1) {
150
- const t = y(), s = () => t.value = !!e();
151
- return s(), et(s, n), t;
149
+ function lt(e, n = !1) {
150
+ const t = y(), o = () => t.value = !!e();
151
+ return o(), et(o, n), t;
152
152
  }
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 = [
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 = [
156
156
  [
157
157
  "requestFullscreen",
158
158
  "exitFullscreen",
@@ -195,50 +195,50 @@ const re = [
195
195
  ]
196
196
  ];
197
197
  function at(e, n = {}) {
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(() => {
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(() => {
201
201
  if (t) {
202
- for (const h of re)
202
+ for (const h of le)
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, , p] = f;
208
+ }), [g, S, a, , m] = f;
209
209
  async function v() {
210
- o.value && (t != null && t[a] && await t[S](), i.value = !1);
210
+ u.value && (t != null && t[a] && await t[S](), i.value = !1);
211
211
  }
212
212
  async function d() {
213
- if (!o.value)
213
+ if (!u.value)
214
214
  return;
215
215
  await v();
216
- const h = ve(r);
216
+ const h = ve(l);
217
217
  h && (await h[g](), i.value = !0);
218
218
  }
219
- async function u() {
219
+ async function s() {
220
220
  i.value ? await v() : await d();
221
221
  }
222
- return t && lt(t, p, () => {
222
+ return t && rt(t, m, () => {
223
223
  i.value = !!(t != null && t[a]);
224
- }, !1), s && de(v), {
225
- isSupported: o,
224
+ }, !1), o && de(v), {
225
+ isSupported: u,
226
226
  isFullscreen: i,
227
227
  enter: d,
228
228
  exit: v,
229
- toggle: u
229
+ toggle: s
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 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) => {
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) => {
237
237
  for (var t in n || (n = {}))
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]);
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]);
242
242
  return e;
243
243
  };
244
244
  const ft = {
@@ -288,52 +288,51 @@ 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: 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;
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;
294
294
  });
295
295
  x(() => g.value + "px");
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;
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;
301
301
  },
302
302
  { immediate: !0 }
303
- ), $(s, (l) => {
304
- console.log("isFullscreen", l), B();
303
+ ), q(o, (r) => {
304
+ B();
305
305
  });
306
306
  const I = () => {
307
- u.value > d.value ? (u.value = d.value, i("onDefault")) : u.value <= d.value && u.value > 0 && (u.value = 0, i("onLeft"));
307
+ s.value > d.value ? (s.value = d.value, i("onDefault")) : s.value <= d.value && s.value > 0 && (s.value = 0, i("onLeft"));
308
308
  }, c = () => {
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"));
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"));
310
310
  }, b = y({
311
311
  mouseFlag: !1,
312
312
  startX: 0,
313
313
  startWidth: 0
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");
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");
320
320
  }, pe = () => {
321
321
  b.value.mouseFlag = !1, document.onmousemove = null, document.onmouseup = null, i("onMouseUp");
322
- }, C = (l, m) => {
322
+ }, C = (r, p) => {
323
323
  let k = 0;
324
- return typeof m == "number" && m <= 1 ? k = l * m : typeof m == "number" ? k = m : k = Number(m), k;
324
+ return typeof p == "number" && p <= 1 ? k = r * p : typeof p == "number" ? k = p : k = Number(p), k;
325
325
  }, H = () => {
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);
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);
328
328
  }, me = () => {
329
329
  H();
330
330
  };
331
331
  let K = y(!0);
332
332
  const B = () => {
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)) {
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)) {
337
336
  if (H(), K.value) {
338
337
  K.value = !1;
339
338
  return;
@@ -341,74 +340,74 @@ const ct = { class: "das-split-panel-second" }, dt = {
341
340
  h.value = !1;
342
341
  }
343
342
  };
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();
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();
347
346
  }), n({
348
347
  toLeft: I,
349
348
  toRight: c,
350
349
  reset: me
351
- }), (l, m) => (A(), z(
350
+ }), (r, p) => (L(), z(
352
351
  "div",
353
352
  {
354
353
  class: "das-ui-split-panel",
355
354
  ref_key: "$splitPanel",
356
355
  ref: f,
357
- style: L(l.boxStyle)
356
+ style: A(r.boxStyle)
358
357
  },
359
358
  [
360
- w(
359
+ E(
361
360
  "div",
362
361
  {
363
362
  class: "das-split-panel-first",
364
- style: L(T.value)
363
+ style: A(T.value)
365
364
  },
366
365
  [
367
- R(l.$slots, "firstSlot", {}, void 0, !0)
366
+ R(r.$slots, "firstSlot", {}, void 0, !0)
368
367
  ],
369
368
  4
370
369
  /* STYLE */
371
370
  ),
372
- w(
371
+ E(
373
372
  "div",
374
373
  {
375
374
  class: "das-split-panel-mid",
376
375
  ref_key: "$splitLine",
377
- ref: o,
378
- style: L(D.value)
376
+ ref: u,
377
+ style: A(D.value)
379
378
  },
380
379
  [
381
- l.canFold ? (A(), z("span", {
380
+ r.canFold ? (L(), z("span", {
382
381
  key: 0,
383
382
  onClick: I
384
383
  }, [
385
- R(l.$slots, "leftBtn", {}, () => [
386
- w(
384
+ R(r.$slots, "leftBtn", {}, () => [
385
+ E(
387
386
  "span",
388
387
  {
389
388
  class: Q(["das-split-panel-btn left", [O.value ? "isBase" : ""]])
390
389
  },
391
390
  [
392
- J(q(we), { size: "medium" })
391
+ J($(Ee), { size: "medium" })
393
392
  ],
394
393
  2
395
394
  /* CLASS */
396
395
  )
397
396
  ], !0)
398
397
  ])) : P("v-if", !0),
399
- w(
398
+ E(
400
399
  "div",
401
400
  {
402
- class: Q(["das-split-panel-line", { hide: F.value || O.value, canDrag: r.canDrag }]),
403
- onDragstart: m[0] || (m[0] = X(() => {
401
+ class: Q(["das-split-panel-line", { hide: F.value || O.value, canDrag: l.canDrag }]),
402
+ onDragstart: p[0] || (p[0] = X(() => {
404
403
  }, ["stop", "prevent"])),
405
- onMousedown: X(E, ["prevent"]),
406
- onClick: m[1] || (m[1] = X(() => {
404
+ onMousedown: X(w, ["prevent"]),
405
+ onClick: p[1] || (p[1] = X(() => {
407
406
  }, ["stop", "prevent"]))
408
407
  },
409
408
  [
410
409
  P(' <slot name="splitLine"> '),
411
- m[2] || (m[2] = w(
410
+ p[2] || (p[2] = E(
412
411
  "div",
413
412
  { class: "das-split-panel-divider" },
414
413
  null,
@@ -420,18 +419,18 @@ const ct = { class: "das-split-panel-second" }, dt = {
420
419
  34
421
420
  /* CLASS, NEED_HYDRATION */
422
421
  ),
423
- l.canFold ? (A(), z("span", {
422
+ r.canFold ? (L(), z("span", {
424
423
  key: 1,
425
424
  onClick: c
426
425
  }, [
427
- R(l.$slots, "rightBtn", {}, () => [
428
- w(
426
+ R(r.$slots, "rightBtn", {}, () => [
427
+ E(
429
428
  "span",
430
429
  {
431
430
  class: Q(["das-split-panel-btn right", [F.value ? "isBase" : ""]])
432
431
  },
433
432
  [
434
- J(q(Ee), { size: "medium" })
433
+ J($(we), { size: "medium" })
435
434
  ],
436
435
  2
437
436
  /* CLASS */
@@ -442,8 +441,8 @@ const ct = { class: "das-split-panel-second" }, dt = {
442
441
  4
443
442
  /* STYLE */
444
443
  ),
445
- w("div", ct, [
446
- R(l.$slots, "secondSlot", {}, void 0, !0)
444
+ E("div", ct, [
445
+ R(r.$slots, "secondSlot", {}, void 0, !0)
447
446
  ])
448
447
  ],
449
448
  4
@@ -452,8 +451,8 @@ const ct = { class: "das-split-panel-second" }, dt = {
452
451
  }
453
452
  }), pt = (e, n) => {
454
453
  const t = e.__vccOpts || e;
455
- for (const [s, r] of n)
456
- t[s] = r;
454
+ for (const [o, l] of n)
455
+ t[o] = l;
457
456
  return t;
458
457
  }, mt = /* @__PURE__ */ pt(vt, [["__scopeId", "data-v-ba259a73"]]), gt = {
459
458
  "--das-ui-split-panel-color-primary": "#5582F3",
@@ -464,9 +463,9 @@ const ct = { class: "das-split-panel-second" }, dt = {
464
463
  // 按钮icon色
465
464
  };
466
465
  Te(gt);
467
- const Et = Oe(mt), wt = () => y(null), Tt = { name: "splitPanel 分割面板" };
466
+ const wt = Oe(mt), Et = () => y(null), Tt = { name: "splitPanel 分割面板" };
468
467
  export {
469
- Et as DasSplitPanel,
470
- wt as DasSplitPanelRef,
468
+ wt as DasSplitPanel,
469
+ Et as DasSplitPanelRef,
471
470
  Tt as default
472
471
  };