@das-fed/upf-ui 6.4.0-dev.132 → 6.4.0-dev.134

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 (102) hide show
  1. package/package.json +5 -5
  2. package/packages/business-components/change-pwd/src/hooks/use-changePwd.d.ts +8 -2
  3. package/packages/business-components/process-form/src/hooks/useForm.d.ts +8 -2
  4. package/packages/components/button/index.d.ts +3 -0
  5. package/packages/components/button/index.js +276 -283
  6. package/packages/components/button/index.js.gz +0 -0
  7. package/packages/components/button/src/Index.vue.d.ts +1 -0
  8. package/packages/components/button/style.css +1 -1
  9. package/packages/components/button/style.css.gz +0 -0
  10. package/packages/components/cascader/index.d.ts +9 -9
  11. package/packages/components/cascader/index.js +110 -100
  12. package/packages/components/cascader/index.js.gz +0 -0
  13. package/packages/components/cascader/src/Index.vue.d.ts +1 -1
  14. package/packages/components/cascader/style.css +1 -1
  15. package/packages/components/cascader/style.css.gz +0 -0
  16. package/packages/components/checkbox/index.js +355 -334
  17. package/packages/components/checkbox/index.js.gz +0 -0
  18. package/packages/components/checkbox/src/Index.vue.d.ts +5 -0
  19. package/packages/components/checkbox/style.css +1 -1
  20. package/packages/components/checkbox/style.css.gz +0 -0
  21. package/packages/components/color-picker/index.js +42 -41
  22. package/packages/components/color-picker/index.js.gz +0 -0
  23. package/packages/components/color-picker/style.css +1 -1
  24. package/packages/components/color-picker/style.css.gz +0 -0
  25. package/packages/components/date-picker/index.js +503 -486
  26. package/packages/components/date-picker/index.js.gz +0 -0
  27. package/packages/components/date-picker/style.css +1 -1
  28. package/packages/components/date-picker/style.css.gz +0 -0
  29. package/packages/components/edit-table/index.js +1 -1
  30. package/packages/components/edit-table/index.js.gz +0 -0
  31. package/packages/components/edit-table/style.css +1 -1
  32. package/packages/components/edit-table/style.css.gz +0 -0
  33. package/packages/components/error-overlay-model/index.js +15 -15
  34. package/packages/components/error-overlay-model/index.js.gz +0 -0
  35. package/packages/components/form/hooks/use-form-size.d.ts +3 -0
  36. package/packages/components/form/index.d.ts +12 -2
  37. package/packages/components/form/index.js +62 -69
  38. package/packages/components/form/index.js.gz +0 -0
  39. package/packages/components/form/src/Index.vue.d.ts +9 -0
  40. package/packages/components/form/src/type.d.ts +3 -0
  41. package/packages/components/form/style.css +1 -1
  42. package/packages/components/form-item/index.js +1110 -1082
  43. package/packages/components/form-item/index.js.gz +0 -0
  44. package/packages/components/form-item/src/hooks/use-form.d.ts +13 -3
  45. package/packages/components/form-item/src/type.d.ts +6 -0
  46. package/packages/components/form-item/style.css +1 -1
  47. package/packages/components/form-item/style.css.gz +0 -0
  48. package/packages/components/input/index.js +399 -215
  49. package/packages/components/input/index.js.gz +0 -0
  50. package/packages/components/input/src/constants.d.ts +17 -0
  51. package/packages/components/input/src/hooks/use-overflow-tip.d.ts +13 -0
  52. package/packages/components/input/src/type.d.ts +9 -9
  53. package/packages/components/input/style.css +1 -1
  54. package/packages/components/input/style.css.gz +0 -0
  55. package/packages/components/input-dialog-select/index.js +74 -66
  56. package/packages/components/input-dialog-select/index.js.gz +0 -0
  57. package/packages/components/input-dialog-select/style.css +1 -1
  58. package/packages/components/input-dialog-select/style.css.gz +0 -0
  59. package/packages/components/input-number/index.js +76 -70
  60. package/packages/components/input-number/index.js.gz +0 -0
  61. package/packages/components/input-number/style.css +1 -1
  62. package/packages/components/input-number/style.css.gz +0 -0
  63. package/packages/components/message/index.js +1 -1
  64. package/packages/components/message/index.js.gz +0 -0
  65. package/packages/components/message/style.css +1 -1
  66. package/packages/components/message/style.css.gz +0 -0
  67. package/packages/components/radio/index.js +116 -103
  68. package/packages/components/radio/index.js.gz +0 -0
  69. package/packages/components/radio/src/Index.vue.d.ts +5 -0
  70. package/packages/components/radio/style.css +1 -1
  71. package/packages/components/radio/style.css.gz +0 -0
  72. package/packages/components/select/index.js +92 -88
  73. package/packages/components/select/index.js.gz +0 -0
  74. package/packages/components/select/style.css +1 -1
  75. package/packages/components/select/style.css.gz +0 -0
  76. package/packages/components/select-input/index.js +39 -37
  77. package/packages/components/select-input/index.js.gz +0 -0
  78. package/packages/components/select-input/style.css +1 -1
  79. package/packages/components/select-input/style.css.gz +0 -0
  80. package/packages/components/split-panel/index.js +209 -193
  81. package/packages/components/split-panel/index.js.gz +0 -0
  82. package/packages/components/split-panel/style.css +1 -1
  83. package/packages/components/split-panel/style.css.gz +0 -0
  84. package/packages/components/switch/index.js +45 -29
  85. package/packages/components/switch/index.js.gz +0 -0
  86. package/packages/components/switch/style.css +1 -1
  87. package/packages/components/switch/style.css.gz +0 -0
  88. package/packages/components/table/index.js +1944 -1932
  89. package/packages/components/table/index.js.gz +0 -0
  90. package/packages/components/table/src/Table.vue.d.ts +12 -9
  91. package/packages/components/table/style.css +1 -1
  92. package/packages/components/table/style.css.gz +0 -0
  93. package/packages/components/tree-select/index.js +1 -1
  94. package/packages/components/tree-select/index.js.gz +0 -0
  95. package/packages/components/upload/index.js +3 -2
  96. package/packages/components/upload/index.js.gz +0 -0
  97. package/packages/components/upload/style.css +1 -1
  98. package/packages/components/upload/style.css.gz +0 -0
  99. package/packages/components/upload/theme/index.d.ts +3 -0
  100. package/packages/components/form-item/src/hooks/useFormLabelWidth.d.ts +0 -6
  101. package/packages/components/input/index.d.ts +0 -124
  102. package/packages/components/input/src/index.vue.d.ts +0 -49
@@ -1,158 +1,156 @@
1
1
  import '@das-fed/upf-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";
3
- import { withInstall as Oe } from "@das-fed/upf-utils/with-install/index";
4
- import { DasIconShuyoufanye as we } from "@das-fed/upf-ui/packages/icons/shuyoufanye/index";
5
- import { DasIconShuzuofanye as Ee } from "@das-fed/upf-ui/packages/icons/shuzuofanye/index";
6
- import { setThemeRule as Te } from "@das-fed/upf-web/packages/theme/index";
7
- function V(e) {
2
+ import { getCurrentScope as pe, onScopeDispose as me, getCurrentInstance as ge, onMounted as se, nextTick as be, unref as ye, ref as y, watch as $, defineComponent as Se, computed as _, createElementBlock as z, openBlock as L, normalizeStyle as A, createElementVNode as O, renderSlot as P, createCommentVNode as M, normalizeClass as Q, withModifiers as X } from "vue";
3
+ import { withInstall as he } from "@das-fed/upf-utils/with-install/index";
4
+ import { setThemeRule as Oe } from "@das-fed/upf-web/packages/theme/index";
5
+ function q(e) {
8
6
  var n = typeof e;
9
7
  return e != null && (n == "object" || n == "function");
10
8
  }
11
- var Fe = typeof global == "object" && global && global.Object === Object && global, Ie = typeof self == "object" && self && self.Object === Object && self, ie = Fe || Ie || Function("return this")(), U = function() {
12
- return ie.Date.now();
13
- }, ke = /\s/;
14
- function Me(e) {
15
- for (var n = e.length; n-- && ke.test(e.charAt(n)); )
9
+ var we = typeof global == "object" && global && global.Object === Object && global, Ee = typeof self == "object" && self && self.Object === Object && self, ue = we || Ee || Function("return this")(), U = function() {
10
+ return ue.Date.now();
11
+ }, Ie = /\s/;
12
+ function Te(e) {
13
+ for (var n = e.length; n-- && Ie.test(e.charAt(n)); )
16
14
  ;
17
15
  return n;
18
16
  }
19
- var Ce = /^\s+/;
20
- function _e(e) {
21
- return e && e.slice(0, Me(e) + 1).replace(Ce, "");
17
+ var Fe = /^\s+/;
18
+ function ke(e) {
19
+ return e && e.slice(0, Te(e) + 1).replace(Fe, "");
22
20
  }
23
- var W = ie.Symbol, fe = Object.prototype, xe = fe.hasOwnProperty, je = fe.toString, j = W ? W.toStringTag : void 0;
24
- function De(e) {
25
- var n = xe.call(e, j), t = e[j];
21
+ var W = ue.Symbol, oe = Object.prototype, Me = oe.hasOwnProperty, Ce = oe.toString, j = W ? W.toStringTag : void 0;
22
+ function xe(e) {
23
+ var n = Me.call(e, j), t = e[j];
26
24
  try {
27
25
  e[j] = void 0;
28
26
  var o = !0;
29
27
  } catch {
30
28
  }
31
- var l = je.call(e);
29
+ var l = Ce.call(e);
32
30
  return o && (n ? e[j] = t : delete e[j]), l;
33
31
  }
34
- var Ne = Object.prototype, Re = Ne.toString;
35
- function Pe(e) {
36
- return Re.call(e);
32
+ var De = Object.prototype, _e = De.toString;
33
+ function je(e) {
34
+ return _e.call(e);
37
35
  }
38
- var We = "[object Null]", Be = "[object Undefined]", Y = W ? W.toStringTag : void 0;
39
- function ze(e) {
40
- return e == null ? e === void 0 ? Be : We : Y && Y in Object(e) ? De(e) : Pe(e);
36
+ var Re = "[object Null]", Ne = "[object Undefined]", K = W ? W.toStringTag : void 0;
37
+ function Pe(e) {
38
+ return e == null ? e === void 0 ? Ne : Re : K && K in Object(e) ? xe(e) : je(e);
41
39
  }
42
- function Le(e) {
40
+ function We(e) {
43
41
  return e != null && typeof e == "object";
44
42
  }
45
- var Ae = "[object Symbol]";
46
- function Qe(e) {
47
- return typeof e == "symbol" || Le(e) && ze(e) == Ae;
43
+ var Be = "[object Symbol]";
44
+ function ze(e) {
45
+ return typeof e == "symbol" || We(e) && Pe(e) == Be;
48
46
  }
49
- var Z = NaN, Xe = /^[-+]0x[0-9a-f]+$/i, Ue = /^0b[01]+$/i, $e = /^0o[0-7]+$/i, qe = parseInt;
50
- function ee(e) {
47
+ var J = NaN, Le = /^[-+]0x[0-9a-f]+$/i, Ae = /^0b[01]+$/i, Qe = /^0o[0-7]+$/i, Xe = parseInt;
48
+ function Y(e) {
51
49
  if (typeof e == "number")
52
50
  return e;
53
- if (Qe(e))
54
- return Z;
55
- if (V(e)) {
51
+ if (ze(e))
52
+ return J;
53
+ if (q(e)) {
56
54
  var n = typeof e.valueOf == "function" ? e.valueOf() : e;
57
- e = V(n) ? n + "" : n;
55
+ e = q(n) ? n + "" : n;
58
56
  }
59
57
  if (typeof e != "string")
60
58
  return e === 0 ? e : +e;
61
- e = _e(e);
62
- var t = Ue.test(e);
63
- return t || $e.test(e) ? qe(e.slice(2), t ? 2 : 8) : Xe.test(e) ? Z : +e;
59
+ e = ke(e);
60
+ var t = Ae.test(e);
61
+ return t || Qe.test(e) ? Xe(e.slice(2), t ? 2 : 8) : Le.test(e) ? J : +e;
64
62
  }
65
- var Ve = "Expected a function", Ge = Math.max, He = Math.min;
66
- function Ke(e, n, t) {
67
- var o, l, i, f, u, g, S = 0, a = !1, m = !1, v = !0;
63
+ var Ue = "Expected a function", $e = Math.max, qe = Math.min;
64
+ function Ge(e, n, t) {
65
+ var o, l, i, f, s, g, S = 0, a = !1, m = !1, p = !0;
68
66
  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);
71
- function d(c) {
72
- var b = o, w = l;
73
- return o = l = void 0, S = c, f = e.apply(w, b), f;
67
+ throw new TypeError(Ue);
68
+ n = Y(n) || 0, q(t) && (a = !!t.leading, m = "maxWait" in t, i = m ? $e(Y(t.maxWait) || 0, n) : i, p = "trailing" in t ? !!t.trailing : p);
69
+ function v(c) {
70
+ var b = o, E = l;
71
+ return o = l = void 0, S = c, f = e.apply(E, b), f;
74
72
  }
75
- function s(c) {
76
- return S = c, u = setTimeout(T, n), a ? d(c) : f;
73
+ function u(c) {
74
+ return S = c, s = setTimeout(I, n), a ? v(c) : f;
77
75
  }
78
76
  function h(c) {
79
- var b = c - g, w = c - S, N = n - b;
80
- return m ? He(N, i - w) : N;
77
+ var b = c - g, E = c - S, N = n - b;
78
+ return m ? qe(N, i - E) : N;
81
79
  }
82
- function M(c) {
83
- var b = c - g, w = c - S;
84
- return g === void 0 || b >= n || b < 0 || m && w >= i;
80
+ function C(c) {
81
+ var b = c - g, E = c - S;
82
+ return g === void 0 || b >= n || b < 0 || m && E >= i;
85
83
  }
86
- function T() {
84
+ function I() {
87
85
  var c = U();
88
- if (M(c))
89
- return D(c);
90
- u = setTimeout(T, h(c));
86
+ if (C(c))
87
+ return R(c);
88
+ s = setTimeout(I, h(c));
91
89
  }
92
- function D(c) {
93
- return u = void 0, v && o ? d(c) : (o = l = void 0, f);
90
+ function R(c) {
91
+ return s = void 0, p && o ? v(c) : (o = l = void 0, f);
94
92
  }
95
- function F() {
96
- u !== void 0 && clearTimeout(u), S = 0, o = g = l = u = void 0;
93
+ function T() {
94
+ s !== void 0 && clearTimeout(s), S = 0, o = g = l = s = void 0;
97
95
  }
98
- function O() {
99
- return u === void 0 ? f : D(U());
96
+ function w() {
97
+ return s === void 0 ? f : R(U());
100
98
  }
101
- function I() {
102
- var c = U(), b = M(c);
99
+ function F() {
100
+ var c = U(), b = C(c);
103
101
  if (o = arguments, l = this, g = c, b) {
104
- if (u === void 0)
105
- return s(g);
102
+ if (s === void 0)
103
+ return u(g);
106
104
  if (m)
107
- return clearTimeout(u), u = setTimeout(T, n), d(g);
105
+ return clearTimeout(s), s = setTimeout(I, n), v(g);
108
106
  }
109
- return u === void 0 && (u = setTimeout(T, n)), f;
107
+ return s === void 0 && (s = setTimeout(I, n)), f;
110
108
  }
111
- return I.cancel = F, I.flush = O, I;
109
+ return F.cancel = T, F.flush = w, F;
112
110
  }
113
- var te;
114
- const G = typeof window < "u", Je = (e) => typeof e == "string", Ye = () => {
111
+ var Z;
112
+ const G = typeof window < "u", Ve = (e) => typeof e == "string", He = () => {
115
113
  };
116
- G && ((te = window == null ? void 0 : window.navigator) != null && te.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
117
- function ce(e) {
118
- return typeof e == "function" ? e() : $(e);
114
+ G && ((Z = window == null ? void 0 : window.navigator) != null && Z.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
115
+ function ie(e) {
116
+ return typeof e == "function" ? e() : ye(e);
119
117
  }
120
- function Ze(e) {
118
+ function Ke(e) {
121
119
  return e;
122
120
  }
123
- function de(e) {
124
- return ge() ? (be(e), !0) : !1;
121
+ function fe(e) {
122
+ return pe() ? (me(e), !0) : !1;
125
123
  }
126
- function et(e, n = !0) {
127
- ye() ? oe(e) : n ? e() : Se(e);
124
+ function Je(e, n = !0) {
125
+ ge() ? se(e) : n ? e() : be(e);
128
126
  }
129
- function ve(e) {
127
+ function ce(e) {
130
128
  var n;
131
- const t = ce(e);
129
+ const t = ie(e);
132
130
  return (n = t == null ? void 0 : t.$el) != null ? n : t;
133
131
  }
134
- const tt = G ? window : void 0, nt = G ? window.document : void 0;
135
- function rt(...e) {
132
+ const Ye = G ? window : void 0, Ze = G ? window.document : void 0;
133
+ function et(...e) {
136
134
  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
- return Ye;
135
+ if (Ve(e[0]) || Array.isArray(e[0]) ? ([t, o, l] = e, n = Ye) : [n, t, o, l] = e, !n)
136
+ return He;
139
137
  Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
140
138
  const i = [], f = () => {
141
139
  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))));
140
+ }, s = (a, m, p, v) => (a.addEventListener(m, p, v), () => a.removeEventListener(m, p, v)), g = $(() => [ce(n), ie(l)], ([a, m]) => {
141
+ f(), a && i.push(...t.flatMap((p) => o.map((v) => s(a, p, v, m))));
144
142
  }, { immediate: !0, flush: "post" }), S = () => {
145
143
  g(), f();
146
144
  };
147
- return de(S), S;
145
+ return fe(S), S;
148
146
  }
149
- function lt(e, n = !1) {
147
+ function tt(e, n = !1) {
150
148
  const t = y(), o = () => t.value = !!e();
151
- return o(), et(o, n), t;
149
+ return o(), Je(o, n), t;
152
150
  }
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 = [
151
+ const ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, te = "__vueuse_ssr_handlers__";
152
+ ee[te] = ee[te] || {};
153
+ const ne = [
156
154
  [
157
155
  "requestFullscreen",
158
156
  "exitFullscreen",
@@ -194,54 +192,54 @@ const le = [
194
192
  "MSFullscreenError"
195
193
  ]
196
194
  ];
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(() => {
195
+ function nt(e, n = {}) {
196
+ const { document: t = Ze, autoExit: o = !1 } = n, l = t == null ? void 0 : t.querySelector("html"), i = y(!1);
197
+ let f = ne[0];
198
+ const s = tt(() => {
201
199
  if (t) {
202
- for (const h of le)
200
+ for (const h of ne)
203
201
  if (h[1] in t)
204
202
  return f = h, !0;
205
203
  } else
206
204
  return !1;
207
205
  return !1;
208
206
  }), [g, S, a, , m] = f;
209
- async function v() {
210
- u.value && (t != null && t[a] && await t[S](), i.value = !1);
207
+ async function p() {
208
+ s.value && (t != null && t[a] && await t[S](), i.value = !1);
211
209
  }
212
- async function d() {
213
- if (!u.value)
210
+ async function v() {
211
+ if (!s.value)
214
212
  return;
215
- await v();
216
- const h = ve(l);
213
+ await p();
214
+ const h = ce(l);
217
215
  h && (await h[g](), i.value = !0);
218
216
  }
219
- async function s() {
220
- i.value ? await v() : await d();
217
+ async function u() {
218
+ i.value ? await p() : await v();
221
219
  }
222
- return t && rt(t, m, () => {
220
+ return t && et(t, m, () => {
223
221
  i.value = !!(t != null && t[a]);
224
- }, !1), o && de(v), {
225
- isSupported: u,
222
+ }, !1), o && fe(p), {
223
+ isSupported: s,
226
224
  isFullscreen: i,
227
- enter: d,
228
- exit: v,
229
- toggle: s
225
+ enter: v,
226
+ exit: p,
227
+ toggle: u
230
228
  };
231
229
  }
232
- var ae;
230
+ var re;
233
231
  (function(e) {
234
232
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
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) => {
233
+ })(re || (re = {}));
234
+ var rt = Object.defineProperty, le = Object.getOwnPropertySymbols, lt = Object.prototype.hasOwnProperty, at = Object.prototype.propertyIsEnumerable, ae = (e, n, t) => n in e ? rt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, st = (e, n) => {
237
235
  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]);
236
+ lt.call(n, t) && ae(e, t, n[t]);
237
+ if (le)
238
+ for (var t of le(n))
239
+ at.call(n, t) && ae(e, t, n[t]);
242
240
  return e;
243
241
  };
244
- const ft = {
242
+ const ut = {
245
243
  easeInSine: [0.12, 0, 0.39, 0],
246
244
  easeOutSine: [0.61, 1, 0.88, 1],
247
245
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -267,13 +265,13 @@ const ft = {
267
265
  easeOutBack: [0.34, 1.56, 0.64, 1],
268
266
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
269
267
  };
270
- it({
271
- linear: Ze
272
- }, ft);
273
- const ct = { class: "das-split-panel-second" }, dt = {
268
+ st({
269
+ linear: Ke
270
+ }, ut);
271
+ const ot = { class: "das-split-panel-second" }, it = {
274
272
  name: "DasSplitPanel"
275
- }, vt = /* @__PURE__ */ he({
276
- ...dt,
273
+ }, ft = /* @__PURE__ */ Se({
274
+ ...it,
277
275
  props: {
278
276
  canFold: { type: Boolean, default: !0 },
279
277
  canDrag: { type: Boolean, default: !0 },
@@ -288,66 +286,66 @@ const ct = { class: "das-split-panel-second" }, dt = {
288
286
  },
289
287
  emits: ["onLeft", "onRight", "onDefault", "onMouseDown", "onMouseMove", "onMouseUp"],
290
288
  setup(e, { expose: n, emit: t }) {
291
- const { isFullscreen: o } = at(), l = e, i = t, f = y(null), u = y(null), g = x(() => {
289
+ const { isFullscreen: o } = nt(), l = e, i = t, f = y(null), s = y(null), g = _(() => {
292
290
  var r;
293
- return u != null && u.value && Number((r = u == null ? void 0 : u.value) == null ? void 0 : r.offsetWidth) - 2 || 1;
291
+ return s != null && s.value && Number((r = s == null ? void 0 : s.value) == null ? void 0 : r.offsetWidth) - 2 || 1;
294
292
  });
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;
293
+ _(() => g.value + "px");
294
+ const S = y(null), a = y(), m = y(), p = y(), v = y(0), u = y(0), h = y(!0), C = _(() => u.value + "px"), I = _(() => ({ width: C.value })), R = _(() => ({ left: C.value })), T = y(!1), w = y(!1);
295
+ $(
296
+ u,
297
+ (r, d) => {
298
+ r === 0 ? T.value = !0 : T.value = !1, r === (a == null ? void 0 : a.value) ? w.value = !0 : w.value = !1;
301
299
  },
302
300
  { immediate: !0 }
303
- ), q(o, (r) => {
301
+ ), $(o, (r) => {
304
302
  B();
305
303
  });
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"));
304
+ const F = () => {
305
+ u.value > v.value ? (u.value = v.value, i("onDefault")) : u.value <= v.value && u.value > 0 && (u.value = 0, i("onLeft"));
308
306
  }, 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"));
307
+ u.value < v.value ? (u.value = v.value, i("onDefault")) : u.value >= v.value && u.value < a.value && (u.value = a.value, i("onRight"));
310
308
  }, b = y({
311
309
  mouseFlag: !1,
312
310
  startX: 0,
313
311
  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"));
312
+ }), E = (r) => {
313
+ l.canDrag && (b.value.mouseFlag = !0, b.value.startX = r.clientX, b.value.startWidth = u.value, document.onmousemove = N, document.onmouseup = de, i("onMouseDown"));
316
314
  }, N = (r) => {
317
315
  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
- }, pe = () => {
316
+ let k = r.clientX - b.value.startX, D = b.value.startWidth + k;
317
+ D < m.value ? u.value = m.value : D > p.value ? u.value = p.value : D > m.value && D < p.value && (u.value = D), i("onMouseMove");
318
+ }, de = () => {
321
319
  b.value.mouseFlag = !1, document.onmousemove = null, document.onmouseup = null, i("onMouseUp");
322
- }, C = (r, p) => {
320
+ }, x = (r, d) => {
323
321
  let k = 0;
324
- return typeof p == "number" && p <= 1 ? k = r * p : typeof p == "number" ? k = p : k = Number(p), k;
325
- }, H = () => {
322
+ return typeof d == "number" && d <= 1 ? k = r * d : typeof d == "number" ? k = d : k = Number(d), k;
323
+ }, V = () => {
326
324
  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
- }, me = () => {
329
- H();
325
+ l.defaultSplit.first !== void 0 ? (r = x(a.value, l.defaultSplit.first), v.value = r, u.value = r) : l.defaultSplit.second !== void 0 && (typeof l.defaultSplit.second == "number" && l.defaultSplit.second <= 1 ? r = x(a.value, 1 - l.defaultSplit.second) : r = a.value - x(a.value, l.defaultSplit.second), v.value = r, u.value = r), l.defaultClose && l.defaultClose == "first" ? u.value = 0 : l.defaultClose && l.defaultClose == "second" && (u.value = a.value);
326
+ }, ve = () => {
327
+ V();
330
328
  };
331
- let K = y(!0);
329
+ let H = y(!0);
332
330
  const B = () => {
333
- var p;
331
+ var d;
334
332
  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)) {
336
- if (H(), K.value) {
337
- K.value = !1;
333
+ if (w.value && (r = !0), !!(f != null && f.value) && (a.value = Number(((d = f == null ? void 0 : f.value) == null ? void 0 : d.clientWidth) - (g == null ? void 0 : g.value)) || 0, m.value = x(a.value, l.firstMin), p.value = a.value - x(a.value, l.secondMin), r && (u.value = a.value), h.value === !0)) {
334
+ if (V(), H.value) {
335
+ H.value = !1;
338
336
  return;
339
337
  }
340
338
  h.value = !1;
341
339
  }
342
340
  };
343
- return oe(() => {
341
+ return se(() => {
344
342
  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();
343
+ h.value = !0, S.value = new ResizeObserver(Ge(B, 30)), (r = S.value) == null || r.observe(f == null ? void 0 : f.value), B();
346
344
  }), n({
347
- toLeft: I,
345
+ toLeft: F,
348
346
  toRight: c,
349
- reset: me
350
- }), (r, p) => (L(), z(
347
+ reset: ve
348
+ }), (r, d) => (L(), z(
351
349
  "div",
352
350
  {
353
351
  class: "das-ui-split-panel",
@@ -356,65 +354,74 @@ const ct = { class: "das-split-panel-second" }, dt = {
356
354
  style: A(r.boxStyle)
357
355
  },
358
356
  [
359
- E(
357
+ O(
360
358
  "div",
361
359
  {
362
360
  class: "das-split-panel-first",
363
- style: A(T.value)
361
+ style: A(I.value)
364
362
  },
365
363
  [
366
- R(r.$slots, "firstSlot", {}, void 0, !0)
364
+ P(r.$slots, "firstSlot", {}, void 0, !0)
367
365
  ],
368
366
  4
369
367
  /* STYLE */
370
368
  ),
371
- E(
369
+ O(
372
370
  "div",
373
371
  {
374
372
  class: "das-split-panel-mid",
375
373
  ref_key: "$splitLine",
376
- ref: u,
377
- style: A(D.value)
374
+ ref: s,
375
+ style: A(R.value)
378
376
  },
379
377
  [
380
378
  r.canFold ? (L(), z("span", {
381
379
  key: 0,
382
- onClick: I
380
+ onClick: F
383
381
  }, [
384
- R(r.$slots, "leftBtn", {}, () => [
385
- E(
382
+ P(r.$slots, "leftBtn", {}, () => [
383
+ O(
386
384
  "span",
387
385
  {
388
- class: Q(["das-split-panel-btn left", [O.value ? "isBase" : ""]])
386
+ class: Q(["das-split-panel-btn left", [w.value ? "isBase" : ""]])
389
387
  },
390
388
  [
391
- J($(Ee), { size: "medium" })
389
+ M(' <DasIconShuzuofanye size="medium"></DasIconShuzuofanye> '),
390
+ d[2] || (d[2] = O(
391
+ "div",
392
+ { class: "arrow" },
393
+ [
394
+ O("span", { class: "arrowItem" })
395
+ ],
396
+ -1
397
+ /* HOISTED */
398
+ ))
392
399
  ],
393
400
  2
394
401
  /* CLASS */
395
402
  )
396
403
  ], !0)
397
- ])) : P("v-if", !0),
398
- E(
404
+ ])) : M("v-if", !0),
405
+ O(
399
406
  "div",
400
407
  {
401
- class: Q(["das-split-panel-line", { hide: F.value || O.value, canDrag: l.canDrag }]),
402
- onDragstart: p[0] || (p[0] = X(() => {
408
+ class: Q(["das-split-panel-line", { hide: T.value || w.value, canDrag: l.canDrag }]),
409
+ onDragstart: d[0] || (d[0] = X(() => {
403
410
  }, ["stop", "prevent"])),
404
- onMousedown: X(w, ["prevent"]),
405
- onClick: p[1] || (p[1] = X(() => {
411
+ onMousedown: X(E, ["prevent"]),
412
+ onClick: d[1] || (d[1] = X(() => {
406
413
  }, ["stop", "prevent"]))
407
414
  },
408
415
  [
409
- P(' <slot name="splitLine"> '),
410
- p[2] || (p[2] = E(
416
+ M(' <slot name="splitLine"> '),
417
+ d[3] || (d[3] = O(
411
418
  "div",
412
419
  { class: "das-split-panel-divider" },
413
420
  null,
414
421
  -1
415
422
  /* HOISTED */
416
423
  )),
417
- P(" </slot> ")
424
+ M(" </slot> ")
418
425
  ],
419
426
  34
420
427
  /* CLASS, NEED_HYDRATION */
@@ -423,38 +430,47 @@ const ct = { class: "das-split-panel-second" }, dt = {
423
430
  key: 1,
424
431
  onClick: c
425
432
  }, [
426
- R(r.$slots, "rightBtn", {}, () => [
427
- E(
433
+ P(r.$slots, "rightBtn", {}, () => [
434
+ O(
428
435
  "span",
429
436
  {
430
- class: Q(["das-split-panel-btn right", [F.value ? "isBase" : ""]])
437
+ class: Q(["das-split-panel-btn right", [T.value ? "isBase" : ""]])
431
438
  },
432
439
  [
433
- J($(we), { size: "medium" })
440
+ M(' <DasIconShuyoufanye size="medium"></DasIconShuyoufanye> '),
441
+ d[4] || (d[4] = O(
442
+ "div",
443
+ { class: "arrow" },
444
+ [
445
+ O("span", { class: "arrowItem" })
446
+ ],
447
+ -1
448
+ /* HOISTED */
449
+ ))
434
450
  ],
435
451
  2
436
452
  /* CLASS */
437
453
  )
438
454
  ], !0)
439
- ])) : P("v-if", !0)
455
+ ])) : M("v-if", !0)
440
456
  ],
441
457
  4
442
458
  /* STYLE */
443
459
  ),
444
- E("div", ct, [
445
- R(r.$slots, "secondSlot", {}, void 0, !0)
460
+ O("div", ot, [
461
+ P(r.$slots, "secondSlot", {}, void 0, !0)
446
462
  ])
447
463
  ],
448
464
  4
449
465
  /* STYLE */
450
466
  ));
451
467
  }
452
- }), pt = (e, n) => {
468
+ }), ct = (e, n) => {
453
469
  const t = e.__vccOpts || e;
454
470
  for (const [o, l] of n)
455
471
  t[o] = l;
456
472
  return t;
457
- }, mt = /* @__PURE__ */ pt(vt, [["__scopeId", "data-v-132550d3"]]), gt = {
473
+ }, dt = /* @__PURE__ */ ct(ft, [["__scopeId", "data-v-50fd1416"]]), vt = {
458
474
  "--das-ui-split-panel-color-primary": "#5582F3",
459
475
  // 主题色
460
476
  "--das-ui-split-panel-color-line": "#D9D9D9",
@@ -462,10 +478,10 @@ const ct = { class: "das-split-panel-second" }, dt = {
462
478
  "--das-ui-split-panel-color-btn": "#999999"
463
479
  // 按钮icon色
464
480
  };
465
- Te(gt);
466
- const wt = Oe(mt), Et = () => y(null), Tt = { name: "splitPanel 分割面板" };
481
+ Oe(vt);
482
+ const bt = he(dt), yt = () => y(null), St = { name: "splitPanel 分割面板" };
467
483
  export {
468
- wt as DasSplitPanel,
469
- Et as DasSplitPanelRef,
470
- Tt as default
484
+ bt as DasSplitPanel,
485
+ yt as DasSplitPanelRef,
486
+ St as default
471
487
  };
@@ -1 +1 @@
1
- .das-ui-split-panel[data-v-132550d3]{width:100%;height:100%;display:flex;flex-direction:row;border:1px solid var(--das-ui-split-panel-color-line);overflow:hidden;position:relative}.das-ui-split-panel .das-split-panel-first[data-v-132550d3]{height:100%;overflow:hidden}.das-ui-split-panel .das-split-panel-second[data-v-132550d3]{flex:1;min-width:0;height:100%;overflow:hidden}.das-ui-split-panel .das-split-panel-mid[data-v-132550d3]{position:absolute;height:100%;z-index:20}.das-ui-split-panel .das-split-panel-mid:hover .das-split-panel-btn[data-v-132550d3]{border-color:var(--das-ui-split-panel-color-btn)}.das-ui-split-panel .das-split-panel-mid .das-split-panel-line[data-v-132550d3]{height:100%;border-right:1px solid transparent;cursor:auto;z-index:20}.das-ui-split-panel .das-split-panel-mid .das-split-panel-line.hide[data-v-132550d3]{display:none}.das-ui-split-panel .das-split-panel-mid .das-split-panel-line .das-split-panel-divider[data-v-132550d3]{position:absolute;width:1px;height:100%;padding:0 2px;transform:translate(-50%);background-image:linear-gradient(90deg,transparent 0%,transparent 45%,var(--das-ui-split-panel-color-line) 45.6%,var(--das-ui-split-panel-color-line) 62.5%,transparent 62.6%,transparent 100%)}.das-ui-split-panel .das-split-panel-mid .das-split-panel-line.canDrag[data-v-132550d3]{cursor:col-resize}.das-ui-split-panel .das-split-panel-mid .das-split-panel-btn[data-v-132550d3]{position:absolute;z-index:5;top:50%;transform:translateY(-50%);width:20px;height:20px;border:1px solid transparent;cursor:pointer;padding:1px 2px;box-sizing:border-box;color:var(--das-ui-split-panel-color-btn)}.das-ui-split-panel .das-split-panel-mid .das-split-panel-btn[data-v-132550d3]:hover{border-color:var(--das-ui-split-panel-color-primary);color:var(--das-ui-split-panel-color-primary)}.das-ui-split-panel .das-split-panel-mid .das-split-panel-btn.left[data-v-132550d3]{right:0;border-right:none;border-radius:50% 0 0 50%}.das-ui-split-panel .das-split-panel-mid .das-split-panel-btn.right[data-v-132550d3]{left:0;border-left:none;border-radius:0 50% 50% 0}.das-ui-split-panel .das-split-panel-mid .das-split-panel-btn.isBase[data-v-132550d3]{background:var(--das-ui-split-panel-color-btn);color:#fff}
1
+ .das-ui-split-panel[data-v-50fd1416]{width:100%;height:100%;display:flex;flex-direction:row;border:1px solid var(--das-ui-split-panel-color-line);overflow:hidden;position:relative}.das-ui-split-panel .das-split-panel-first[data-v-50fd1416]{height:100%;overflow:hidden}.das-ui-split-panel .das-split-panel-second[data-v-50fd1416]{flex:1;min-width:0;height:100%;overflow:hidden}.das-ui-split-panel .das-split-panel-mid[data-v-50fd1416]{position:absolute;height:100%;z-index:20}.das-ui-split-panel .das-split-panel-mid:hover .das-split-panel-btn .arrow[data-v-50fd1416],.das-ui-split-panel .das-split-panel-mid .das-split-panel-btn.isBase .arrow[data-v-50fd1416]{background:#f5f5f5}.das-ui-split-panel .das-split-panel-mid .das-split-panel-line[data-v-50fd1416]{height:100%;border-right:1px solid transparent;cursor:auto;z-index:20}.das-ui-split-panel .das-split-panel-mid .das-split-panel-line.hide[data-v-50fd1416]{display:none}.das-ui-split-panel .das-split-panel-mid .das-split-panel-line .das-split-panel-divider[data-v-50fd1416]{position:absolute;width:1px;height:100%;padding:0 2px;transform:translate(-50%);background-image:linear-gradient(90deg,transparent 0%,transparent 45%,var(--das-ui-split-panel-color-line) 45.6%,var(--das-ui-split-panel-color-line) 62.5%,transparent 62.6%,transparent 100%)}.das-ui-split-panel .das-split-panel-mid .das-split-panel-line.canDrag[data-v-50fd1416]{cursor:col-resize}.das-ui-split-panel .das-split-panel-mid .das-split-panel-btn[data-v-50fd1416]{position:absolute;z-index:5;top:50%;transform:translateY(-50%);width:20px;height:20px;border:1px solid transparent;cursor:pointer;padding:1px 2px;box-sizing:border-box;color:var(--das-ui-split-panel-color-btn)}.das-ui-split-panel .das-split-panel-mid .das-split-panel-btn .arrow[data-v-50fd1416]{background:transparent;border-radius:0 10px 10px 0;width:5px;height:30px;position:absolute;left:0;top:50%;transform:translateY(-50%)}.das-ui-split-panel .das-split-panel-mid .das-split-panel-btn .arrow[data-v-50fd1416]:hover{background:#e3ebff}.das-ui-split-panel .das-split-panel-mid .das-split-panel-btn .arrow:hover .arrowItem[data-v-50fd1416]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAPCAYAAAA2yOUNAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAADXSURBVCiRhcwxTgJBFIfx7w1brosNN6Ck8AImmtiQUFg4hYWFPYWewMleAT2BpWs2JNCZ6AEoKDyEMTSyYMXMsxASgsz6le/98hebVyVCO3h//ewOJ+zJAOcoHWPM64Wb92JonaRipLT5V78GAZCAGdi8Gpw4TWJoU79llqV1nymA2LzSCARhipdubOk35YgGj/UIQPXsfyTyUo9Epniu4kh1jP8+fnLpR7L/z8NMD27eXLYC2EUrCLfFXfN++7iNFhr0snDN0e6yQXWI8B6CPy1c9gcA/AC9hEVaCj9IegAAAABJRU5ErkJggg==);background-size:100% 100%;background-repeat:no-repeat}.das-ui-split-panel .das-split-panel-mid .das-split-panel-btn .arrowItem[data-v-50fd1416]{display:block;position:absolute;left:1px;top:50%;transform:translateY(-50%);width:3px;height:5px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAPCAYAAAA2yOUNAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAADESURBVCiRjcyxacNgEIbh98RfagANkNKFF3ARSGNwoTaFizSS4HeTDbSDI8TVGUAE7C6QBVK48A7yAC4PLpVAGMnOW949fKKqHfDk7m9VVf0yUQLkwEJEftq23cyhoVREOlXd3UOISAD2qrqv6zpMolG7LMu6pmlSAFFVn4EAJzNbzy0NLUMIn48QwMt/0PcjdDKz7T10NLNVjPEyh5q+7/MY4xUg3DwNeC/L8mN8HKOriLwWRXG4nU3c/Qs4u/vzFAD4A8SJPtakrxSFAAAAAElFTkSuQmCC);background-size:100% 100%;background-repeat:no-repeat}.das-ui-split-panel .das-split-panel-mid .das-split-panel-btn.left[data-v-50fd1416]{right:0;border-right:none;border-radius:50% 0 0 50%}.das-ui-split-panel .das-split-panel-mid .das-split-panel-btn.left .arrow[data-v-50fd1416]{right:1px;left:auto;border-radius:10px 0 0 10px}.das-ui-split-panel .das-split-panel-mid .das-split-panel-btn.left .arrowItem[data-v-50fd1416]{transform-origin:50% 50%;transform:rotate(180deg) translateY(50%)}.das-ui-split-panel .das-split-panel-mid .das-split-panel-btn.right[data-v-50fd1416]{left:0;border-left:none;border-radius:0 50% 50% 0}