@das-fed/ui 7.1.0-dev.7 → 7.1.0-dev.9
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/esm-map.json +1 -3
- package/package.json +5 -5
- package/packages/business-components/ai-panel/{index-DMJXZM7n.js → index-8yffh0Id.js} +1056 -1067
- package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-MqhMkLo9.js → index-IzGl26KU.js} +9 -9
- package/packages/business-components/ai-panel/index-IzGl26KU.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-_q72oKSF.js → index-OwRrV6K8.js} +62 -63
- package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.js +17364 -17450
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.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/index.d.ts +0 -1
- package/packages/business-components/index.js +0 -1
- 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 +213 -215
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +1096 -1104
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +240 -243
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +64 -65
- 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/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/dialog/index.js +1 -3
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +75 -77
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +24 -25
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +397 -398
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +45 -47
- 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 +7 -14
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +143 -147
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +293 -297
- 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 +248 -251
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +415 -421
- 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 +4583 -4613
- 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 +5 -9
- 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 +33 -33
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +128 -129
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +178 -179
- 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 +1093 -1117
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-DMJXZM7n.js.gz +0 -0
- package/packages/business-components/ai-panel/index-MqhMkLo9.js.gz +0 -0
- package/packages/business-components/ai-panel/index-_q72oKSF.js.gz +0 -0
- package/packages/business-components/update-confirm-dialog/i18n/index.d.ts +0 -23
- package/packages/business-components/update-confirm-dialog/index.d.ts +0 -61
- package/packages/business-components/update-confirm-dialog/index.js +0 -105
- package/packages/business-components/update-confirm-dialog/index.js.gz +0 -0
- package/packages/business-components/update-confirm-dialog/src/App.vue.d.ts +0 -11
- package/packages/business-components/update-confirm-dialog/src/type.d.ts +0 -4
|
@@ -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 oe, nextTick as Se, unref as $, ref as y, watch as q, defineComponent as he, computed as x, createElementBlock as z, openBlock as L, normalizeStyle as A, createElementVNode as E, renderSlot as R, createCommentVNode as P, normalizeClass as Q, createVNode as J, withModifiers as X } from "vue";
|
|
3
3
|
import { withInstall as Oe } from "@das-fed/utils/with-install/index";
|
|
4
|
-
import { DasIconShuyoufanye as
|
|
5
|
-
import { DasIconShuzuofanye as
|
|
4
|
+
import { DasIconShuyoufanye as we } from "@das-fed/ui/packages/icons/shuyoufanye/index";
|
|
5
|
+
import { DasIconShuzuofanye as Ee } 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 V(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 o = !0;
|
|
29
29
|
} catch {
|
|
30
30
|
}
|
|
31
|
-
var
|
|
32
|
-
return
|
|
31
|
+
var l = je.call(e);
|
|
32
|
+
return o && (n ? e[j] = t : delete e[j]), l;
|
|
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 Le(e) {
|
|
43
43
|
return e != null && typeof e == "object";
|
|
44
44
|
}
|
|
45
|
-
var
|
|
45
|
+
var Ae = "[object Symbol]";
|
|
46
46
|
function Qe(e) {
|
|
47
|
-
return typeof e == "symbol" ||
|
|
47
|
+
return typeof e == "symbol" || Le(e) && ze(e) == Ae;
|
|
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, $e = /^0o[0-7]+$/i, qe = 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 (V(e)) {
|
|
56
56
|
var n = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
57
|
-
e =
|
|
57
|
+
e = V(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 || $e.test(e) ? qe(e.slice(2), t ? 2 : 8) : Xe.test(e) ? Z : +e;
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var Ve = "Expected a function", Ge = Math.max, He = Math.min;
|
|
66
66
|
function Ke(e, n, t) {
|
|
67
|
-
var
|
|
67
|
+
var o, l, i, f, u, g, S = 0, a = !1, m = !1, v = !0;
|
|
68
68
|
if (typeof e != "function")
|
|
69
|
-
throw new TypeError(
|
|
70
|
-
n = ee(n) || 0,
|
|
69
|
+
throw new TypeError(Ve);
|
|
70
|
+
n = ee(n) || 0, V(t) && (a = !!t.leading, m = "maxWait" in t, i = m ? Ge(ee(t.maxWait) || 0, n) : i, v = "trailing" in t ? !!t.trailing : v);
|
|
71
71
|
function d(c) {
|
|
72
|
-
var b =
|
|
73
|
-
return
|
|
72
|
+
var b = o, w = l;
|
|
73
|
+
return o = l = void 0, S = c, f = e.apply(w, b), f;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return S = c,
|
|
75
|
+
function s(c) {
|
|
76
|
+
return S = c, u = 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, w = c - S, N = n - b;
|
|
80
|
+
return m ? He(N, i - w) : 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, w = c - S;
|
|
84
|
+
return g === void 0 || b >= n || b < 0 || m && w >= i;
|
|
85
85
|
}
|
|
86
86
|
function T() {
|
|
87
87
|
var c = U();
|
|
88
88
|
if (M(c))
|
|
89
89
|
return D(c);
|
|
90
|
-
|
|
90
|
+
u = setTimeout(T, h(c));
|
|
91
91
|
}
|
|
92
92
|
function D(c) {
|
|
93
|
-
return
|
|
93
|
+
return u = void 0, v && o ? d(c) : (o = l = void 0, f);
|
|
94
94
|
}
|
|
95
95
|
function F() {
|
|
96
|
-
|
|
96
|
+
u !== void 0 && clearTimeout(u), S = 0, o = g = l = u = void 0;
|
|
97
97
|
}
|
|
98
98
|
function O() {
|
|
99
|
-
return
|
|
99
|
+
return u === 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 (o = arguments, l = this, g = c, b) {
|
|
104
|
+
if (u === void 0)
|
|
105
|
+
return s(g);
|
|
106
|
+
if (m)
|
|
107
|
+
return clearTimeout(u), u = setTimeout(T, n), d(g);
|
|
108
108
|
}
|
|
109
|
-
return
|
|
109
|
+
return u === void 0 && (u = 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 G = typeof window < "u", Je = (e) => typeof e == "string", Ye = () => {
|
|
115
115
|
};
|
|
116
|
-
|
|
116
|
+
G && ((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() : $(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() ? oe(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 = G ? window : void 0, nt = G ? window.document : void 0;
|
|
135
|
+
function rt(...e) {
|
|
136
|
+
let n, t, o, l;
|
|
137
|
+
if (Je(e[0]) || Array.isArray(e[0]) ? ([t, o, l] = e, n = tt) : [n, t, o, l] = e, !n)
|
|
138
138
|
return Ye;
|
|
139
|
-
Array.isArray(t) || (t = [t]), Array.isArray(
|
|
139
|
+
Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
|
|
140
140
|
const i = [], f = () => {
|
|
141
141
|
i.forEach((a) => a()), i.length = 0;
|
|
142
|
-
},
|
|
143
|
-
f(), a && i.push(...t.flatMap((v) =>
|
|
142
|
+
}, u = (a, m, v, d) => (a.addEventListener(m, v, d), () => a.removeEventListener(m, v, d)), g = q(() => [ve(n), ce(l)], ([a, m]) => {
|
|
143
|
+
f(), a && i.push(...t.flatMap((v) => o.map((d) => u(a, v, d, m))));
|
|
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 lt(e, n = !1) {
|
|
150
|
+
const t = y(), o = () => t.value = !!e();
|
|
151
|
+
return o(), et(o, 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 : {}, re = "__vueuse_ssr_handlers__";
|
|
154
|
+
ne[re] = ne[re] || {};
|
|
155
|
+
const le = [
|
|
156
156
|
[
|
|
157
157
|
"requestFullscreen",
|
|
158
158
|
"exitFullscreen",
|
|
@@ -195,50 +195,50 @@ const re = [
|
|
|
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: o = !1 } = n, l = t == null ? void 0 : t.querySelector("html"), i = y(!1);
|
|
199
|
+
let f = le[0];
|
|
200
|
+
const u = lt(() => {
|
|
201
201
|
if (t) {
|
|
202
|
-
for (const h of
|
|
202
|
+
for (const h of le)
|
|
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, , m] = f;
|
|
209
209
|
async function v() {
|
|
210
|
-
|
|
210
|
+
u.value && (t != null && t[a] && await t[S](), i.value = !1);
|
|
211
211
|
}
|
|
212
212
|
async function d() {
|
|
213
|
-
if (!
|
|
213
|
+
if (!u.value)
|
|
214
214
|
return;
|
|
215
215
|
await v();
|
|
216
|
-
const h = ve(
|
|
216
|
+
const h = ve(l);
|
|
217
217
|
h && (await h[g](), i.value = !0);
|
|
218
218
|
}
|
|
219
|
-
async function
|
|
219
|
+
async function s() {
|
|
220
220
|
i.value ? await v() : await d();
|
|
221
221
|
}
|
|
222
|
-
return t &&
|
|
222
|
+
return t && rt(t, m, () => {
|
|
223
223
|
i.value = !!(t != null && t[a]);
|
|
224
|
-
}, !1),
|
|
225
|
-
isSupported:
|
|
224
|
+
}, !1), o && de(v), {
|
|
225
|
+
isSupported: u,
|
|
226
226
|
isFullscreen: i,
|
|
227
227
|
enter: d,
|
|
228
228
|
exit: v,
|
|
229
|
-
toggle:
|
|
229
|
+
toggle: s
|
|
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 ut = Object.defineProperty, ue = Object.getOwnPropertySymbols, st = Object.prototype.hasOwnProperty, ot = Object.prototype.propertyIsEnumerable, se = (e, n, t) => n in e ? ut(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, it = (e, n) => {
|
|
237
237
|
for (var t in n || (n = {}))
|
|
238
|
-
|
|
239
|
-
if (
|
|
240
|
-
for (var t of
|
|
241
|
-
|
|
238
|
+
st.call(n, t) && se(e, t, n[t]);
|
|
239
|
+
if (ue)
|
|
240
|
+
for (var t of ue(n))
|
|
241
|
+
ot.call(n, t) && se(e, t, n[t]);
|
|
242
242
|
return e;
|
|
243
243
|
};
|
|
244
244
|
const ft = {
|
|
@@ -288,52 +288,51 @@ 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: o } = at(), l = e, i = t, f = y(null), u = y(null), g = x(() => {
|
|
292
|
+
var r;
|
|
293
|
+
return u != null && u.value && Number((r = u == null ? void 0 : u.value) == null ? void 0 : r.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(), m = y(), v = y(), d = y(0), s = y(0), h = y(!0), M = x(() => s.value + "px"), T = x(() => ({ width: M.value })), D = x(() => ({ left: M.value })), F = y(!1), O = y(!1);
|
|
297
|
+
q(
|
|
298
|
+
s,
|
|
299
|
+
(r, p) => {
|
|
300
|
+
r === 0 ? F.value = !0 : F.value = !1, r === (a == null ? void 0 : a.value) ? O.value = !0 : O.value = !1;
|
|
301
301
|
},
|
|
302
302
|
{ immediate: !0 }
|
|
303
|
-
),
|
|
304
|
-
|
|
303
|
+
), q(o, (r) => {
|
|
304
|
+
B();
|
|
305
305
|
});
|
|
306
306
|
const I = () => {
|
|
307
|
-
|
|
307
|
+
s.value > d.value ? (s.value = d.value, i("onDefault")) : s.value <= d.value && s.value > 0 && (s.value = 0, i("onLeft"));
|
|
308
308
|
}, c = () => {
|
|
309
|
-
|
|
309
|
+
s.value < d.value ? (s.value = d.value, i("onDefault")) : s.value >= d.value && s.value < a.value && (s.value = a.value, i("onRight"));
|
|
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
|
+
}), w = (r) => {
|
|
315
|
+
l.canDrag && (b.value.mouseFlag = !0, b.value.startX = r.clientX, b.value.startWidth = s.value, document.onmousemove = N, document.onmouseup = pe, i("onMouseDown"));
|
|
316
|
+
}, N = (r) => {
|
|
317
|
+
if (r.preventDefault(), !b.value.mouseFlag) return;
|
|
318
|
+
let k = r.clientX - b.value.startX, _ = b.value.startWidth + k;
|
|
319
|
+
_ < m.value ? s.value = m.value : _ > v.value ? s.value = v.value : _ > m.value && _ < v.value && (s.value = _), i("onMouseMove");
|
|
320
320
|
}, pe = () => {
|
|
321
321
|
b.value.mouseFlag = !1, document.onmousemove = null, document.onmouseup = null, i("onMouseUp");
|
|
322
|
-
}, C = (
|
|
322
|
+
}, C = (r, p) => {
|
|
323
323
|
let k = 0;
|
|
324
|
-
return typeof
|
|
324
|
+
return typeof p == "number" && p <= 1 ? k = r * p : typeof p == "number" ? k = p : k = Number(p), k;
|
|
325
325
|
}, H = () => {
|
|
326
|
-
let
|
|
327
|
-
|
|
326
|
+
let r = 0;
|
|
327
|
+
l.defaultSplit.first !== void 0 ? (r = C(a.value, l.defaultSplit.first), d.value = r, s.value = r) : l.defaultSplit.second !== void 0 && (typeof l.defaultSplit.second == "number" && l.defaultSplit.second <= 1 ? r = C(a.value, 1 - l.defaultSplit.second) : r = a.value - C(a.value, l.defaultSplit.second), d.value = r, s.value = r), l.defaultClose && l.defaultClose == "first" ? s.value = 0 : l.defaultClose && l.defaultClose == "second" && (s.value = a.value);
|
|
328
328
|
}, me = () => {
|
|
329
329
|
H();
|
|
330
330
|
};
|
|
331
331
|
let K = y(!0);
|
|
332
332
|
const B = () => {
|
|
333
|
-
var
|
|
334
|
-
|
|
335
|
-
|
|
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)) {
|
|
333
|
+
var p;
|
|
334
|
+
let r = !1;
|
|
335
|
+
if (O.value && (r = !0), !!(f != null && f.value) && (a.value = Number(((p = f == null ? void 0 : f.value) == null ? void 0 : p.offsetWidth) - (g == null ? void 0 : g.value)) || 0, m.value = C(a.value, l.firstMin), v.value = a.value - C(a.value, l.secondMin), r && (s.value = a.value), h.value === !0)) {
|
|
337
336
|
if (H(), K.value) {
|
|
338
337
|
K.value = !1;
|
|
339
338
|
return;
|
|
@@ -341,74 +340,74 @@ const ct = { class: "das-split-panel-second" }, dt = {
|
|
|
341
340
|
h.value = !1;
|
|
342
341
|
}
|
|
343
342
|
};
|
|
344
|
-
return
|
|
345
|
-
var
|
|
346
|
-
h.value = !0, S.value = new ResizeObserver(Ke(B, 30)), (
|
|
343
|
+
return oe(() => {
|
|
344
|
+
var r;
|
|
345
|
+
h.value = !0, S.value = new ResizeObserver(Ke(B, 30)), (r = S.value) == null || r.observe(f == null ? void 0 : f.value), B();
|
|
347
346
|
}), n({
|
|
348
347
|
toLeft: I,
|
|
349
348
|
toRight: c,
|
|
350
349
|
reset: me
|
|
351
|
-
}), (
|
|
350
|
+
}), (r, p) => (L(), z(
|
|
352
351
|
"div",
|
|
353
352
|
{
|
|
354
353
|
class: "das-ui-split-panel",
|
|
355
354
|
ref_key: "$splitPanel",
|
|
356
355
|
ref: f,
|
|
357
|
-
style:
|
|
356
|
+
style: A(r.boxStyle)
|
|
358
357
|
},
|
|
359
358
|
[
|
|
360
|
-
|
|
359
|
+
E(
|
|
361
360
|
"div",
|
|
362
361
|
{
|
|
363
362
|
class: "das-split-panel-first",
|
|
364
|
-
style:
|
|
363
|
+
style: A(T.value)
|
|
365
364
|
},
|
|
366
365
|
[
|
|
367
|
-
R(
|
|
366
|
+
R(r.$slots, "firstSlot", {}, void 0, !0)
|
|
368
367
|
],
|
|
369
368
|
4
|
|
370
369
|
/* STYLE */
|
|
371
370
|
),
|
|
372
|
-
|
|
371
|
+
E(
|
|
373
372
|
"div",
|
|
374
373
|
{
|
|
375
374
|
class: "das-split-panel-mid",
|
|
376
375
|
ref_key: "$splitLine",
|
|
377
|
-
ref:
|
|
378
|
-
style:
|
|
376
|
+
ref: u,
|
|
377
|
+
style: A(D.value)
|
|
379
378
|
},
|
|
380
379
|
[
|
|
381
|
-
|
|
380
|
+
r.canFold ? (L(), z("span", {
|
|
382
381
|
key: 0,
|
|
383
382
|
onClick: I
|
|
384
383
|
}, [
|
|
385
|
-
R(
|
|
386
|
-
|
|
384
|
+
R(r.$slots, "leftBtn", {}, () => [
|
|
385
|
+
E(
|
|
387
386
|
"span",
|
|
388
387
|
{
|
|
389
388
|
class: Q(["das-split-panel-btn left", [O.value ? "isBase" : ""]])
|
|
390
389
|
},
|
|
391
390
|
[
|
|
392
|
-
J(
|
|
391
|
+
J($(Ee), { size: "medium" })
|
|
393
392
|
],
|
|
394
393
|
2
|
|
395
394
|
/* CLASS */
|
|
396
395
|
)
|
|
397
396
|
], !0)
|
|
398
397
|
])) : P("v-if", !0),
|
|
399
|
-
|
|
398
|
+
E(
|
|
400
399
|
"div",
|
|
401
400
|
{
|
|
402
|
-
class: Q(["das-split-panel-line", { hide: F.value || O.value, canDrag:
|
|
403
|
-
onDragstart:
|
|
401
|
+
class: Q(["das-split-panel-line", { hide: F.value || O.value, canDrag: l.canDrag }]),
|
|
402
|
+
onDragstart: p[0] || (p[0] = X(() => {
|
|
404
403
|
}, ["stop", "prevent"])),
|
|
405
|
-
onMousedown: X(
|
|
406
|
-
onClick:
|
|
404
|
+
onMousedown: X(w, ["prevent"]),
|
|
405
|
+
onClick: p[1] || (p[1] = X(() => {
|
|
407
406
|
}, ["stop", "prevent"]))
|
|
408
407
|
},
|
|
409
408
|
[
|
|
410
409
|
P(' <slot name="splitLine"> '),
|
|
411
|
-
|
|
410
|
+
p[2] || (p[2] = E(
|
|
412
411
|
"div",
|
|
413
412
|
{ class: "das-split-panel-divider" },
|
|
414
413
|
null,
|
|
@@ -420,18 +419,18 @@ const ct = { class: "das-split-panel-second" }, dt = {
|
|
|
420
419
|
34
|
|
421
420
|
/* CLASS, NEED_HYDRATION */
|
|
422
421
|
),
|
|
423
|
-
|
|
422
|
+
r.canFold ? (L(), z("span", {
|
|
424
423
|
key: 1,
|
|
425
424
|
onClick: c
|
|
426
425
|
}, [
|
|
427
|
-
R(
|
|
428
|
-
|
|
426
|
+
R(r.$slots, "rightBtn", {}, () => [
|
|
427
|
+
E(
|
|
429
428
|
"span",
|
|
430
429
|
{
|
|
431
430
|
class: Q(["das-split-panel-btn right", [F.value ? "isBase" : ""]])
|
|
432
431
|
},
|
|
433
432
|
[
|
|
434
|
-
J(
|
|
433
|
+
J($(we), { size: "medium" })
|
|
435
434
|
],
|
|
436
435
|
2
|
|
437
436
|
/* CLASS */
|
|
@@ -442,8 +441,8 @@ const ct = { class: "das-split-panel-second" }, dt = {
|
|
|
442
441
|
4
|
|
443
442
|
/* STYLE */
|
|
444
443
|
),
|
|
445
|
-
|
|
446
|
-
R(
|
|
444
|
+
E("div", ct, [
|
|
445
|
+
R(r.$slots, "secondSlot", {}, void 0, !0)
|
|
447
446
|
])
|
|
448
447
|
],
|
|
449
448
|
4
|
|
@@ -452,8 +451,8 @@ const ct = { class: "das-split-panel-second" }, dt = {
|
|
|
452
451
|
}
|
|
453
452
|
}), pt = (e, n) => {
|
|
454
453
|
const t = e.__vccOpts || e;
|
|
455
|
-
for (const [
|
|
456
|
-
t[
|
|
454
|
+
for (const [o, l] of n)
|
|
455
|
+
t[o] = l;
|
|
457
456
|
return t;
|
|
458
457
|
}, mt = /* @__PURE__ */ pt(vt, [["__scopeId", "data-v-ba259a73"]]), gt = {
|
|
459
458
|
"--das-ui-split-panel-color-primary": "#5582F3",
|
|
@@ -464,9 +463,9 @@ const ct = { class: "das-split-panel-second" }, dt = {
|
|
|
464
463
|
// 按钮icon色
|
|
465
464
|
};
|
|
466
465
|
Te(gt);
|
|
467
|
-
const
|
|
466
|
+
const wt = Oe(mt), Et = () => y(null), Tt = { name: "splitPanel 分割面板" };
|
|
468
467
|
export {
|
|
469
|
-
|
|
470
|
-
|
|
468
|
+
wt as DasSplitPanel,
|
|
469
|
+
Et as DasSplitPanelRef,
|
|
471
470
|
Tt as default
|
|
472
471
|
};
|
|
Binary file
|