@das-fed/ui 7.0.7-hot.21 → 7.0.7-hot.22
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/ai-panel/{index-8yffh0Id.js → index-DMJXZM7n.js} +1067 -1056
- package/packages/business-components/ai-panel/index-DMJXZM7n.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-IzGl26KU.js → index-MqhMkLo9.js} +9 -9
- package/packages/business-components/ai-panel/index-MqhMkLo9.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-OwRrV6K8.js → index-_q72oKSF.js} +63 -62
- package/packages/business-components/ai-panel/index-_q72oKSF.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.js +14908 -14808
- 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 +46 -46
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +99 -99
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +77 -77
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +215 -213
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +1104 -1096
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +243 -240
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +65 -64
- 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 +99 -99
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.js +2 -2
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +30 -30
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +212 -212
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +77 -75
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +25 -24
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +398 -397
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +47 -45
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form-item/index.js +67 -67
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/hls-player/index.js +14 -7
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +147 -143
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +297 -293
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +52 -52
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-number/index.js +26 -26
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +251 -248
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +421 -415
- 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/popover/index.js +12 -12
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/radio-tabs/index.js +34 -34
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +4613 -4583
- 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 +24 -24
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/select/index.js +60 -60
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/index.js +9 -5
- 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 +33 -33
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +129 -128
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +179 -178
- 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-select/index.js +1 -1
- 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 +1117 -1093
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
- package/packages/business-components/ai-panel/index-IzGl26KU.js.gz +0 -0
- package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/split-panel/style.css';
|
|
2
|
-
import { getCurrentScope as ge, onScopeDispose as be, getCurrentInstance as ye, onMounted as
|
|
2
|
+
import { getCurrentScope as ge, onScopeDispose as be, getCurrentInstance as ye, onMounted as se, nextTick as Se, unref as q, ref as y, watch as $, defineComponent as he, computed as x, createElementBlock as z, openBlock as A, normalizeStyle as L, createElementVNode as w, renderSlot as R, createCommentVNode as P, normalizeClass as Q, createVNode as J, withModifiers as X } from "vue";
|
|
3
3
|
import { withInstall as Oe } from "@das-fed/utils/with-install/index";
|
|
4
|
-
import { DasIconShuyoufanye as
|
|
5
|
-
import { DasIconShuzuofanye as
|
|
4
|
+
import { DasIconShuyoufanye as Ee } from "@das-fed/ui/packages/icons/shuyoufanye/index";
|
|
5
|
+
import { DasIconShuzuofanye as we } from "@das-fed/ui/packages/icons/shuzuofanye/index";
|
|
6
6
|
import { setThemeRule as Te } from "@das-fed/web/packages/theme/index";
|
|
7
|
-
function
|
|
7
|
+
function G(e) {
|
|
8
8
|
var n = typeof e;
|
|
9
9
|
return e != null && (n == "object" || n == "function");
|
|
10
10
|
}
|
|
@@ -25,11 +25,11 @@ function De(e) {
|
|
|
25
25
|
var n = xe.call(e, j), t = e[j];
|
|
26
26
|
try {
|
|
27
27
|
e[j] = void 0;
|
|
28
|
-
var
|
|
28
|
+
var s = !0;
|
|
29
29
|
} catch {
|
|
30
30
|
}
|
|
31
|
-
var
|
|
32
|
-
return
|
|
31
|
+
var r = je.call(e);
|
|
32
|
+
return s && (n ? e[j] = t : delete e[j]), r;
|
|
33
33
|
}
|
|
34
34
|
var Ne = Object.prototype, Re = Ne.toString;
|
|
35
35
|
function Pe(e) {
|
|
@@ -39,83 +39,83 @@ var We = "[object Null]", Be = "[object Undefined]", Y = W ? W.toStringTag : voi
|
|
|
39
39
|
function ze(e) {
|
|
40
40
|
return e == null ? e === void 0 ? Be : We : Y && Y in Object(e) ? De(e) : Pe(e);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Ae(e) {
|
|
43
43
|
return e != null && typeof e == "object";
|
|
44
44
|
}
|
|
45
|
-
var
|
|
45
|
+
var Le = "[object Symbol]";
|
|
46
46
|
function Qe(e) {
|
|
47
|
-
return typeof e == "symbol" ||
|
|
47
|
+
return typeof e == "symbol" || Ae(e) && ze(e) == Le;
|
|
48
48
|
}
|
|
49
|
-
var Z = NaN, Xe = /^[-+]0x[0-9a-f]+$/i, Ue = /^0b[01]+$/i,
|
|
49
|
+
var Z = NaN, Xe = /^[-+]0x[0-9a-f]+$/i, Ue = /^0b[01]+$/i, qe = /^0o[0-7]+$/i, $e = parseInt;
|
|
50
50
|
function ee(e) {
|
|
51
51
|
if (typeof e == "number")
|
|
52
52
|
return e;
|
|
53
53
|
if (Qe(e))
|
|
54
54
|
return Z;
|
|
55
|
-
if (
|
|
55
|
+
if (G(e)) {
|
|
56
56
|
var n = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
57
|
-
e =
|
|
57
|
+
e = G(n) ? n + "" : n;
|
|
58
58
|
}
|
|
59
59
|
if (typeof e != "string")
|
|
60
60
|
return e === 0 ? e : +e;
|
|
61
61
|
e = _e(e);
|
|
62
62
|
var t = Ue.test(e);
|
|
63
|
-
return t ||
|
|
63
|
+
return t || qe.test(e) ? $e(e.slice(2), t ? 2 : 8) : Xe.test(e) ? Z : +e;
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var Ge = "Expected a function", Ve = Math.max, He = Math.min;
|
|
66
66
|
function Ke(e, n, t) {
|
|
67
|
-
var
|
|
67
|
+
var s, r, i, f, o, g, S = 0, a = !1, p = !1, v = !0;
|
|
68
68
|
if (typeof e != "function")
|
|
69
|
-
throw new TypeError(
|
|
70
|
-
n = ee(n) || 0,
|
|
69
|
+
throw new TypeError(Ge);
|
|
70
|
+
n = ee(n) || 0, G(t) && (a = !!t.leading, p = "maxWait" in t, i = p ? Ve(ee(t.maxWait) || 0, n) : i, v = "trailing" in t ? !!t.trailing : v);
|
|
71
71
|
function d(c) {
|
|
72
|
-
var b =
|
|
73
|
-
return
|
|
72
|
+
var b = s, E = r;
|
|
73
|
+
return s = r = void 0, S = c, f = e.apply(E, b), f;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return S = c,
|
|
75
|
+
function u(c) {
|
|
76
|
+
return S = c, o = setTimeout(T, n), a ? d(c) : f;
|
|
77
77
|
}
|
|
78
78
|
function h(c) {
|
|
79
|
-
var b = c - g,
|
|
80
|
-
return
|
|
79
|
+
var b = c - g, E = c - S, N = n - b;
|
|
80
|
+
return p ? He(N, i - E) : N;
|
|
81
81
|
}
|
|
82
82
|
function M(c) {
|
|
83
|
-
var b = c - g,
|
|
84
|
-
return g === void 0 || b >= n || b < 0 ||
|
|
83
|
+
var b = c - g, E = c - S;
|
|
84
|
+
return g === void 0 || b >= n || b < 0 || p && E >= i;
|
|
85
85
|
}
|
|
86
86
|
function T() {
|
|
87
87
|
var c = U();
|
|
88
88
|
if (M(c))
|
|
89
89
|
return D(c);
|
|
90
|
-
|
|
90
|
+
o = setTimeout(T, h(c));
|
|
91
91
|
}
|
|
92
92
|
function D(c) {
|
|
93
|
-
return
|
|
93
|
+
return o = void 0, v && s ? d(c) : (s = r = void 0, f);
|
|
94
94
|
}
|
|
95
95
|
function F() {
|
|
96
|
-
|
|
96
|
+
o !== void 0 && clearTimeout(o), S = 0, s = g = r = o = void 0;
|
|
97
97
|
}
|
|
98
98
|
function O() {
|
|
99
|
-
return
|
|
99
|
+
return o === void 0 ? f : D(U());
|
|
100
100
|
}
|
|
101
101
|
function I() {
|
|
102
102
|
var c = U(), b = M(c);
|
|
103
|
-
if (
|
|
104
|
-
if (
|
|
105
|
-
return
|
|
106
|
-
if (
|
|
107
|
-
return clearTimeout(
|
|
103
|
+
if (s = arguments, r = this, g = c, b) {
|
|
104
|
+
if (o === void 0)
|
|
105
|
+
return u(g);
|
|
106
|
+
if (p)
|
|
107
|
+
return clearTimeout(o), o = setTimeout(T, n), d(g);
|
|
108
108
|
}
|
|
109
|
-
return
|
|
109
|
+
return o === void 0 && (o = setTimeout(T, n)), f;
|
|
110
110
|
}
|
|
111
111
|
return I.cancel = F, I.flush = O, I;
|
|
112
112
|
}
|
|
113
113
|
var te;
|
|
114
|
-
const
|
|
114
|
+
const V = typeof window < "u", Je = (e) => typeof e == "string", Ye = () => {
|
|
115
115
|
};
|
|
116
|
-
|
|
116
|
+
V && ((te = window == null ? void 0 : window.navigator) != null && te.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
117
117
|
function ce(e) {
|
|
118
|
-
return typeof e == "function" ? e() :
|
|
118
|
+
return typeof e == "function" ? e() : q(e);
|
|
119
119
|
}
|
|
120
120
|
function Ze(e) {
|
|
121
121
|
return e;
|
|
@@ -124,35 +124,35 @@ function de(e) {
|
|
|
124
124
|
return ge() ? (be(e), !0) : !1;
|
|
125
125
|
}
|
|
126
126
|
function et(e, n = !0) {
|
|
127
|
-
ye() ?
|
|
127
|
+
ye() ? se(e) : n ? e() : Se(e);
|
|
128
128
|
}
|
|
129
129
|
function ve(e) {
|
|
130
130
|
var n;
|
|
131
131
|
const t = ce(e);
|
|
132
132
|
return (n = t == null ? void 0 : t.$el) != null ? n : t;
|
|
133
133
|
}
|
|
134
|
-
const tt =
|
|
135
|
-
function
|
|
136
|
-
let n, t,
|
|
137
|
-
if (Je(e[0]) || Array.isArray(e[0]) ? ([t,
|
|
134
|
+
const tt = V ? window : void 0, nt = V ? window.document : void 0;
|
|
135
|
+
function lt(...e) {
|
|
136
|
+
let n, t, s, r;
|
|
137
|
+
if (Je(e[0]) || Array.isArray(e[0]) ? ([t, s, r] = e, n = tt) : [n, t, s, r] = e, !n)
|
|
138
138
|
return Ye;
|
|
139
|
-
Array.isArray(t) || (t = [t]), Array.isArray(
|
|
139
|
+
Array.isArray(t) || (t = [t]), Array.isArray(s) || (s = [s]);
|
|
140
140
|
const i = [], f = () => {
|
|
141
141
|
i.forEach((a) => a()), i.length = 0;
|
|
142
|
-
},
|
|
143
|
-
f(), a && i.push(...t.flatMap((v) =>
|
|
142
|
+
}, o = (a, p, v, d) => (a.addEventListener(p, v, d), () => a.removeEventListener(p, v, d)), g = $(() => [ve(n), ce(r)], ([a, p]) => {
|
|
143
|
+
f(), a && i.push(...t.flatMap((v) => s.map((d) => o(a, v, d, p))));
|
|
144
144
|
}, { immediate: !0, flush: "post" }), S = () => {
|
|
145
145
|
g(), f();
|
|
146
146
|
};
|
|
147
147
|
return de(S), S;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
const t = y(),
|
|
151
|
-
return
|
|
149
|
+
function rt(e, n = !1) {
|
|
150
|
+
const t = y(), s = () => t.value = !!e();
|
|
151
|
+
return s(), et(s, n), t;
|
|
152
152
|
}
|
|
153
|
-
const ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {},
|
|
154
|
-
ne[
|
|
155
|
-
const
|
|
153
|
+
const ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, le = "__vueuse_ssr_handlers__";
|
|
154
|
+
ne[le] = ne[le] || {};
|
|
155
|
+
const re = [
|
|
156
156
|
[
|
|
157
157
|
"requestFullscreen",
|
|
158
158
|
"exitFullscreen",
|
|
@@ -195,50 +195,50 @@ const le = [
|
|
|
195
195
|
]
|
|
196
196
|
];
|
|
197
197
|
function at(e, n = {}) {
|
|
198
|
-
const { document: t = nt, autoExit:
|
|
199
|
-
let f =
|
|
200
|
-
const
|
|
198
|
+
const { document: t = nt, autoExit: s = !1 } = n, r = t == null ? void 0 : t.querySelector("html"), i = y(!1);
|
|
199
|
+
let f = re[0];
|
|
200
|
+
const o = rt(() => {
|
|
201
201
|
if (t) {
|
|
202
|
-
for (const h of
|
|
202
|
+
for (const h of re)
|
|
203
203
|
if (h[1] in t)
|
|
204
204
|
return f = h, !0;
|
|
205
205
|
} else
|
|
206
206
|
return !1;
|
|
207
207
|
return !1;
|
|
208
|
-
}), [g, S, a, ,
|
|
208
|
+
}), [g, S, a, , p] = f;
|
|
209
209
|
async function v() {
|
|
210
|
-
|
|
210
|
+
o.value && (t != null && t[a] && await t[S](), i.value = !1);
|
|
211
211
|
}
|
|
212
212
|
async function d() {
|
|
213
|
-
if (!
|
|
213
|
+
if (!o.value)
|
|
214
214
|
return;
|
|
215
215
|
await v();
|
|
216
|
-
const h = ve(
|
|
216
|
+
const h = ve(r);
|
|
217
217
|
h && (await h[g](), i.value = !0);
|
|
218
218
|
}
|
|
219
|
-
async function
|
|
219
|
+
async function u() {
|
|
220
220
|
i.value ? await v() : await d();
|
|
221
221
|
}
|
|
222
|
-
return t &&
|
|
222
|
+
return t && lt(t, p, () => {
|
|
223
223
|
i.value = !!(t != null && t[a]);
|
|
224
|
-
}, !1),
|
|
225
|
-
isSupported:
|
|
224
|
+
}, !1), s && de(v), {
|
|
225
|
+
isSupported: o,
|
|
226
226
|
isFullscreen: i,
|
|
227
227
|
enter: d,
|
|
228
228
|
exit: v,
|
|
229
|
-
toggle:
|
|
229
|
+
toggle: u
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
232
|
var ae;
|
|
233
233
|
(function(e) {
|
|
234
234
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
235
235
|
})(ae || (ae = {}));
|
|
236
|
-
var
|
|
236
|
+
var ot = Object.defineProperty, oe = Object.getOwnPropertySymbols, ut = Object.prototype.hasOwnProperty, st = Object.prototype.propertyIsEnumerable, ue = (e, n, t) => n in e ? ot(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, it = (e, n) => {
|
|
237
237
|
for (var t in n || (n = {}))
|
|
238
|
-
|
|
239
|
-
if (
|
|
240
|
-
for (var t of
|
|
241
|
-
|
|
238
|
+
ut.call(n, t) && ue(e, t, n[t]);
|
|
239
|
+
if (oe)
|
|
240
|
+
for (var t of oe(n))
|
|
241
|
+
st.call(n, t) && ue(e, t, n[t]);
|
|
242
242
|
return e;
|
|
243
243
|
};
|
|
244
244
|
const ft = {
|
|
@@ -288,51 +288,52 @@ const ct = { class: "das-split-panel-second" }, dt = {
|
|
|
288
288
|
},
|
|
289
289
|
emits: ["onLeft", "onRight", "onDefault", "onMouseDown", "onMouseMove", "onMouseUp"],
|
|
290
290
|
setup(e, { expose: n, emit: t }) {
|
|
291
|
-
const { isFullscreen:
|
|
292
|
-
var
|
|
293
|
-
return
|
|
291
|
+
const { isFullscreen: s } = at(), r = e, i = t, f = y(null), o = y(null), g = x(() => {
|
|
292
|
+
var l;
|
|
293
|
+
return console.log("分割线宽度"), console.dir(o == null ? void 0 : o.value), o != null && o.value && Number((l = o == null ? void 0 : o.value) == null ? void 0 : l.offsetWidth) - 2 || 1;
|
|
294
294
|
});
|
|
295
295
|
x(() => g.value + "px");
|
|
296
|
-
const S = y(null), a = y(),
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
(
|
|
300
|
-
|
|
296
|
+
const S = y(null), a = y(), p = y(), v = y(), d = y(0), u = y(0), h = y(!0), M = x(() => u.value + "px"), T = x(() => ({ width: M.value })), D = x(() => ({ left: M.value })), F = y(!1), O = y(!1);
|
|
297
|
+
$(
|
|
298
|
+
u,
|
|
299
|
+
(l, m) => {
|
|
300
|
+
l === 0 ? F.value = !0 : F.value = !1, l === (a == null ? void 0 : a.value) ? O.value = !0 : O.value = !1;
|
|
301
301
|
},
|
|
302
302
|
{ immediate: !0 }
|
|
303
|
-
),
|
|
304
|
-
B();
|
|
303
|
+
), $(s, (l) => {
|
|
304
|
+
console.log("isFullscreen", l), B();
|
|
305
305
|
});
|
|
306
306
|
const I = () => {
|
|
307
|
-
|
|
307
|
+
u.value > d.value ? (u.value = d.value, i("onDefault")) : u.value <= d.value && u.value > 0 && (u.value = 0, i("onLeft"));
|
|
308
308
|
}, c = () => {
|
|
309
|
-
|
|
309
|
+
u.value < d.value ? (u.value = d.value, i("onDefault")) : u.value >= d.value && u.value < a.value && (u.value = a.value, i("onRight"));
|
|
310
310
|
}, b = y({
|
|
311
311
|
mouseFlag: !1,
|
|
312
312
|
startX: 0,
|
|
313
313
|
startWidth: 0
|
|
314
|
-
}),
|
|
315
|
-
|
|
316
|
-
}, N = (
|
|
317
|
-
if (
|
|
318
|
-
let k =
|
|
319
|
-
_ <
|
|
314
|
+
}), E = (l) => {
|
|
315
|
+
r.canDrag && (b.value.mouseFlag = !0, b.value.startX = l.clientX, b.value.startWidth = u.value, document.onmousemove = N, document.onmouseup = pe, i("onMouseDown"));
|
|
316
|
+
}, N = (l) => {
|
|
317
|
+
if (l.preventDefault(), !b.value.mouseFlag) return;
|
|
318
|
+
let k = l.clientX - b.value.startX, _ = b.value.startWidth + k;
|
|
319
|
+
_ < p.value ? u.value = p.value : _ > v.value ? u.value = v.value : _ > p.value && _ < v.value && (u.value = _), i("onMouseMove");
|
|
320
320
|
}, pe = () => {
|
|
321
321
|
b.value.mouseFlag = !1, document.onmousemove = null, document.onmouseup = null, i("onMouseUp");
|
|
322
|
-
}, C = (
|
|
322
|
+
}, C = (l, m) => {
|
|
323
323
|
let k = 0;
|
|
324
|
-
return typeof
|
|
324
|
+
return typeof m == "number" && m <= 1 ? k = l * m : typeof m == "number" ? k = m : k = Number(m), k;
|
|
325
325
|
}, H = () => {
|
|
326
|
-
let
|
|
327
|
-
|
|
326
|
+
let l = 0;
|
|
327
|
+
r.defaultSplit.first !== void 0 ? (l = C(a.value, r.defaultSplit.first), d.value = l, u.value = l) : r.defaultSplit.second !== void 0 && (typeof r.defaultSplit.second == "number" && r.defaultSplit.second <= 1 ? l = C(a.value, 1 - r.defaultSplit.second) : l = a.value - C(a.value, r.defaultSplit.second), d.value = l, u.value = l), r.defaultClose && r.defaultClose == "first" ? u.value = 0 : r.defaultClose && r.defaultClose == "second" && (u.value = a.value);
|
|
328
328
|
}, me = () => {
|
|
329
329
|
H();
|
|
330
330
|
};
|
|
331
331
|
let K = y(!0);
|
|
332
332
|
const B = () => {
|
|
333
|
-
var
|
|
334
|
-
|
|
335
|
-
|
|
333
|
+
var m;
|
|
334
|
+
console.log("onresize");
|
|
335
|
+
let l = !1;
|
|
336
|
+
if (O.value && (l = !0), !!(f != null && f.value) && (a.value = Number(((m = f == null ? void 0 : f.value) == null ? void 0 : m.offsetWidth) - (g == null ? void 0 : g.value)) || 0, p.value = C(a.value, r.firstMin), v.value = a.value - C(a.value, r.secondMin), console.log(a.value, p.value, v.value), l && (u.value = a.value), h.value === !0)) {
|
|
336
337
|
if (H(), K.value) {
|
|
337
338
|
K.value = !1;
|
|
338
339
|
return;
|
|
@@ -340,74 +341,74 @@ const ct = { class: "das-split-panel-second" }, dt = {
|
|
|
340
341
|
h.value = !1;
|
|
341
342
|
}
|
|
342
343
|
};
|
|
343
|
-
return
|
|
344
|
-
var
|
|
345
|
-
h.value = !0, S.value = new ResizeObserver(Ke(B, 30)), (
|
|
344
|
+
return se(() => {
|
|
345
|
+
var l;
|
|
346
|
+
h.value = !0, S.value = new ResizeObserver(Ke(B, 30)), (l = S.value) == null || l.observe(f == null ? void 0 : f.value), B();
|
|
346
347
|
}), n({
|
|
347
348
|
toLeft: I,
|
|
348
349
|
toRight: c,
|
|
349
350
|
reset: me
|
|
350
|
-
}), (
|
|
351
|
+
}), (l, m) => (A(), z(
|
|
351
352
|
"div",
|
|
352
353
|
{
|
|
353
354
|
class: "das-ui-split-panel",
|
|
354
355
|
ref_key: "$splitPanel",
|
|
355
356
|
ref: f,
|
|
356
|
-
style:
|
|
357
|
+
style: L(l.boxStyle)
|
|
357
358
|
},
|
|
358
359
|
[
|
|
359
|
-
|
|
360
|
+
w(
|
|
360
361
|
"div",
|
|
361
362
|
{
|
|
362
363
|
class: "das-split-panel-first",
|
|
363
|
-
style:
|
|
364
|
+
style: L(T.value)
|
|
364
365
|
},
|
|
365
366
|
[
|
|
366
|
-
R(
|
|
367
|
+
R(l.$slots, "firstSlot", {}, void 0, !0)
|
|
367
368
|
],
|
|
368
369
|
4
|
|
369
370
|
/* STYLE */
|
|
370
371
|
),
|
|
371
|
-
|
|
372
|
+
w(
|
|
372
373
|
"div",
|
|
373
374
|
{
|
|
374
375
|
class: "das-split-panel-mid",
|
|
375
376
|
ref_key: "$splitLine",
|
|
376
|
-
ref:
|
|
377
|
-
style:
|
|
377
|
+
ref: o,
|
|
378
|
+
style: L(D.value)
|
|
378
379
|
},
|
|
379
380
|
[
|
|
380
|
-
|
|
381
|
+
l.canFold ? (A(), z("span", {
|
|
381
382
|
key: 0,
|
|
382
383
|
onClick: I
|
|
383
384
|
}, [
|
|
384
|
-
R(
|
|
385
|
-
|
|
385
|
+
R(l.$slots, "leftBtn", {}, () => [
|
|
386
|
+
w(
|
|
386
387
|
"span",
|
|
387
388
|
{
|
|
388
389
|
class: Q(["das-split-panel-btn left", [O.value ? "isBase" : ""]])
|
|
389
390
|
},
|
|
390
391
|
[
|
|
391
|
-
J(
|
|
392
|
+
J(q(we), { size: "medium" })
|
|
392
393
|
],
|
|
393
394
|
2
|
|
394
395
|
/* CLASS */
|
|
395
396
|
)
|
|
396
397
|
], !0)
|
|
397
398
|
])) : P("v-if", !0),
|
|
398
|
-
|
|
399
|
+
w(
|
|
399
400
|
"div",
|
|
400
401
|
{
|
|
401
|
-
class: Q(["das-split-panel-line", { hide: F.value || O.value, canDrag:
|
|
402
|
-
onDragstart:
|
|
402
|
+
class: Q(["das-split-panel-line", { hide: F.value || O.value, canDrag: r.canDrag }]),
|
|
403
|
+
onDragstart: m[0] || (m[0] = X(() => {
|
|
403
404
|
}, ["stop", "prevent"])),
|
|
404
|
-
onMousedown: X(
|
|
405
|
-
onClick:
|
|
405
|
+
onMousedown: X(E, ["prevent"]),
|
|
406
|
+
onClick: m[1] || (m[1] = X(() => {
|
|
406
407
|
}, ["stop", "prevent"]))
|
|
407
408
|
},
|
|
408
409
|
[
|
|
409
410
|
P(' <slot name="splitLine"> '),
|
|
410
|
-
|
|
411
|
+
m[2] || (m[2] = w(
|
|
411
412
|
"div",
|
|
412
413
|
{ class: "das-split-panel-divider" },
|
|
413
414
|
null,
|
|
@@ -419,18 +420,18 @@ const ct = { class: "das-split-panel-second" }, dt = {
|
|
|
419
420
|
34
|
|
420
421
|
/* CLASS, NEED_HYDRATION */
|
|
421
422
|
),
|
|
422
|
-
|
|
423
|
+
l.canFold ? (A(), z("span", {
|
|
423
424
|
key: 1,
|
|
424
425
|
onClick: c
|
|
425
426
|
}, [
|
|
426
|
-
R(
|
|
427
|
-
|
|
427
|
+
R(l.$slots, "rightBtn", {}, () => [
|
|
428
|
+
w(
|
|
428
429
|
"span",
|
|
429
430
|
{
|
|
430
431
|
class: Q(["das-split-panel-btn right", [F.value ? "isBase" : ""]])
|
|
431
432
|
},
|
|
432
433
|
[
|
|
433
|
-
J(
|
|
434
|
+
J(q(Ee), { size: "medium" })
|
|
434
435
|
],
|
|
435
436
|
2
|
|
436
437
|
/* CLASS */
|
|
@@ -441,8 +442,8 @@ const ct = { class: "das-split-panel-second" }, dt = {
|
|
|
441
442
|
4
|
|
442
443
|
/* STYLE */
|
|
443
444
|
),
|
|
444
|
-
|
|
445
|
-
R(
|
|
445
|
+
w("div", ct, [
|
|
446
|
+
R(l.$slots, "secondSlot", {}, void 0, !0)
|
|
446
447
|
])
|
|
447
448
|
],
|
|
448
449
|
4
|
|
@@ -451,8 +452,8 @@ const ct = { class: "das-split-panel-second" }, dt = {
|
|
|
451
452
|
}
|
|
452
453
|
}), pt = (e, n) => {
|
|
453
454
|
const t = e.__vccOpts || e;
|
|
454
|
-
for (const [
|
|
455
|
-
t[
|
|
455
|
+
for (const [s, r] of n)
|
|
456
|
+
t[s] = r;
|
|
456
457
|
return t;
|
|
457
458
|
}, mt = /* @__PURE__ */ pt(vt, [["__scopeId", "data-v-ba259a73"]]), gt = {
|
|
458
459
|
"--das-ui-split-panel-color-primary": "#5582F3",
|
|
@@ -463,9 +464,9 @@ const ct = { class: "das-split-panel-second" }, dt = {
|
|
|
463
464
|
// 按钮icon色
|
|
464
465
|
};
|
|
465
466
|
Te(gt);
|
|
466
|
-
const
|
|
467
|
+
const Et = Oe(mt), wt = () => y(null), Tt = { name: "splitPanel 分割面板" };
|
|
467
468
|
export {
|
|
468
|
-
|
|
469
|
-
|
|
469
|
+
Et as DasSplitPanel,
|
|
470
|
+
wt as DasSplitPanelRef,
|
|
470
471
|
Tt as default
|
|
471
472
|
};
|
|
Binary file
|