@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.
- package/package.json +5 -5
- package/packages/business-components/change-pwd/src/hooks/use-changePwd.d.ts +8 -2
- package/packages/business-components/process-form/src/hooks/useForm.d.ts +8 -2
- package/packages/components/button/index.d.ts +3 -0
- package/packages/components/button/index.js +276 -283
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/button/src/Index.vue.d.ts +1 -0
- package/packages/components/button/style.css +1 -1
- package/packages/components/button/style.css.gz +0 -0
- package/packages/components/cascader/index.d.ts +9 -9
- package/packages/components/cascader/index.js +110 -100
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/src/Index.vue.d.ts +1 -1
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/checkbox/index.js +355 -334
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/src/Index.vue.d.ts +5 -0
- package/packages/components/checkbox/style.css +1 -1
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/color-picker/index.js +42 -41
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/style.css +1 -1
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/date-picker/index.js +503 -486
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/edit-table/index.js +1 -1
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/style.css +1 -1
- package/packages/components/edit-table/style.css.gz +0 -0
- package/packages/components/error-overlay-model/index.js +15 -15
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form/hooks/use-form-size.d.ts +3 -0
- package/packages/components/form/index.d.ts +12 -2
- package/packages/components/form/index.js +62 -69
- package/packages/components/form/index.js.gz +0 -0
- package/packages/components/form/src/Index.vue.d.ts +9 -0
- package/packages/components/form/src/type.d.ts +3 -0
- package/packages/components/form/style.css +1 -1
- package/packages/components/form-item/index.js +1110 -1082
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/src/hooks/use-form.d.ts +13 -3
- package/packages/components/form-item/src/type.d.ts +6 -0
- package/packages/components/form-item/style.css +1 -1
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/input/index.js +399 -215
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/src/constants.d.ts +17 -0
- package/packages/components/input/src/hooks/use-overflow-tip.d.ts +13 -0
- package/packages/components/input/src/type.d.ts +9 -9
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input-dialog-select/index.js +74 -66
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/input-number/index.js +76 -70
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/message/index.js +1 -1
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/message/style.css +1 -1
- package/packages/components/message/style.css.gz +0 -0
- package/packages/components/radio/index.js +116 -103
- package/packages/components/radio/index.js.gz +0 -0
- package/packages/components/radio/src/Index.vue.d.ts +5 -0
- package/packages/components/radio/style.css +1 -1
- package/packages/components/radio/style.css.gz +0 -0
- package/packages/components/select/index.js +92 -88
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-input/index.js +39 -37
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-input/style.css +1 -1
- package/packages/components/select-input/style.css.gz +0 -0
- package/packages/components/split-panel/index.js +209 -193
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/split-panel/style.css +1 -1
- package/packages/components/split-panel/style.css.gz +0 -0
- package/packages/components/switch/index.js +45 -29
- package/packages/components/switch/index.js.gz +0 -0
- package/packages/components/switch/style.css +1 -1
- package/packages/components/switch/style.css.gz +0 -0
- package/packages/components/table/index.js +1944 -1932
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/Table.vue.d.ts +12 -9
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tree-select/index.js +1 -1
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/upload/index.js +3 -2
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/upload/style.css +1 -1
- package/packages/components/upload/style.css.gz +0 -0
- package/packages/components/upload/theme/index.d.ts +3 -0
- package/packages/components/form-item/src/hooks/useFormLabelWidth.d.ts +0 -6
- package/packages/components/input/index.d.ts +0 -124
- 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
|
|
3
|
-
import { withInstall as
|
|
4
|
-
import {
|
|
5
|
-
|
|
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
|
|
12
|
-
return
|
|
13
|
-
},
|
|
14
|
-
function
|
|
15
|
-
for (var n = e.length; 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
|
|
20
|
-
function
|
|
21
|
-
return e && e.slice(0,
|
|
17
|
+
var Fe = /^\s+/;
|
|
18
|
+
function ke(e) {
|
|
19
|
+
return e && e.slice(0, Te(e) + 1).replace(Fe, "");
|
|
22
20
|
}
|
|
23
|
-
var W =
|
|
24
|
-
function
|
|
25
|
-
var n =
|
|
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 =
|
|
29
|
+
var l = Ce.call(e);
|
|
32
30
|
return o && (n ? e[j] = t : delete e[j]), l;
|
|
33
31
|
}
|
|
34
|
-
var
|
|
35
|
-
function
|
|
36
|
-
return
|
|
32
|
+
var De = Object.prototype, _e = De.toString;
|
|
33
|
+
function je(e) {
|
|
34
|
+
return _e.call(e);
|
|
37
35
|
}
|
|
38
|
-
var
|
|
39
|
-
function
|
|
40
|
-
return e == null ? e === void 0 ?
|
|
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
|
|
40
|
+
function We(e) {
|
|
43
41
|
return e != null && typeof e == "object";
|
|
44
42
|
}
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return typeof e == "symbol" ||
|
|
43
|
+
var Be = "[object Symbol]";
|
|
44
|
+
function ze(e) {
|
|
45
|
+
return typeof e == "symbol" || We(e) && Pe(e) == Be;
|
|
48
46
|
}
|
|
49
|
-
var
|
|
50
|
-
function
|
|
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 (
|
|
54
|
-
return
|
|
55
|
-
if (
|
|
51
|
+
if (ze(e))
|
|
52
|
+
return J;
|
|
53
|
+
if (q(e)) {
|
|
56
54
|
var n = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
57
|
-
e =
|
|
55
|
+
e = q(n) ? n + "" : n;
|
|
58
56
|
}
|
|
59
57
|
if (typeof e != "string")
|
|
60
58
|
return e === 0 ? e : +e;
|
|
61
|
-
e =
|
|
62
|
-
var t =
|
|
63
|
-
return t ||
|
|
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
|
|
66
|
-
function
|
|
67
|
-
var o, l, i, f,
|
|
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(
|
|
70
|
-
n =
|
|
71
|
-
function
|
|
72
|
-
var b = o,
|
|
73
|
-
return o = l = void 0, S = c, f = e.apply(
|
|
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
|
|
76
|
-
return S = c,
|
|
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,
|
|
80
|
-
return m ?
|
|
77
|
+
var b = c - g, E = c - S, N = n - b;
|
|
78
|
+
return m ? qe(N, i - E) : N;
|
|
81
79
|
}
|
|
82
|
-
function
|
|
83
|
-
var b = c - g,
|
|
84
|
-
return g === void 0 || b >= n || b < 0 || m &&
|
|
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
|
|
84
|
+
function I() {
|
|
87
85
|
var c = U();
|
|
88
|
-
if (
|
|
89
|
-
return
|
|
90
|
-
|
|
86
|
+
if (C(c))
|
|
87
|
+
return R(c);
|
|
88
|
+
s = setTimeout(I, h(c));
|
|
91
89
|
}
|
|
92
|
-
function
|
|
93
|
-
return
|
|
90
|
+
function R(c) {
|
|
91
|
+
return s = void 0, p && o ? v(c) : (o = l = void 0, f);
|
|
94
92
|
}
|
|
95
|
-
function
|
|
96
|
-
|
|
93
|
+
function T() {
|
|
94
|
+
s !== void 0 && clearTimeout(s), S = 0, o = g = l = s = void 0;
|
|
97
95
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
96
|
+
function w() {
|
|
97
|
+
return s === void 0 ? f : R(U());
|
|
100
98
|
}
|
|
101
|
-
function
|
|
102
|
-
var c = U(), b =
|
|
99
|
+
function F() {
|
|
100
|
+
var c = U(), b = C(c);
|
|
103
101
|
if (o = arguments, l = this, g = c, b) {
|
|
104
|
-
if (
|
|
105
|
-
return
|
|
102
|
+
if (s === void 0)
|
|
103
|
+
return u(g);
|
|
106
104
|
if (m)
|
|
107
|
-
return clearTimeout(
|
|
105
|
+
return clearTimeout(s), s = setTimeout(I, n), v(g);
|
|
108
106
|
}
|
|
109
|
-
return
|
|
107
|
+
return s === void 0 && (s = setTimeout(I, n)), f;
|
|
110
108
|
}
|
|
111
|
-
return
|
|
109
|
+
return F.cancel = T, F.flush = w, F;
|
|
112
110
|
}
|
|
113
|
-
var
|
|
114
|
-
const G = typeof window < "u",
|
|
111
|
+
var Z;
|
|
112
|
+
const G = typeof window < "u", Ve = (e) => typeof e == "string", He = () => {
|
|
115
113
|
};
|
|
116
|
-
G && ((
|
|
117
|
-
function
|
|
118
|
-
return typeof e == "function" ? 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
|
|
118
|
+
function Ke(e) {
|
|
121
119
|
return e;
|
|
122
120
|
}
|
|
123
|
-
function
|
|
124
|
-
return
|
|
121
|
+
function fe(e) {
|
|
122
|
+
return pe() ? (me(e), !0) : !1;
|
|
125
123
|
}
|
|
126
|
-
function
|
|
127
|
-
|
|
124
|
+
function Je(e, n = !0) {
|
|
125
|
+
ge() ? se(e) : n ? e() : be(e);
|
|
128
126
|
}
|
|
129
|
-
function
|
|
127
|
+
function ce(e) {
|
|
130
128
|
var n;
|
|
131
|
-
const t =
|
|
129
|
+
const t = ie(e);
|
|
132
130
|
return (n = t == null ? void 0 : t.$el) != null ? n : t;
|
|
133
131
|
}
|
|
134
|
-
const
|
|
135
|
-
function
|
|
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 (
|
|
138
|
-
return
|
|
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
|
-
},
|
|
143
|
-
f(), a && i.push(...t.flatMap((
|
|
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
|
|
145
|
+
return fe(S), S;
|
|
148
146
|
}
|
|
149
|
-
function
|
|
147
|
+
function tt(e, n = !1) {
|
|
150
148
|
const t = y(), o = () => t.value = !!e();
|
|
151
|
-
return o(),
|
|
149
|
+
return o(), Je(o, n), t;
|
|
152
150
|
}
|
|
153
|
-
const
|
|
154
|
-
|
|
155
|
-
const
|
|
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
|
|
198
|
-
const { document: t =
|
|
199
|
-
let f =
|
|
200
|
-
const
|
|
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
|
|
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
|
|
210
|
-
|
|
207
|
+
async function p() {
|
|
208
|
+
s.value && (t != null && t[a] && await t[S](), i.value = !1);
|
|
211
209
|
}
|
|
212
|
-
async function
|
|
213
|
-
if (!
|
|
210
|
+
async function v() {
|
|
211
|
+
if (!s.value)
|
|
214
212
|
return;
|
|
215
|
-
await
|
|
216
|
-
const h =
|
|
213
|
+
await p();
|
|
214
|
+
const h = ce(l);
|
|
217
215
|
h && (await h[g](), i.value = !0);
|
|
218
216
|
}
|
|
219
|
-
async function
|
|
220
|
-
i.value ? await
|
|
217
|
+
async function u() {
|
|
218
|
+
i.value ? await p() : await v();
|
|
221
219
|
}
|
|
222
|
-
return t &&
|
|
220
|
+
return t && et(t, m, () => {
|
|
223
221
|
i.value = !!(t != null && t[a]);
|
|
224
|
-
}, !1), o &&
|
|
225
|
-
isSupported:
|
|
222
|
+
}, !1), o && fe(p), {
|
|
223
|
+
isSupported: s,
|
|
226
224
|
isFullscreen: i,
|
|
227
|
-
enter:
|
|
228
|
-
exit:
|
|
229
|
-
toggle:
|
|
225
|
+
enter: v,
|
|
226
|
+
exit: p,
|
|
227
|
+
toggle: u
|
|
230
228
|
};
|
|
231
229
|
}
|
|
232
|
-
var
|
|
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
|
-
})(
|
|
236
|
-
var
|
|
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
|
-
|
|
239
|
-
if (
|
|
240
|
-
for (var t of
|
|
241
|
-
|
|
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
|
|
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
|
-
|
|
271
|
-
linear:
|
|
272
|
-
},
|
|
273
|
-
const
|
|
268
|
+
st({
|
|
269
|
+
linear: Ke
|
|
270
|
+
}, ut);
|
|
271
|
+
const ot = { class: "das-split-panel-second" }, it = {
|
|
274
272
|
name: "DasSplitPanel"
|
|
275
|
-
},
|
|
276
|
-
...
|
|
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 } =
|
|
289
|
+
const { isFullscreen: o } = nt(), l = e, i = t, f = y(null), s = y(null), g = _(() => {
|
|
292
290
|
var r;
|
|
293
|
-
return
|
|
291
|
+
return s != null && s.value && Number((r = s == null ? void 0 : s.value) == null ? void 0 : r.offsetWidth) - 2 || 1;
|
|
294
292
|
});
|
|
295
|
-
|
|
296
|
-
const S = y(null), a = y(), m = y(),
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
(r,
|
|
300
|
-
r === 0 ?
|
|
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
|
-
),
|
|
301
|
+
), $(o, (r) => {
|
|
304
302
|
B();
|
|
305
303
|
});
|
|
306
|
-
const
|
|
307
|
-
|
|
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
|
-
|
|
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
|
-
}),
|
|
315
|
-
l.canDrag && (b.value.mouseFlag = !0, b.value.startX = r.clientX, b.value.startWidth =
|
|
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,
|
|
319
|
-
|
|
320
|
-
},
|
|
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
|
-
},
|
|
320
|
+
}, x = (r, d) => {
|
|
323
321
|
let k = 0;
|
|
324
|
-
return typeof
|
|
325
|
-
},
|
|
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 =
|
|
328
|
-
},
|
|
329
|
-
|
|
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
|
|
329
|
+
let H = y(!0);
|
|
332
330
|
const B = () => {
|
|
333
|
-
var
|
|
331
|
+
var d;
|
|
334
332
|
let r = !1;
|
|
335
|
-
if (
|
|
336
|
-
if (
|
|
337
|
-
|
|
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
|
|
341
|
+
return se(() => {
|
|
344
342
|
var r;
|
|
345
|
-
h.value = !0, S.value = new ResizeObserver(
|
|
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:
|
|
345
|
+
toLeft: F,
|
|
348
346
|
toRight: c,
|
|
349
|
-
reset:
|
|
350
|
-
}), (r,
|
|
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
|
-
|
|
357
|
+
O(
|
|
360
358
|
"div",
|
|
361
359
|
{
|
|
362
360
|
class: "das-split-panel-first",
|
|
363
|
-
style: A(
|
|
361
|
+
style: A(I.value)
|
|
364
362
|
},
|
|
365
363
|
[
|
|
366
|
-
|
|
364
|
+
P(r.$slots, "firstSlot", {}, void 0, !0)
|
|
367
365
|
],
|
|
368
366
|
4
|
|
369
367
|
/* STYLE */
|
|
370
368
|
),
|
|
371
|
-
|
|
369
|
+
O(
|
|
372
370
|
"div",
|
|
373
371
|
{
|
|
374
372
|
class: "das-split-panel-mid",
|
|
375
373
|
ref_key: "$splitLine",
|
|
376
|
-
ref:
|
|
377
|
-
style: A(
|
|
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:
|
|
380
|
+
onClick: F
|
|
383
381
|
}, [
|
|
384
|
-
|
|
385
|
-
|
|
382
|
+
P(r.$slots, "leftBtn", {}, () => [
|
|
383
|
+
O(
|
|
386
384
|
"span",
|
|
387
385
|
{
|
|
388
|
-
class: Q(["das-split-panel-btn left", [
|
|
386
|
+
class: Q(["das-split-panel-btn left", [w.value ? "isBase" : ""]])
|
|
389
387
|
},
|
|
390
388
|
[
|
|
391
|
-
|
|
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
|
-
])) :
|
|
398
|
-
|
|
404
|
+
])) : M("v-if", !0),
|
|
405
|
+
O(
|
|
399
406
|
"div",
|
|
400
407
|
{
|
|
401
|
-
class: Q(["das-split-panel-line", { hide:
|
|
402
|
-
onDragstart:
|
|
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(
|
|
405
|
-
onClick:
|
|
411
|
+
onMousedown: X(E, ["prevent"]),
|
|
412
|
+
onClick: d[1] || (d[1] = X(() => {
|
|
406
413
|
}, ["stop", "prevent"]))
|
|
407
414
|
},
|
|
408
415
|
[
|
|
409
|
-
|
|
410
|
-
|
|
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
|
-
|
|
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
|
-
|
|
427
|
-
|
|
433
|
+
P(r.$slots, "rightBtn", {}, () => [
|
|
434
|
+
O(
|
|
428
435
|
"span",
|
|
429
436
|
{
|
|
430
|
-
class: Q(["das-split-panel-btn right", [
|
|
437
|
+
class: Q(["das-split-panel-btn right", [T.value ? "isBase" : ""]])
|
|
431
438
|
},
|
|
432
439
|
[
|
|
433
|
-
|
|
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
|
-
])) :
|
|
455
|
+
])) : M("v-if", !0)
|
|
440
456
|
],
|
|
441
457
|
4
|
|
442
458
|
/* STYLE */
|
|
443
459
|
),
|
|
444
|
-
|
|
445
|
-
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
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
|
-
|
|
466
|
-
const
|
|
481
|
+
Oe(vt);
|
|
482
|
+
const bt = he(dt), yt = () => y(null), St = { name: "splitPanel 分割面板" };
|
|
467
483
|
export {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
484
|
+
bt as DasSplitPanel,
|
|
485
|
+
yt as DasSplitPanelRef,
|
|
486
|
+
St as default
|
|
471
487
|
};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-ui-split-panel[data-v-
|
|
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}
|
|
Binary file
|