@das-fed/upf-ui 6.4.0-dev.214 → 6.4.0-dev.216
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 +4 -4
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +4 -4
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +4 -4
- package/package.json +5 -5
- package/packages/business-components/ai-panel/index-B4pMosXu.js +143 -0
- package/packages/business-components/ai-panel/index-B4pMosXu.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-BybM3Q9u.js → index-BgyMyjJo.js} +711 -700
- package/packages/business-components/ai-panel/index-BgyMyjJo.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-CwdJKHy0.js → index-Bw7rNZmA.js} +9 -9
- package/packages/business-components/ai-panel/index-Bw7rNZmA.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/change-enterprises/index.d.ts +5 -5
- package/packages/business-components/change-enterprises/src/index.vue.d.ts +1 -1
- package/packages/business-components/device-panel/index.js +8873 -8773
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/echarts/index.js +2056 -2049
- 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 +130 -128
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +904 -896
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +249 -246
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +1 -0
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/autocomplete/index.js +12 -6
- package/packages/components/autocomplete/index.js.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 +63 -61
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +23 -22
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +224 -223
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +44 -42
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form-item/index.js +67 -63
- 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 +834 -832
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +437 -431
- 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 +4586 -4556
- 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.js +92 -92
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/index.js +10 -6
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +16 -14
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +53 -51
- 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 +102 -101
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +604 -599
- 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 +182 -173
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +81 -81
- package/packages/components/tree-select/index.js.gz +0 -0
- 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 +1240 -1208
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-BybM3Q9u.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CgWRv2Ge.js +0 -142
- package/packages/business-components/ai-panel/index-CgWRv2Ge.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CwdJKHy0.js.gz +0 -0
- package/packages/components/input/index.d.ts +0 -4264
- package/packages/components/input/src/index.vue.d.ts +0 -1432
- package/packages/components/virtual-tree/src/App.vue.d.ts +0 -3974
- package/packages/components/virtual-tree/src/type.d.ts +0 -43
|
@@ -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 ue, nextTick as Se, ref as b, watch as U, defineComponent as he, computed as _, openBlock as P, createElementBlock as L, normalizeStyle as z, createElementVNode as O, renderSlot as D, normalizeClass as A, 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 q(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, oe = Ee || Te || Function("return this")(), X = function() {
|
|
10
|
+
return oe.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 = oe.Symbol, ie = Object.prototype, Ce = ie.hasOwnProperty, xe = ie.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 o = !0;
|
|
27
27
|
} catch {
|
|
28
28
|
}
|
|
29
29
|
var r = xe.call(e);
|
|
30
|
-
return
|
|
30
|
+
return o && (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 ze(e) {
|
|
45
45
|
return typeof e == "symbol" || Pe(e) && Be(e) == Le;
|
|
46
46
|
}
|
|
47
|
-
var Y = NaN,
|
|
47
|
+
var Y = NaN, Ae = /^[-+]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 (ze(e))
|
|
52
52
|
return Y;
|
|
53
|
-
if (
|
|
53
|
+
if (q(e)) {
|
|
54
54
|
var n = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
55
|
-
e =
|
|
55
|
+
e = q(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) : Ae.test(e) ? Y : +e;
|
|
62
62
|
}
|
|
63
|
-
var
|
|
64
|
-
function
|
|
65
|
-
var
|
|
63
|
+
var qe = "Expected a function", $e = Math.max, Ge = Math.min;
|
|
64
|
+
function He(e, n, t) {
|
|
65
|
+
var o, r, f, c, s, 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(qe);
|
|
68
|
+
n = Z(n) || 0, q(t) && (a = !!t.leading, m = "maxWait" in t, f = m ? $e(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 = o, T = r;
|
|
71
|
+
return o = r = void 0, S = d, c = e.apply(T, g), c;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
return S = d,
|
|
73
|
+
function u(d) {
|
|
74
|
+
return S = d, s = 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 Ve(e, n, t) {
|
|
|
85
85
|
var d = X();
|
|
86
86
|
if (C(d))
|
|
87
87
|
return N(d);
|
|
88
|
-
|
|
88
|
+
s = setTimeout(I, h(d));
|
|
89
89
|
}
|
|
90
90
|
function N(d) {
|
|
91
|
-
return
|
|
91
|
+
return s = void 0, p && o ? v(d) : (o = r = void 0, c);
|
|
92
92
|
}
|
|
93
93
|
function k() {
|
|
94
|
-
|
|
94
|
+
s !== void 0 && clearTimeout(s), S = 0, o = y = r = s = void 0;
|
|
95
95
|
}
|
|
96
96
|
function E() {
|
|
97
|
-
return
|
|
97
|
+
return s === 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 (o = arguments, r = this, y = d, g) {
|
|
102
|
+
if (s === void 0)
|
|
103
|
+
return u(y);
|
|
104
104
|
if (m)
|
|
105
|
-
return clearTimeout(
|
|
105
|
+
return clearTimeout(s), s = setTimeout(I, n), v(y);
|
|
106
106
|
}
|
|
107
|
-
return
|
|
107
|
+
return s === void 0 && (s = 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 $ = typeof window < "u", Ve = (e) => typeof e == "string", Ke = () => {
|
|
113
113
|
};
|
|
114
|
-
|
|
114
|
+
$ && ((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() ? ue(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 = $ ? window : void 0, et = $ ? window.document : void 0;
|
|
133
133
|
function tt(...e) {
|
|
134
|
-
let n, t,
|
|
135
|
-
if (
|
|
134
|
+
let n, t, o, r;
|
|
135
|
+
if (Ve(e[0]) || Array.isArray(e[0]) ? ([t, o, r] = e, n = Ze) : [n, t, o, r] = e, !n)
|
|
136
136
|
return Ke;
|
|
137
|
-
Array.isArray(t) || (t = [t]), Array.isArray(
|
|
137
|
+
Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
|
|
138
138
|
const f = [], c = () => {
|
|
139
139
|
f.forEach((a) => a()), f.length = 0;
|
|
140
|
-
},
|
|
141
|
-
c(), a && f.push(...t.flatMap((p) =>
|
|
140
|
+
}, s = (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) => o.map((v) => s(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(), o = () => t.value = !!e();
|
|
149
|
+
return o(), Ye(o, 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: o = !1 } = n, r = t == null ? void 0 : t.querySelector("html"), f = b(!1);
|
|
197
197
|
let c = le[0];
|
|
198
|
-
const
|
|
198
|
+
const s = 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
|
+
s.value && (t != null && t[a] && await t[S](), f.value = !1);
|
|
209
209
|
}
|
|
210
210
|
async function v() {
|
|
211
|
-
if (!
|
|
211
|
+
if (!s.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 u() {
|
|
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), o && ce(p), {
|
|
223
|
+
isSupported: s,
|
|
224
224
|
isFullscreen: f,
|
|
225
225
|
enter: v,
|
|
226
226
|
exit: p,
|
|
227
|
-
toggle:
|
|
227
|
+
toggle: u
|
|
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, st = Object.prototype.propertyIsEnumerable, se = (e, n, t) => n in e ? rt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, ut = (e, n) => {
|
|
235
235
|
for (var t in n)
|
|
236
|
-
at.call(n, t) &&
|
|
236
|
+
at.call(n, t) && se(e, t, n[t]);
|
|
237
237
|
if (ae)
|
|
238
238
|
for (var t of ae(n))
|
|
239
|
-
|
|
239
|
+
st.call(n, t) && se(e, t, n[t]);
|
|
240
240
|
return e;
|
|
241
241
|
};
|
|
242
|
-
const
|
|
242
|
+
const ot = {
|
|
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 it = {
|
|
|
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
|
+
ut({
|
|
269
269
|
linear: Je
|
|
270
|
-
},
|
|
271
|
-
const
|
|
270
|
+
}, ot);
|
|
271
|
+
const it = { class: "das-split-panel-second" }, ft = {
|
|
272
272
|
name: "DasSplitPanel"
|
|
273
273
|
}, ct = /* @__PURE__ */ he({
|
|
274
274
|
...ft,
|
|
@@ -286,95 +286,96 @@ const ot = { 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: o } = lt(), r = e, f = t, c = b(null), s = b(null), y = _(() => {
|
|
290
|
+
var i;
|
|
291
|
+
if (console.log("分割线宽度"), console.dir(s == null ? void 0 : s.value), !(s != null && s.value)) return 1;
|
|
292
|
+
const l = (i = s == null ? void 0 : s.value) == null ? void 0 : i.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), u = b(0), h = b(!0), C = _(() => u.value + "px"), I = _(() => ({ width: C.value })), N = _(() => ({ left: C.value })), k = b(!1), E = b(!1);
|
|
297
297
|
U(
|
|
298
|
-
|
|
299
|
-
(l,
|
|
298
|
+
u,
|
|
299
|
+
(l, i) => {
|
|
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
|
-
B();
|
|
303
|
+
), U(o, (l) => {
|
|
304
|
+
console.log("isFullscreen", l), B();
|
|
305
305
|
});
|
|
306
306
|
const M = () => {
|
|
307
|
-
|
|
307
|
+
u.value > v.value ? (u.value = v.value, f("onDefault")) : u.value <= v.value && u.value > 0 && (u.value = 0, f("onLeft"));
|
|
308
308
|
}, d = () => {
|
|
309
|
-
|
|
309
|
+
u.value < v.value ? (u.value = v.value, f("onDefault")) : u.value >= v.value && u.value < a.value && (u.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 = u.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 ? u.value = m.value : F > p.value ? u.value = p.value : F > m.value && F < p.value && (u.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, i) => {
|
|
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 i == "number" && i <= 1)
|
|
326
|
+
w = F * i;
|
|
327
|
+
else if (typeof i == "number")
|
|
328
|
+
w = i;
|
|
329
329
|
else {
|
|
330
|
-
const
|
|
331
|
-
w = isNaN(
|
|
330
|
+
const V = Number(i);
|
|
331
|
+
w = isNaN(V) ? 0 : V;
|
|
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, u.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, u.value = l), r.defaultClose && r.defaultClose == "first" ? u.value = 0 : r.defaultClose && r.defaultClose == "second" && (u.value = a.value);
|
|
337
337
|
}, pe = () => {
|
|
338
338
|
G();
|
|
339
339
|
};
|
|
340
|
-
let
|
|
340
|
+
let H = b(!0);
|
|
341
341
|
const B = () => {
|
|
342
342
|
var w;
|
|
343
|
+
console.log("onresize");
|
|
343
344
|
let l = !1;
|
|
344
345
|
if (E.value && (l = !0), !(c != null && c.value)) return;
|
|
345
|
-
const
|
|
346
|
-
if (a.value =
|
|
347
|
-
if (G(),
|
|
348
|
-
|
|
346
|
+
const i = ((w = c == null ? void 0 : c.value) == null ? void 0 : w.clientWidth) ?? 0;
|
|
347
|
+
if (a.value = i - y.value || 0, m.value = x(a.value, r.firstMin), p.value = a.value - x(a.value, r.secondMin), console.log(a.value, m.value, p.value), l && (u.value = a.value), h.value === !0) {
|
|
348
|
+
if (G(), H.value) {
|
|
349
|
+
H.value = !1;
|
|
349
350
|
return;
|
|
350
351
|
}
|
|
351
352
|
h.value = !1;
|
|
352
353
|
}
|
|
353
354
|
};
|
|
354
|
-
return
|
|
355
|
+
return ue(() => {
|
|
355
356
|
var l;
|
|
356
|
-
h.value = !0, S.value = new ResizeObserver(
|
|
357
|
+
h.value = !0, S.value = new ResizeObserver(He(B, 30)), (l = S.value) == null || l.observe(c == null ? void 0 : c.value), B();
|
|
357
358
|
}), n({
|
|
358
359
|
toLeft: M,
|
|
359
360
|
toRight: d,
|
|
360
361
|
reset: pe
|
|
361
|
-
}), (l,
|
|
362
|
+
}), (l, i) => (P(), L("div", {
|
|
362
363
|
class: "das-ui-split-panel",
|
|
363
364
|
ref_key: "$splitPanel",
|
|
364
365
|
ref: c,
|
|
365
|
-
style:
|
|
366
|
+
style: z(l.boxStyle)
|
|
366
367
|
}, [
|
|
367
368
|
O("div", {
|
|
368
369
|
class: "das-split-panel-first",
|
|
369
|
-
style:
|
|
370
|
+
style: z(I.value)
|
|
370
371
|
}, [
|
|
371
372
|
D(l.$slots, "firstSlot", {}, void 0, !0)
|
|
372
373
|
], 4),
|
|
373
374
|
O("div", {
|
|
374
375
|
class: "das-split-panel-mid",
|
|
375
376
|
ref_key: "$splitLine",
|
|
376
|
-
ref:
|
|
377
|
-
style:
|
|
377
|
+
ref: s,
|
|
378
|
+
style: z(N.value)
|
|
378
379
|
}, [
|
|
379
380
|
l.canFold ? (P(), L("span", {
|
|
380
381
|
key: 0,
|
|
@@ -382,8 +383,8 @@ const ot = { class: "das-split-panel-second" }, ft = {
|
|
|
382
383
|
}, [
|
|
383
384
|
D(l.$slots, "leftBtn", {}, () => [
|
|
384
385
|
O("span", {
|
|
385
|
-
class:
|
|
386
|
-
},
|
|
386
|
+
class: A(["das-split-panel-btn left", [E.value ? "isBase" : ""]])
|
|
387
|
+
}, i[2] || (i[2] = [
|
|
387
388
|
O("div", { class: "arrow" }, [
|
|
388
389
|
O("span", { class: "arrowItem" })
|
|
389
390
|
], -1)
|
|
@@ -391,13 +392,13 @@ const ot = { class: "das-split-panel-second" }, ft = {
|
|
|
391
392
|
], !0)
|
|
392
393
|
])) : K("", !0),
|
|
393
394
|
O("div", {
|
|
394
|
-
class:
|
|
395
|
-
onDragstart:
|
|
395
|
+
class: A(["das-split-panel-line", { hide: k.value || E.value, canDrag: r.canDrag }]),
|
|
396
|
+
onDragstart: i[0] || (i[0] = Q(() => {
|
|
396
397
|
}, ["stop", "prevent"])),
|
|
397
398
|
onMousedown: Q(T, ["prevent"]),
|
|
398
|
-
onClick:
|
|
399
|
+
onClick: i[1] || (i[1] = Q(() => {
|
|
399
400
|
}, ["stop", "prevent"]))
|
|
400
|
-
},
|
|
401
|
+
}, i[3] || (i[3] = [
|
|
401
402
|
O("div", { class: "das-split-panel-divider" }, null, -1)
|
|
402
403
|
]), 34),
|
|
403
404
|
l.canFold ? (P(), L("span", {
|
|
@@ -406,8 +407,8 @@ const ot = { class: "das-split-panel-second" }, ft = {
|
|
|
406
407
|
}, [
|
|
407
408
|
D(l.$slots, "rightBtn", {}, () => [
|
|
408
409
|
O("span", {
|
|
409
|
-
class:
|
|
410
|
-
},
|
|
410
|
+
class: A(["das-split-panel-btn right", [k.value ? "isBase" : ""]])
|
|
411
|
+
}, i[4] || (i[4] = [
|
|
411
412
|
O("div", { class: "arrow" }, [
|
|
412
413
|
O("span", { class: "arrowItem" })
|
|
413
414
|
], -1)
|
|
@@ -415,15 +416,15 @@ const ot = { class: "das-split-panel-second" }, ft = {
|
|
|
415
416
|
], !0)
|
|
416
417
|
])) : K("", !0)
|
|
417
418
|
], 4),
|
|
418
|
-
O("div",
|
|
419
|
+
O("div", it, [
|
|
419
420
|
D(l.$slots, "secondSlot", {}, void 0, !0)
|
|
420
421
|
])
|
|
421
422
|
], 4));
|
|
422
423
|
}
|
|
423
424
|
}), dt = (e, n) => {
|
|
424
425
|
const t = e.__vccOpts || e;
|
|
425
|
-
for (const [
|
|
426
|
-
t[
|
|
426
|
+
for (const [o, r] of n)
|
|
427
|
+
t[o] = r;
|
|
427
428
|
return t;
|
|
428
429
|
}, vt = /* @__PURE__ */ dt(ct, [["__scopeId", "data-v-4ea84997"]]), pt = {
|
|
429
430
|
"--das-ui-split-panel-color-primary": "#5582F3",
|
|
Binary file
|