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