x-next 0.0.0-alpha.26 → 0.0.0-alpha.28
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/dist/components/trend-chart/themes.d.ts +152 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +604 -440
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
var Ue = Object.defineProperty;
|
2
2
|
var Ge = (e, t, l) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
3
|
-
var
|
4
|
-
import { defineComponent as
|
5
|
-
const
|
6
|
-
const t =
|
3
|
+
var D = (e, t, l) => Ge(e, typeof t != "symbol" ? t + "" : t, l);
|
4
|
+
import { defineComponent as E, computed as v, createVNode as r, h as k, reactive as le, getCurrentInstance as Ke, ref as z, watch as q, onMounted as R, onBeforeUnmount as Fe, readonly as Je, Teleport as Qe, Transition as U, createTextVNode as F, onUnmounted as ne, Comment as et, Fragment as H, render as V, isVNode as L, nextTick as Ne, mergeProps as me, resolveComponent as Y, openBlock as P, createBlock as W, withCtx as tt, withDirectives as lt, createElementVNode as nt, normalizeClass as he, normalizeStyle as at, createElementBlock as ee, renderSlot as Oe, createCommentVNode as ye, toDisplayString as rt, vShow as ot } from "vue";
|
5
|
+
const it = "X", st = "x", Ae = (e) => e ? st + "-" + e : e || "", S = (e) => it + e, A = (e) => {
|
6
|
+
const t = Ae(e);
|
7
7
|
return {
|
8
8
|
block: t,
|
9
9
|
element: (o) => `${t}--${o}`,
|
@@ -11,14 +11,14 @@ const st = "X", it = "x", je = (e) => e ? it + "-" + e : e || "", S = (e) => st
|
|
11
11
|
is: (o) => `${t}-is-${o}`
|
12
12
|
};
|
13
13
|
}, K = Object.prototype.toString;
|
14
|
-
function
|
14
|
+
function je(e) {
|
15
15
|
return K.call(e) === "[object Array]";
|
16
16
|
}
|
17
|
-
function
|
17
|
+
function Ve(e) {
|
18
18
|
return K.call(e) === "[object Object]";
|
19
19
|
}
|
20
|
-
const
|
21
|
-
function
|
20
|
+
const Xe = (e) => K.call(e) === "[object Promise]", ct = (e) => O(e) && e.constructor.name === "AsyncFunction", ut = (e) => Xe(e) || ct(e);
|
21
|
+
function Ie(e) {
|
22
22
|
return K.call(e) === "[object String]";
|
23
23
|
}
|
24
24
|
function dt(e) {
|
@@ -30,17 +30,17 @@ function O(e) {
|
|
30
30
|
function ae() {
|
31
31
|
return typeof window < "u";
|
32
32
|
}
|
33
|
-
const
|
33
|
+
const N = (e) => e, ft = (e) => !!(e && e.shapeFlag & 1), mt = (e, t) => !!(e && e.shapeFlag & 6), ht = (e, t) => !!(e && e.shapeFlag & 8), yt = (e, t) => !!(e && e.shapeFlag & 16), vt = (e, t) => !!(e && e.shapeFlag & 32), te = (e, t = !1) => {
|
34
34
|
var n, a;
|
35
35
|
const l = [];
|
36
36
|
for (const o of e ?? [])
|
37
|
-
ft(o) || mt(o) || t && ht(o, o.children) ? l.push(o) : yt(o, o.children) ? l.push(...te(o.children, t)) :
|
37
|
+
ft(o) || mt(o) || t && ht(o, o.children) ? l.push(o) : yt(o, o.children) ? l.push(...te(o.children, t)) : vt(o, o.children) ? l.push(...te((a = (n = o.children).default) == null ? void 0 : a.call(n), t)) : je(o) && l.push(...te(o, t));
|
38
38
|
return l;
|
39
|
-
},
|
39
|
+
}, X = (e, t) => Object.assign(t, {
|
40
40
|
install(l) {
|
41
41
|
l.component(e) || l.component(e, t);
|
42
42
|
}
|
43
|
-
}),
|
43
|
+
}), gt = {
|
44
44
|
disabled: Boolean,
|
45
45
|
block: Boolean,
|
46
46
|
loading: Boolean,
|
@@ -53,7 +53,7 @@ const B = (e) => e, ft = (e) => !!(e && e.shapeFlag & 1), mt = (e, t) => !!(e &&
|
|
53
53
|
default: 0
|
54
54
|
},
|
55
55
|
shape: {
|
56
|
-
type:
|
56
|
+
type: N(String),
|
57
57
|
default: void 0
|
58
58
|
},
|
59
59
|
link: {
|
@@ -61,11 +61,11 @@ const B = (e) => e, ft = (e) => !!(e && e.shapeFlag & 1), mt = (e, t) => !!(e &&
|
|
61
61
|
default: !1
|
62
62
|
},
|
63
63
|
type: {
|
64
|
-
type:
|
64
|
+
type: N(String),
|
65
65
|
default: void 0
|
66
66
|
},
|
67
67
|
status: {
|
68
|
-
type:
|
68
|
+
type: N(String),
|
69
69
|
default: void 0
|
70
70
|
},
|
71
71
|
plain: {
|
@@ -73,21 +73,21 @@ const B = (e) => e, ft = (e) => !!(e && e.shapeFlag & 1), mt = (e, t) => !!(e &&
|
|
73
73
|
default: !1
|
74
74
|
},
|
75
75
|
size: {
|
76
|
-
type:
|
76
|
+
type: N(String),
|
77
77
|
default: "medium"
|
78
78
|
},
|
79
79
|
border: {
|
80
80
|
type: Boolean,
|
81
81
|
default: !0
|
82
82
|
}
|
83
|
-
}, bt = (e) =>
|
83
|
+
}, bt = (e) => Ie(e) ? e.split("-").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join("") : "", Ct = (e, t = "px") => {
|
84
84
|
if (e === void 0) return "";
|
85
85
|
const l = typeof e == "number" ? `${e}` : e;
|
86
86
|
return ["px", "%", "vh", "vw", "calc"].some((a) => l.includes(a)) ? l : l + t;
|
87
87
|
};
|
88
|
-
function
|
89
|
-
return /* @__PURE__ */
|
90
|
-
name:
|
88
|
+
function I(e, t) {
|
89
|
+
return /* @__PURE__ */ E({
|
90
|
+
name: Ae(`Icon${bt(e)}`),
|
91
91
|
props: {
|
92
92
|
size: {
|
93
93
|
type: [Number, String],
|
@@ -111,10 +111,10 @@ function D(e, t) {
|
|
111
111
|
}
|
112
112
|
},
|
113
113
|
setup(l) {
|
114
|
-
const n = "x-icon", a =
|
115
|
-
const
|
116
|
-
return l.size && (
|
117
|
-
}), o =
|
114
|
+
const n = "x-icon", a = v(() => {
|
115
|
+
const c = {};
|
116
|
+
return l.size && (c.fontSize = Ct(l.size)), l.rotate && (c.transform = `rotate(${l.rotate}deg)`), l.color && (c.color = l.color), c;
|
117
|
+
}), o = v(() => [n, {
|
118
118
|
[`${n}-loading`]: l.spin
|
119
119
|
}]);
|
120
120
|
return () => r("div", {
|
@@ -124,7 +124,7 @@ function D(e, t) {
|
|
124
124
|
}
|
125
125
|
});
|
126
126
|
}
|
127
|
-
const xt =
|
127
|
+
const xt = I("InfoCircleFill", k(r("svg", {
|
128
128
|
viewBox: "0 0 50 50",
|
129
129
|
class: "x-icon-loading-svg"
|
130
130
|
}, [r("circle", {
|
@@ -134,9 +134,9 @@ const xt = D("InfoCircleFill", k(r("svg", {
|
|
134
134
|
class: "path",
|
135
135
|
fill: "none",
|
136
136
|
stroke: "currentColor"
|
137
|
-
}, null)]))), kt = /* @__PURE__ */
|
137
|
+
}, null)]))), kt = /* @__PURE__ */ E({
|
138
138
|
name: "Button",
|
139
|
-
props:
|
139
|
+
props: gt,
|
140
140
|
emits: ["click"],
|
141
141
|
// 显式导入插槽
|
142
142
|
$slots: ["prefix", "suffix"],
|
@@ -147,29 +147,29 @@ const xt = D("InfoCircleFill", k(r("svg", {
|
|
147
147
|
const n = le({
|
148
148
|
clicked: !1,
|
149
149
|
isDebounce: !1
|
150
|
-
}), a =
|
150
|
+
}), a = A("button"), o = v(() => [a.block, e.type && a.modifier(e.type), e.status && a.modifier(e.status), e.disabled && a.is("disabled"), e.block && a.modifier("block"), e.plain && a.is("plain"), e.shape && a.modifier(e.shape), e.link && a.modifier("is-link"), e.size && a.modifier(e.size), !e.border && a.modifier("is-hide-border"), i.value && a.modifier("is-loading")]), c = () => {
|
151
151
|
e.debounce > 0 && !n.isDebounce && (n.isDebounce = !0, setTimeout(() => {
|
152
152
|
n.isDebounce = !1;
|
153
153
|
}, e.debounce));
|
154
|
-
},
|
155
|
-
const m =
|
156
|
-
|
154
|
+
}, i = v(() => e.loading || n.clicked || n.isDebounce), d = Ke(), s = (u, f) => {
|
155
|
+
const m = u(f);
|
156
|
+
ut(m) && (n.clicked = !0, m.finally(() => {
|
157
157
|
n.clicked = !1;
|
158
158
|
}));
|
159
|
-
}, h = (
|
160
|
-
var m, C,
|
161
|
-
if (
|
162
|
-
|
163
|
-
const f = (
|
164
|
-
if (
|
165
|
-
f.forEach((y) =>
|
159
|
+
}, h = (u) => {
|
160
|
+
var m, C, g, B;
|
161
|
+
if (u.stopPropagation(), (C = (m = u.target).blur) == null || C.call(m), i.value) return;
|
162
|
+
c();
|
163
|
+
const f = (B = (g = d == null ? void 0 : d.vnode) == null ? void 0 : g.props) == null ? void 0 : B.onClick;
|
164
|
+
if (je(f))
|
165
|
+
f.forEach((y) => s(y, u));
|
166
166
|
else if (O(f)) {
|
167
|
-
|
167
|
+
s(f, u);
|
168
168
|
return;
|
169
169
|
}
|
170
170
|
};
|
171
171
|
return () => {
|
172
|
-
var
|
172
|
+
var u;
|
173
173
|
return r("button", {
|
174
174
|
class: o.value,
|
175
175
|
type: "button",
|
@@ -177,68 +177,68 @@ const xt = D("InfoCircleFill", k(r("svg", {
|
|
177
177
|
onClick: h
|
178
178
|
}, [r("span", {
|
179
179
|
style: {
|
180
|
-
display:
|
181
|
-
marginRight:
|
180
|
+
display: i.value ? "flex" : "none",
|
181
|
+
marginRight: i.value ? "4px" : "0px"
|
182
182
|
},
|
183
183
|
class: a.element("loading")
|
184
184
|
}, [r(xt, null, null)]), t.prefix && r("span", {
|
185
185
|
class: a.element("prefix")
|
186
186
|
}, [t.prefix()]), r("span", {
|
187
187
|
class: a.element("content")
|
188
|
-
}, [(
|
188
|
+
}, [(u = t.default) == null ? void 0 : u.call(t)]), t.suffix && r("span", {
|
189
189
|
class: a.element("suffix")
|
190
190
|
}, [t.suffix()])]);
|
191
191
|
};
|
192
192
|
}
|
193
|
-
}), G =
|
193
|
+
}), G = X(S("Button"), kt), wt = ["px", "%", "vh", "vw", "calc"], Se = (e, t = "px") => {
|
194
194
|
if (e === void 0) return "";
|
195
195
|
const l = String(e);
|
196
196
|
return wt.some((n) => l.includes(n)) ? l : l + t;
|
197
|
-
},
|
197
|
+
}, Bt = 1e3, Lt = 3e3, Nt = 1;
|
198
198
|
class Ot {
|
199
199
|
constructor() {
|
200
|
-
|
200
|
+
D(this, "popupStack", {
|
201
201
|
popup: /* @__PURE__ */ new Set(),
|
202
202
|
dialog: /* @__PURE__ */ new Set(),
|
203
203
|
message: /* @__PURE__ */ new Set()
|
204
204
|
});
|
205
|
-
|
206
|
-
|
205
|
+
D(this, "getNextZIndex", (t) => (t === "message" ? Array.from(this.popupStack.message).pop() || Lt : Array.from(this.popupStack.popup).pop() || Bt) + Nt);
|
206
|
+
D(this, "add", (t) => {
|
207
207
|
const l = this.getNextZIndex(t);
|
208
208
|
return this.popupStack[t].add(l), t === "dialog" && this.popupStack.popup.add(l), l;
|
209
209
|
});
|
210
|
-
|
210
|
+
D(this, "delete", (t, l) => {
|
211
211
|
this.popupStack[l].delete(t), l === "dialog" && this.popupStack.popup.delete(t);
|
212
212
|
});
|
213
|
-
|
213
|
+
D(this, "isLastDialog", (t) => this.popupStack.dialog.size > 1 ? t === Array.from(this.popupStack.dialog).pop() : !0);
|
214
214
|
}
|
215
215
|
}
|
216
|
-
const
|
216
|
+
const ve = new Ot();
|
217
217
|
function re(e, {
|
218
218
|
visible: t,
|
219
219
|
runOnMounted: l
|
220
220
|
} = {}) {
|
221
|
-
const n =
|
222
|
-
n.value =
|
221
|
+
const n = z(0), a = () => {
|
222
|
+
n.value = ve.add(e);
|
223
223
|
}, o = () => {
|
224
|
-
|
225
|
-
},
|
224
|
+
ve.delete(n.value, e);
|
225
|
+
}, c = () => e === "dialog" ? ve.isLastDialog(n.value) : !1;
|
226
226
|
return q(
|
227
227
|
() => t == null ? void 0 : t.value,
|
228
|
-
(
|
229
|
-
|
228
|
+
(i) => {
|
229
|
+
i ? a() : o();
|
230
230
|
},
|
231
231
|
{
|
232
232
|
immediate: !0
|
233
233
|
}
|
234
|
-
), l && (
|
234
|
+
), l && (R(a), Fe(o)), {
|
235
235
|
zIndex: Je(n),
|
236
236
|
open: a,
|
237
237
|
close: o,
|
238
|
-
isLastDialog:
|
238
|
+
isLastDialog: c
|
239
239
|
};
|
240
240
|
}
|
241
|
-
const
|
241
|
+
const De = (e) => e.replace(/^./, (t) => t.toLowerCase()).replace(/-(\w)/g, (t, l) => (l == null ? void 0 : l.toUpperCase()) ?? ""), We = () => {
|
242
242
|
}, St = (e, t) => {
|
243
243
|
if (ae)
|
244
244
|
return (t ?? document).querySelector(e) ?? void 0;
|
@@ -247,10 +247,10 @@ const pe = (e) => e.replace(/^./, (t) => t.toLowerCase()).replace(/-(\w)/g, (t,
|
|
247
247
|
return window.innerWidth - (document.documentElement.offsetWidth || document.body.offsetWidth);
|
248
248
|
const { borderLeftWidth: t, borderRightWidth: l } = window.getComputedStyle(e), n = Number(t.replace("px", "")) + Number(l.replace("px", ""));
|
249
249
|
return e.offsetWidth - (e.clientWidth + n);
|
250
|
-
}, Mt = (e) => e.tagName === "BODY" ? document.documentElement.scrollHeight > window.innerHeight : e.scrollHeight > e.offsetHeight,
|
250
|
+
}, Mt = (e) => e.tagName === "BODY" ? document.documentElement.scrollHeight > window.innerHeight : e.scrollHeight > e.offsetHeight, pt = (e, t) => {
|
251
251
|
var n;
|
252
252
|
if (!ae || !e || !t) return "";
|
253
|
-
let l =
|
253
|
+
let l = De(t);
|
254
254
|
l === "float" && (l = "cssFloat");
|
255
255
|
try {
|
256
256
|
const a = e.style[l];
|
@@ -260,50 +260,50 @@ const pe = (e) => e.replace(/^./, (t) => t.toLowerCase()).replace(/-(\w)/g, (t,
|
|
260
260
|
} catch {
|
261
261
|
return e.style[l];
|
262
262
|
}
|
263
|
-
},
|
263
|
+
}, Z = (e, t, l) => {
|
264
264
|
if (!(!e || !t))
|
265
|
-
if (
|
265
|
+
if (Ve(t))
|
266
266
|
Object.entries(t).forEach(
|
267
|
-
([n, a]) =>
|
267
|
+
([n, a]) => Z(e, n, a)
|
268
268
|
);
|
269
269
|
else {
|
270
|
-
const n =
|
270
|
+
const n = De(t);
|
271
271
|
e.style[n] = l;
|
272
272
|
}
|
273
273
|
}, ke = (e, t) => {
|
274
|
-
if (
|
274
|
+
if (Ie(e)) {
|
275
275
|
const l = e[0] === "#" ? `[id='${e.slice(1)}']` : e;
|
276
276
|
return St(l, t);
|
277
277
|
}
|
278
278
|
return e;
|
279
|
-
},
|
279
|
+
}, zt = ae ? (e, t, l, n = !1) => {
|
280
280
|
e.addEventListener(t, l, n);
|
281
|
-
} :
|
281
|
+
} : We, Et = ae ? (e, t, l, n = !1) => {
|
282
282
|
e.removeEventListener(t, l, n);
|
283
|
-
} :
|
283
|
+
} : We, Pt = (e, t) => {
|
284
284
|
let l = !1;
|
285
285
|
const n = {
|
286
286
|
overflow: "",
|
287
287
|
width: ""
|
288
|
-
}, a = (
|
288
|
+
}, a = (i) => i.tagName === "BODY", o = () => {
|
289
289
|
if (e.value) {
|
290
|
-
const
|
291
|
-
if (!l &&
|
292
|
-
const d = Tt(
|
293
|
-
if (d > 0 || Mt(
|
294
|
-
n.overflow =
|
295
|
-
let
|
296
|
-
a(
|
297
|
-
width: `calc(100% - ${Math.ceil(d -
|
290
|
+
const i = e.value;
|
291
|
+
if (!l && i.style.overflow !== "hidden") {
|
292
|
+
const d = Tt(i);
|
293
|
+
if (d > 0 || Mt(i)) {
|
294
|
+
n.overflow = i.style.overflow, n.width = i.style.width;
|
295
|
+
let s = 0;
|
296
|
+
a(i) && (s = i.getBoundingClientRect().left || 0), Z(i, {
|
297
|
+
width: `calc(100% - ${Math.ceil(d - s)}px)`,
|
298
298
|
overflow: "hidden"
|
299
299
|
}), l = !0;
|
300
300
|
}
|
301
301
|
}
|
302
302
|
}
|
303
|
-
},
|
303
|
+
}, c = () => {
|
304
304
|
if (e.value && l) {
|
305
|
-
const
|
306
|
-
|
305
|
+
const i = e.value;
|
306
|
+
Z(i, {
|
307
307
|
overflow: n.overflow,
|
308
308
|
width: n.width
|
309
309
|
}), l = !1;
|
@@ -311,16 +311,16 @@ const pe = (e) => e.replace(/^./, (t) => t.toLowerCase()).replace(/-(\w)/g, (t,
|
|
311
311
|
};
|
312
312
|
return q(
|
313
313
|
() => t == null ? void 0 : t.value,
|
314
|
-
(
|
315
|
-
e.value && !a(e.value) && (
|
314
|
+
(i) => {
|
315
|
+
e.value && !a(e.value) && (i && Z(i, {
|
316
316
|
position: "absolute"
|
317
|
-
}),
|
317
|
+
}), pt(e.value, "position") === "static" && Z(e.value, { position: "relative" }));
|
318
318
|
}
|
319
319
|
), {
|
320
320
|
setOverflowHidden: o,
|
321
|
-
resetOverflow:
|
321
|
+
resetOverflow: c
|
322
322
|
};
|
323
|
-
},
|
323
|
+
}, $t = {
|
324
324
|
ENTER: "Enter",
|
325
325
|
ESC: "Escape",
|
326
326
|
BACKSPACE: "Backspace",
|
@@ -330,9 +330,9 @@ const pe = (e) => e.replace(/^./, (t) => t.toLowerCase()).replace(/-(\w)/g, (t,
|
|
330
330
|
ARROW_DOWN: "ArrowDown",
|
331
331
|
ARROW_LEFT: "ArrowLeft",
|
332
332
|
ARROW_RIGHT: "ArrowRight"
|
333
|
-
},
|
333
|
+
}, Ft = {
|
334
334
|
renderTo: {
|
335
|
-
type:
|
335
|
+
type: N([String, Object]),
|
336
336
|
default: "body"
|
337
337
|
},
|
338
338
|
disabled: {
|
@@ -416,78 +416,78 @@ const pe = (e) => e.replace(/^./, (t) => t.toLowerCase()).replace(/-(\w)/g, (t,
|
|
416
416
|
type: Boolean,
|
417
417
|
default: !1
|
418
418
|
}
|
419
|
-
},
|
419
|
+
}, At = ["width", "minWidth", "height", "minHeight"], He = /* @__PURE__ */ E({
|
420
420
|
name: S("Dialog"),
|
421
421
|
inheritAttrs: !1,
|
422
|
-
props:
|
422
|
+
props: Ft,
|
423
423
|
emits: ["closed", "close", "open", "opened", "update:modelValue"],
|
424
424
|
setup(e, {
|
425
425
|
emit: t,
|
426
426
|
slots: l
|
427
427
|
}) {
|
428
|
-
const n =
|
428
|
+
const n = A("dialog"), a = n.block, o = A("message-box");
|
429
429
|
o.block;
|
430
|
-
const
|
431
|
-
zIndex:
|
432
|
-
})),
|
430
|
+
const c = v(() => [a, e.messageBox && "is-message-box", e.popupClass && e.popupClass]), i = v(() => ke(e.renderTo)), d = z(), s = v(() => e.disabled || !i.value), h = v(() => ({
|
431
|
+
zIndex: g.value
|
432
|
+
})), u = v(() => {
|
433
433
|
const x = {};
|
434
|
-
return e.fullscreen || (!e.center && e.top && (x.top = Se(e.top)),
|
435
|
-
e[
|
434
|
+
return e.fullscreen || (!e.center && e.top && (x.top = Se(e.top)), At.forEach((j) => {
|
435
|
+
e[j] && (x[j] = Se(e[j]));
|
436
436
|
})), x;
|
437
|
-
}), f =
|
438
|
-
zIndex:
|
439
|
-
isLastDialog:
|
437
|
+
}), f = z(!1), m = v(() => e.modelValue), C = v(() => m.value || f.value), {
|
438
|
+
zIndex: g,
|
439
|
+
isLastDialog: B
|
440
440
|
} = re("dialog", {
|
441
441
|
visible: m
|
442
442
|
}), {
|
443
443
|
setOverflowHidden: y,
|
444
444
|
resetOverflow: b
|
445
|
-
} =
|
446
|
-
t("update:modelValue", !1), t("close", e.messageBox ? x : void 0, e.messageBox ?
|
445
|
+
} = Pt(i, d), w = (x, j) => {
|
446
|
+
t("update:modelValue", !1), t("close", e.messageBox ? x : void 0, e.messageBox ? j : void 0);
|
447
447
|
}, M = () => {
|
448
448
|
f.value = !1, b(), t("closed");
|
449
|
-
},
|
449
|
+
}, $ = () => {
|
450
450
|
t("opened");
|
451
451
|
}, T = le({
|
452
452
|
ok: !1,
|
453
453
|
cancel: !1
|
454
|
-
}),
|
454
|
+
}), p = (x, j) => {
|
455
455
|
let Q = !0;
|
456
|
-
if (T[x] = !0, O(e.onBeforeCancel) && (Q = e.onBeforeCancel(x) ?? !1),
|
456
|
+
if (T[x] = !0, O(e.onBeforeCancel) && (Q = e.onBeforeCancel(x) ?? !1), Xe(Q)) {
|
457
457
|
Q.then((qe) => {
|
458
|
-
T[x] = !1, qe && w(x,
|
458
|
+
T[x] = !1, qe && w(x, j);
|
459
459
|
});
|
460
460
|
return;
|
461
461
|
}
|
462
|
-
T[x] = !1, Q && w(x,
|
462
|
+
T[x] = !1, Q && w(x, j);
|
463
463
|
}, J = () => {
|
464
|
-
e.maskToClose && e.mask &&
|
464
|
+
e.maskToClose && e.mask && p("cancel");
|
465
465
|
}, de = (x) => {
|
466
|
-
|
467
|
-
},
|
468
|
-
|
466
|
+
p("cancel", x);
|
467
|
+
}, _e = (x) => {
|
468
|
+
p("ok", x);
|
469
469
|
};
|
470
470
|
let fe = !1;
|
471
|
-
const
|
472
|
-
e.escToClose && x.key ===
|
473
|
-
},
|
474
|
-
e.escToClose && !fe && (fe = !0,
|
475
|
-
},
|
476
|
-
fe = !1,
|
471
|
+
const Be = (x) => {
|
472
|
+
e.escToClose && x.key === $t.ESC && B() && p("cancel");
|
473
|
+
}, Ze = () => {
|
474
|
+
e.escToClose && !fe && (fe = !0, zt(document.documentElement, "keydown", Be));
|
475
|
+
}, Le = () => {
|
476
|
+
fe = !1, Et(document.documentElement, "keydown", Be);
|
477
477
|
};
|
478
|
-
return
|
479
|
-
b(),
|
478
|
+
return Fe(() => {
|
479
|
+
b(), Le();
|
480
480
|
}), q(() => m.value, (x) => {
|
481
|
-
x ? (t("open"), y(), f.value = !0,
|
481
|
+
x ? (t("open"), y(), f.value = !0, Ze()) : Le();
|
482
482
|
}, {
|
483
483
|
immediate: !0
|
484
484
|
}), () => r(Qe, {
|
485
|
-
to:
|
486
|
-
disabled:
|
485
|
+
to: i.value,
|
486
|
+
disabled: s.value
|
487
487
|
}, {
|
488
488
|
default: () => [C.value && r("div", {
|
489
489
|
ref: d,
|
490
|
-
class:
|
490
|
+
class: c.value,
|
491
491
|
style: h.value
|
492
492
|
}, [r(U, {
|
493
493
|
name: "x-fade-in-standard",
|
@@ -504,14 +504,14 @@ const pe = (e) => e.replace(/^./, (t) => t.toLowerCase()).replace(/-(\w)/g, (t,
|
|
504
504
|
}, [r(U, {
|
505
505
|
name: "x-zoom-in",
|
506
506
|
appear: !0,
|
507
|
-
onAfterEnter:
|
507
|
+
onAfterEnter: $,
|
508
508
|
onAfterLeave: M
|
509
509
|
}, {
|
510
510
|
default: () => [m.value && r("div", {
|
511
511
|
class: [n.element("container"), {
|
512
512
|
"is-fullscreen": e.fullscreen
|
513
513
|
}],
|
514
|
-
style:
|
514
|
+
style: u.value
|
515
515
|
}, [r("div", {
|
516
516
|
class: [e.messageBox ? o.element("header") : n.element("header"), e.showHeaderBottomLine && "is-bottom-line"]
|
517
517
|
}, [l.title ? l.title() : r("div", {
|
@@ -522,16 +522,16 @@ const pe = (e) => e.replace(/^./, (t) => t.toLowerCase()).replace(/-(\w)/g, (t,
|
|
522
522
|
class: [e.messageBox ? o.element("footer") : n.element("footer")]
|
523
523
|
}, [l.footer && l.footer({
|
524
524
|
cancel: de,
|
525
|
-
ok:
|
525
|
+
ok: _e,
|
526
526
|
"loading-obj": T
|
527
527
|
})]), e.showClose && r("span", {
|
528
528
|
class: [n.element("close-icon"), e.messageBox && o.element("close-icon")],
|
529
|
-
onClick: () =>
|
529
|
+
onClick: () => p("cancel")
|
530
530
|
}, null)])]
|
531
531
|
})])])]
|
532
532
|
});
|
533
533
|
}
|
534
|
-
}),
|
534
|
+
}), Re = X(S("Dialog"), He), oe = I("CloseCircleFill", k(r("svg", {
|
535
535
|
viewBox: "0 0 48 48",
|
536
536
|
fill: "none",
|
537
537
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -546,7 +546,7 @@ const pe = (e) => e.replace(/^./, (t) => t.toLowerCase()).replace(/-(\w)/g, (t,
|
|
546
546
|
d: "M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm4.955-27.771-4.95 4.95-4.95-4.95a1 1 0 0 0-1.414 0l-1.414 1.414a1 1 0 0 0 0 1.414l4.95 4.95-4.95 4.95a1 1 0 0 0 0 1.414l1.414 1.414a1 1 0 0 0 1.414 0l4.95-4.95 4.95 4.95a1 1 0 0 0 1.414 0l1.414-1.414a1 1 0 0 0 0-1.414l-4.95-4.95 4.95-4.95a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0Z",
|
547
547
|
fill: "currentColor",
|
548
548
|
stroke: "none"
|
549
|
-
}, null)]))),
|
549
|
+
}, null)]))), ie = I("CheckCircleFill", k(r("svg", {
|
550
550
|
viewBox: "0 0 48 48",
|
551
551
|
fill: "none",
|
552
552
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -561,7 +561,7 @@ const pe = (e) => e.replace(/^./, (t) => t.toLowerCase()).replace(/-(\w)/g, (t,
|
|
561
561
|
d: "M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm10.207-24.379a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0L22 26.172l-4.878-4.88a1 1 0 0 0-1.415 0l-1.414 1.415a1 1 0 0 0 0 1.414l7 7a1 1 0 0 0 1.414 0l11.5-11.5Z",
|
562
562
|
fill: "currentColor",
|
563
563
|
stroke: "none"
|
564
|
-
}, null)]))),
|
564
|
+
}, null)]))), se = I("ExclamationCircleFill", k(r("svg", {
|
565
565
|
viewBox: "0 0 48 48",
|
566
566
|
fill: "none",
|
567
567
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -576,7 +576,7 @@ const pe = (e) => e.replace(/^./, (t) => t.toLowerCase()).replace(/-(\w)/g, (t,
|
|
576
576
|
d: "M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-30a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2Zm0 17h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-8a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v11Z",
|
577
577
|
fill: "currentColor",
|
578
578
|
stroke: "none"
|
579
|
-
}, null)]))),
|
579
|
+
}, null)]))), ce = I("InfoCircleFill", k(r("svg", {
|
580
580
|
viewBox: "0 0 48 48",
|
581
581
|
fill: "none",
|
582
582
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -591,7 +591,7 @@ const pe = (e) => e.replace(/^./, (t) => t.toLowerCase()).replace(/-(\w)/g, (t,
|
|
591
591
|
d: "M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-30a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2Zm0 17h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-8a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v11Z",
|
592
592
|
fill: "currentColor",
|
593
593
|
stroke: "none"
|
594
|
-
}, null)]))),
|
594
|
+
}, null)]))), ue = I("MinusCircleFill", k(r("svg", {
|
595
595
|
viewBox: "0 0 48 48",
|
596
596
|
fill: "none",
|
597
597
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -607,14 +607,14 @@ const pe = (e) => e.replace(/^./, (t) => t.toLowerCase()).replace(/-(\w)/g, (t,
|
|
607
607
|
fill: "currentColor",
|
608
608
|
stroke: "none"
|
609
609
|
}, null)])));
|
610
|
-
|
610
|
+
I("LogoSimple", k(r("svg", {
|
611
611
|
width: "61.000000",
|
612
612
|
height: "41.000000",
|
613
613
|
viewBox: "0 0 61 41",
|
614
614
|
fill: "none",
|
615
615
|
xmlns: "http://www.w3.org/2000/svg",
|
616
616
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
617
|
-
}, [r("desc", null, [
|
617
|
+
}, [r("desc", null, [F("Created with Pixso.")]), r("defs", null, null), r("path", {
|
618
618
|
id: "path",
|
619
619
|
d: "M32 29.5L32 41L49.4 41C55.8 41 61 35.85 61 29.5C61 23.14 55.8 18 49.4 18C42.99 18 37.79 23.14 37.79 29.5L32 29.5Z",
|
620
620
|
fill: "#00C1FF",
|
@@ -633,7 +633,7 @@ D("LogoSimple", k(r("svg", {
|
|
633
633
|
"fill-opacity": "1.000000",
|
634
634
|
"fill-rule": "nonzero"
|
635
635
|
}, null)])));
|
636
|
-
const
|
636
|
+
const jt = /* @__PURE__ */ E({
|
637
637
|
name: S("Message"),
|
638
638
|
props: {
|
639
639
|
id: {
|
@@ -687,26 +687,26 @@ const Vt = /* @__PURE__ */ P({
|
|
687
687
|
emit: t,
|
688
688
|
slots: l
|
689
689
|
}) {
|
690
|
-
const n =
|
691
|
-
zIndex:
|
690
|
+
const n = A("message"), a = z(!1), o = z(null), c = v(() => [n.block, n.modifier(e.type), e.center && n.modifier("center"), e.showClose && !e.center && n.element("show-close"), e.popupClass]), {
|
691
|
+
zIndex: i
|
692
692
|
} = re("message", {
|
693
693
|
runOnMounted: !0
|
694
|
-
}), d =
|
694
|
+
}), d = v(() => ({
|
695
695
|
top: `${e.offset}px`,
|
696
|
-
zIndex:
|
697
|
-
})),
|
696
|
+
zIndex: i.value
|
697
|
+
})), s = () => {
|
698
698
|
if (l.icon) return l.icon();
|
699
699
|
switch (e.type) {
|
700
700
|
case "success":
|
701
|
-
return r(se, null, null);
|
702
|
-
case "warning":
|
703
701
|
return r(ie, null, null);
|
702
|
+
case "warning":
|
703
|
+
return r(se, null, null);
|
704
704
|
case "strong":
|
705
|
-
return r(
|
705
|
+
return r(ue, null, null);
|
706
706
|
case "error":
|
707
707
|
return r(oe, null, null);
|
708
708
|
case "info":
|
709
|
-
return r(
|
709
|
+
return r(ce, null, null);
|
710
710
|
default:
|
711
711
|
return null;
|
712
712
|
}
|
@@ -714,17 +714,17 @@ const Vt = /* @__PURE__ */ P({
|
|
714
714
|
e.duration > 0 && (o.value = setTimeout(() => {
|
715
715
|
a.value = !1;
|
716
716
|
}, e.duration));
|
717
|
-
},
|
717
|
+
}, u = () => {
|
718
718
|
o.value && (clearTimeout(o.value), o.value = null);
|
719
719
|
};
|
720
|
-
|
720
|
+
R(() => {
|
721
721
|
a.value = !0, h();
|
722
722
|
}), ne(() => {
|
723
|
-
|
723
|
+
u();
|
724
724
|
});
|
725
725
|
const f = () => {
|
726
726
|
var m;
|
727
|
-
a.value = !1,
|
727
|
+
a.value = !1, u(), (m = e.onClose) == null || m.call(e);
|
728
728
|
};
|
729
729
|
return () => r(U, {
|
730
730
|
name: "x-message-slide-top",
|
@@ -732,11 +732,11 @@ const Vt = /* @__PURE__ */ P({
|
|
732
732
|
onAfterLeave: () => t("destroy")
|
733
733
|
}, {
|
734
734
|
default: () => [a.value && r("div", {
|
735
|
-
class:
|
735
|
+
class: c.value,
|
736
736
|
style: d.value
|
737
737
|
}, [r("span", {
|
738
738
|
class: [n.element("icon"), n.modifier(`icon-${e.type}`)]
|
739
|
-
}, [
|
739
|
+
}, [s()]), r("div", null, [l.default ? l.default() : e.useHTML ? r("span", {
|
740
740
|
innerHTML: e.message
|
741
741
|
}, null) : r("span", null, [e.message]), e.showClose && r("span", {
|
742
742
|
class: n.element("close-icon"),
|
@@ -744,7 +744,7 @@ const Vt = /* @__PURE__ */ P({
|
|
744
744
|
}, null)])])]
|
745
745
|
});
|
746
746
|
}
|
747
|
-
}),
|
747
|
+
}), Vt = X(S("Message"), jt), Xt = /* @__PURE__ */ E({
|
748
748
|
name: "Space",
|
749
749
|
props: {
|
750
750
|
direction: {
|
@@ -767,11 +767,11 @@ const Vt = /* @__PURE__ */ P({
|
|
767
767
|
setup(e, {
|
768
768
|
slots: t
|
769
769
|
}) {
|
770
|
-
const l =
|
771
|
-
function a(
|
772
|
-
if (dt(
|
773
|
-
return
|
774
|
-
switch (
|
770
|
+
const l = A("space"), n = v(() => [l.block, l.element(e.direction), e.fill && "is-fill", l.element(`${e.direction}-${e.align}`)]);
|
771
|
+
function a(c) {
|
772
|
+
if (dt(c))
|
773
|
+
return c;
|
774
|
+
switch (c) {
|
775
775
|
case "mini":
|
776
776
|
return 4;
|
777
777
|
case "small":
|
@@ -784,39 +784,39 @@ const Vt = /* @__PURE__ */ P({
|
|
784
784
|
return 8;
|
785
785
|
}
|
786
786
|
}
|
787
|
-
const o = (
|
788
|
-
const
|
789
|
-
if (
|
790
|
-
const d = `${a(e.size)}px`,
|
791
|
-
return e.direction === "horizontal" && (
|
787
|
+
const o = (c) => {
|
788
|
+
const i = {};
|
789
|
+
if (c) return i;
|
790
|
+
const d = `${a(e.size)}px`, s = `${a(e.size)}px`;
|
791
|
+
return e.direction === "horizontal" && (i.marginRight = d), e.direction === "vertical" && (i.marginBottom = s), i;
|
792
792
|
};
|
793
793
|
return () => {
|
794
|
-
var
|
795
|
-
const
|
794
|
+
var i;
|
795
|
+
const c = te((i = t.default) == null ? void 0 : i.call(t), !0).filter((d) => d.type !== et);
|
796
796
|
return r("div", {
|
797
797
|
class: [n.value]
|
798
|
-
}, [
|
799
|
-
var
|
800
|
-
const h = t.split &&
|
801
|
-
return r(
|
802
|
-
key: `space-item-${
|
798
|
+
}, [c.map((d, s) => {
|
799
|
+
var u;
|
800
|
+
const h = t.split && s > 0;
|
801
|
+
return r(H, {
|
802
|
+
key: `space-item-${s}`
|
803
803
|
}, [h && r("div", {
|
804
804
|
className: l.element("split"),
|
805
805
|
style: o(!1)
|
806
|
-
}, [(
|
806
|
+
}, [(u = t.split) == null ? void 0 : u.call(t)]), r("div", {
|
807
807
|
className: l.element("item"),
|
808
|
-
style: o(
|
808
|
+
style: o(s === c.length - 1)
|
809
809
|
}, [d])]);
|
810
810
|
})]);
|
811
811
|
};
|
812
812
|
}
|
813
|
-
}), we =
|
813
|
+
}), we = X(S("Space"), Xt), It = ["info", "success", "warning", "strong", "error"];
|
814
814
|
function Te(e) {
|
815
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
815
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !L(e);
|
816
816
|
}
|
817
|
-
const
|
817
|
+
const ge = A("message-box"), xe = (e) => {
|
818
818
|
const t = document.createElement("div"), l = () => {
|
819
|
-
|
819
|
+
V(null, t);
|
820
820
|
}, n = (f) => {
|
821
821
|
if (f === "cancel")
|
822
822
|
return e.beforeOnCancel ? e.beforeOnCancel() : !0;
|
@@ -828,13 +828,13 @@ const ve = j("message-box"), xe = (e) => {
|
|
828
828
|
let m;
|
829
829
|
switch (f) {
|
830
830
|
case "warning":
|
831
|
-
m = r(
|
831
|
+
m = r(se, {
|
832
832
|
size: "22px",
|
833
833
|
color: "#f6c64b"
|
834
834
|
}, null);
|
835
835
|
break;
|
836
836
|
case "strong":
|
837
|
-
m = r(
|
837
|
+
m = r(ue, {
|
838
838
|
size: "22px",
|
839
839
|
color: "#ff7125"
|
840
840
|
}, null);
|
@@ -846,65 +846,65 @@ const ve = j("message-box"), xe = (e) => {
|
|
846
846
|
}, null);
|
847
847
|
break;
|
848
848
|
case "success":
|
849
|
-
m = r(
|
849
|
+
m = r(ie, {
|
850
850
|
size: "22px",
|
851
851
|
color: "#68d1ab"
|
852
852
|
}, null);
|
853
853
|
break;
|
854
854
|
case "info":
|
855
|
-
m = r(
|
855
|
+
m = r(ce, {
|
856
856
|
size: "22px",
|
857
857
|
color: "#2355f5"
|
858
858
|
}, null);
|
859
859
|
break;
|
860
860
|
}
|
861
861
|
return r("div", {
|
862
|
-
class:
|
862
|
+
class: ge.element("icon")
|
863
863
|
}, [m]);
|
864
|
-
},
|
865
|
-
if (
|
864
|
+
}, c = (f) => {
|
865
|
+
if (L(f)) return f;
|
866
866
|
if (O(f)) {
|
867
867
|
const m = f();
|
868
|
-
return
|
868
|
+
return L(m) ? m : null;
|
869
869
|
}
|
870
870
|
return r("div", {
|
871
|
-
class:
|
872
|
-
}, [
|
873
|
-
},
|
874
|
-
if (
|
871
|
+
class: ge.element("title")
|
872
|
+
}, [F(" "), f, F(" ")]);
|
873
|
+
}, i = (f) => {
|
874
|
+
if (L(f)) return f;
|
875
875
|
if (O(f)) {
|
876
876
|
const m = f();
|
877
|
-
return
|
877
|
+
return L(m) ? m : null;
|
878
878
|
}
|
879
879
|
return r("div", {
|
880
|
-
class:
|
881
|
-
}, [
|
882
|
-
}, d = () => () => r(
|
883
|
-
if (
|
880
|
+
class: ge.element("content")
|
881
|
+
}, [F(" "), e.content, F(" ")]);
|
882
|
+
}, d = () => () => r(H, null, [o(e.type || "success"), e.title && c(e.title)]), s = () => () => r(H, null, [e.content && i(e.content)]), h = () => {
|
883
|
+
if (L(e.footer) || O(e.footer))
|
884
884
|
return e.footer;
|
885
885
|
const f = (e == null ? void 0 : e.cancelText) || "取消", m = (e == null ? void 0 : e.okText) || "确认";
|
886
886
|
return (C) => r(we, {
|
887
887
|
size: 12
|
888
888
|
}, {
|
889
889
|
default: () => {
|
890
|
-
var
|
890
|
+
var g, B;
|
891
891
|
return [!e.hideCancel && r(G, {
|
892
892
|
size: "small",
|
893
893
|
onClick: C.cancel,
|
894
|
-
loading: (
|
894
|
+
loading: (g = C.loadingObj) == null ? void 0 : g.cancel
|
895
895
|
}, Te(f) ? f : {
|
896
896
|
default: () => [f]
|
897
897
|
}), !e.hideOk && r(G, {
|
898
898
|
type: "primary",
|
899
899
|
size: "small",
|
900
900
|
onClick: C.ok,
|
901
|
-
loading: (
|
901
|
+
loading: (B = C.loadingObj) == null ? void 0 : B.ok
|
902
902
|
}, Te(m) ? m : {
|
903
903
|
default: () => [m]
|
904
904
|
})];
|
905
905
|
}
|
906
906
|
});
|
907
|
-
},
|
907
|
+
}, u = r(Re, {
|
908
908
|
messageBox: !0,
|
909
909
|
width: (e == null ? void 0 : e.width) ?? 358,
|
910
910
|
height: (e == null ? void 0 : e.height) ?? "auto",
|
@@ -918,7 +918,7 @@ const ve = j("message-box"), xe = (e) => {
|
|
918
918
|
onClose: a,
|
919
919
|
onBeforeCancel: n,
|
920
920
|
"onUpdate:modelValue": () => {
|
921
|
-
|
921
|
+
u.component.props.modelValue = !1;
|
922
922
|
},
|
923
923
|
// 等待动画完全结束后销毁vm
|
924
924
|
onClosed: l,
|
@@ -926,42 +926,42 @@ const ve = j("message-box"), xe = (e) => {
|
|
926
926
|
}
|
927
927
|
}, {
|
928
928
|
title: d(),
|
929
|
-
default:
|
929
|
+
default: s(),
|
930
930
|
footer: h()
|
931
931
|
});
|
932
|
-
|
933
|
-
},
|
934
|
-
|
932
|
+
V(u, t);
|
933
|
+
}, Dt = () => {
|
934
|
+
It.forEach((e) => {
|
935
935
|
xe[e] = (t, l) => {
|
936
936
|
const n = [], a = [];
|
937
|
-
let o = () => !0,
|
937
|
+
let o = () => !0, c = () => !0;
|
938
938
|
return setTimeout(() => {
|
939
939
|
xe({
|
940
940
|
title: t,
|
941
941
|
content: l,
|
942
942
|
type: e,
|
943
|
-
beforeOnCancel:
|
943
|
+
beforeOnCancel: c,
|
944
944
|
beforeOnOk: o,
|
945
945
|
onOk: () => {
|
946
|
-
n.forEach((
|
946
|
+
n.forEach((i) => O(i) && i());
|
947
947
|
},
|
948
948
|
onCancel: () => {
|
949
|
-
a.forEach((
|
949
|
+
a.forEach((i) => O(i) && i());
|
950
950
|
}
|
951
951
|
});
|
952
952
|
}, 0), {
|
953
|
-
ok(...
|
954
|
-
return
|
953
|
+
ok(...i) {
|
954
|
+
return i.length === 1 && n.push(i[0]), i.length === 2 && (o = i[0], n.push(i[1])), this;
|
955
955
|
},
|
956
|
-
cancel(...
|
957
|
-
return
|
956
|
+
cancel(...i) {
|
957
|
+
return i.length === 1 && a.push(i[0]), i.length === 2 && (c = i[0], a.push(i[1])), this;
|
958
958
|
}
|
959
959
|
};
|
960
960
|
};
|
961
961
|
});
|
962
962
|
};
|
963
|
-
|
964
|
-
const
|
963
|
+
Dt();
|
964
|
+
const Wt = X(S("MessageBox"), xe), Ht = {
|
965
965
|
position: {
|
966
966
|
type: String,
|
967
967
|
default: "top-right"
|
@@ -999,50 +999,50 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
999
999
|
type: Boolean,
|
1000
1000
|
default: !1
|
1001
1001
|
}
|
1002
|
-
},
|
1002
|
+
}, Ye = /* @__PURE__ */ E({
|
1003
1003
|
name: S("Notification"),
|
1004
|
-
props:
|
1004
|
+
props: Ht,
|
1005
1005
|
emits: ["close", "destroy"],
|
1006
1006
|
setup(e, {
|
1007
1007
|
emit: t,
|
1008
1008
|
slots: l
|
1009
1009
|
}) {
|
1010
|
-
const n =
|
1011
|
-
zIndex:
|
1010
|
+
const n = A("notification"), a = n.block, o = v(() => [a, n.modifier(i.value.ver)]), {
|
1011
|
+
zIndex: c
|
1012
1012
|
} = re("message", {
|
1013
1013
|
runOnMounted: !0
|
1014
|
-
}),
|
1015
|
-
const
|
1014
|
+
}), i = v(() => {
|
1015
|
+
const g = e.position.split("-");
|
1016
1016
|
return {
|
1017
|
-
hor:
|
1018
|
-
ver:
|
1017
|
+
hor: g[1],
|
1018
|
+
ver: g[0]
|
1019
1019
|
};
|
1020
|
-
}), d =
|
1021
|
-
const
|
1022
|
-
return
|
1023
|
-
}), h =
|
1024
|
-
let
|
1020
|
+
}), d = v(() => `x-notification-slide-${i.value.hor}`), s = v(() => {
|
1021
|
+
const g = {};
|
1022
|
+
return g.position = e.renderToBody ? "fixed" : "absolute", g.zIndex = c.value, g[i.value.hor] = "20px", g[i.value.ver] = `${e.offset}px`, g;
|
1023
|
+
}), h = z(!1);
|
1024
|
+
let u = 0;
|
1025
1025
|
const f = () => {
|
1026
|
-
|
1026
|
+
u = setTimeout(() => {
|
1027
1027
|
h.value = !1;
|
1028
1028
|
}, e.duration);
|
1029
|
-
}, m =
|
1029
|
+
}, m = v(() => e.type === "info" ? ce : e.type === "warning" ? se : e.type === "strong" ? ue : e.type === "success" ? ie : e.type === "error" ? oe : ""), C = () => {
|
1030
1030
|
h.value = !1;
|
1031
1031
|
};
|
1032
|
-
return
|
1032
|
+
return R(() => {
|
1033
1033
|
e.duration !== 0 && f(), h.value = !0;
|
1034
1034
|
}), ne(() => {
|
1035
|
-
clearTimeout(
|
1035
|
+
clearTimeout(u);
|
1036
1036
|
}), () => r(U, {
|
1037
1037
|
name: d.value,
|
1038
1038
|
onBeforeLeave: () => t("close"),
|
1039
1039
|
onAfterLeave: () => t("destroy")
|
1040
1040
|
}, {
|
1041
1041
|
default: () => {
|
1042
|
-
var
|
1042
|
+
var g;
|
1043
1043
|
return [h.value && r("div", {
|
1044
1044
|
class: o.value,
|
1045
|
-
style:
|
1045
|
+
style: s.value
|
1046
1046
|
}, [r("div", {
|
1047
1047
|
class: [n.element("header")]
|
1048
1048
|
}, [r("div", {
|
@@ -1051,14 +1051,14 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1051
1051
|
class: [n.element("title")]
|
1052
1052
|
}, [e.title]), r("div", {
|
1053
1053
|
class: [n.element("message")]
|
1054
|
-
}, [((
|
1054
|
+
}, [((g = l.default) == null ? void 0 : g.call(l)) || e.message])])]), e.showClose && r("span", {
|
1055
1055
|
class: [n.element("close-icon")],
|
1056
1056
|
onClick: C
|
1057
1057
|
}, null)])];
|
1058
1058
|
}
|
1059
1059
|
});
|
1060
1060
|
}
|
1061
|
-
}),
|
1061
|
+
}), Rt = X(S("Notification"), Ye), Yt = (e) => {
|
1062
1062
|
const t = e.split(" ").filter((n) => n !== "").map((n) => parseInt(n));
|
1063
1063
|
let l = {};
|
1064
1064
|
switch (t.length) {
|
@@ -1075,24 +1075,24 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1075
1075
|
l = { top: t[0], right: t[0], bottom: t[0], left: t[0] };
|
1076
1076
|
}
|
1077
1077
|
return l;
|
1078
|
-
},
|
1078
|
+
}, _t = (e) => {
|
1079
1079
|
const t = e.split(" ").filter((l) => l !== "").map((l) => parseInt(l));
|
1080
1080
|
return t.length < 1 || t.length > 4 ? !1 : t.every((l) => typeof l == "number" && l >= 0);
|
1081
|
-
},
|
1081
|
+
}, Zt = {
|
1082
1082
|
// 数据集
|
1083
1083
|
datasets: {
|
1084
1084
|
required: !0,
|
1085
|
-
type:
|
1085
|
+
type: N(Array)
|
1086
1086
|
},
|
1087
1087
|
// 网格属性
|
1088
1088
|
grid: {
|
1089
1089
|
default: null,
|
1090
|
-
type:
|
1090
|
+
type: N(Object)
|
1091
1091
|
},
|
1092
1092
|
// 标签属性
|
1093
1093
|
labels: {
|
1094
1094
|
default: null,
|
1095
|
-
type:
|
1095
|
+
type: N(Object)
|
1096
1096
|
},
|
1097
1097
|
// 最大值,默认数据集最大值
|
1098
1098
|
max: {
|
@@ -1107,7 +1107,7 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1107
1107
|
default: "5",
|
1108
1108
|
type: String,
|
1109
1109
|
validator(e) {
|
1110
|
-
return
|
1110
|
+
return _t(e);
|
1111
1111
|
}
|
1112
1112
|
},
|
1113
1113
|
// 开启交互,开启后启用onmousemove事件
|
@@ -1117,7 +1117,7 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1117
1117
|
},
|
1118
1118
|
// 主题
|
1119
1119
|
theme: {
|
1120
|
-
type:
|
1120
|
+
type: N(Object),
|
1121
1121
|
default: () => ({
|
1122
1122
|
activeLineColor: "#CCC"
|
1123
1123
|
})
|
@@ -1125,7 +1125,7 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1125
1125
|
}, qt = {
|
1126
1126
|
boundary: {
|
1127
1127
|
required: !0,
|
1128
|
-
type:
|
1128
|
+
type: N(Object),
|
1129
1129
|
default: () => {
|
1130
1130
|
}
|
1131
1131
|
},
|
@@ -1146,7 +1146,7 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1146
1146
|
},
|
1147
1147
|
data: {
|
1148
1148
|
required: !0,
|
1149
|
-
type:
|
1149
|
+
type: N(Array),
|
1150
1150
|
default: () => []
|
1151
1151
|
},
|
1152
1152
|
className: {
|
@@ -1169,15 +1169,15 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1169
1169
|
type: Boolean
|
1170
1170
|
},
|
1171
1171
|
theme: {
|
1172
|
-
type:
|
1172
|
+
type: N(Object)
|
1173
1173
|
},
|
1174
1174
|
mainTheme: {
|
1175
|
-
type:
|
1175
|
+
type: N(Object)
|
1176
1176
|
}
|
1177
1177
|
}, Ut = {
|
1178
1178
|
boundary: {
|
1179
1179
|
required: !0,
|
1180
|
-
type:
|
1180
|
+
type: N(Object),
|
1181
1181
|
default: () => {
|
1182
1182
|
}
|
1183
1183
|
},
|
@@ -1200,7 +1200,7 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1200
1200
|
}, Gt = {
|
1201
1201
|
boundary: {
|
1202
1202
|
required: !0,
|
1203
|
-
type:
|
1203
|
+
type: N(Object),
|
1204
1204
|
default: () => {
|
1205
1205
|
}
|
1206
1206
|
},
|
@@ -1223,49 +1223,49 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1223
1223
|
default: (e) => e,
|
1224
1224
|
type: Function
|
1225
1225
|
}
|
1226
|
-
}, Me =
|
1226
|
+
}, Me = E({
|
1227
1227
|
name: S("TrendChartGrid"),
|
1228
1228
|
props: Ut,
|
1229
1229
|
setup(e) {
|
1230
1230
|
const t = (o) => {
|
1231
|
-
const
|
1231
|
+
const c = e.verticalLinesNumber > 1 ? (e.boundary.maxX - e.boundary.minX) / (e.verticalLinesNumber - 1) : 0, i = e.boundary.minX + c * (o - 1), d = e.boundary.minY, s = e.boundary.maxY;
|
1232
1232
|
return {
|
1233
|
-
x1:
|
1234
|
-
x2:
|
1233
|
+
x1: i,
|
1234
|
+
x2: i,
|
1235
1235
|
y1: d,
|
1236
|
-
y2:
|
1236
|
+
y2: s,
|
1237
1237
|
stroke: "rgba(0,0,0,0.1)"
|
1238
1238
|
};
|
1239
1239
|
}, l = (o) => {
|
1240
|
-
const
|
1240
|
+
const c = e.horizontalLinesNumber > 1 ? (e.boundary.maxY - e.boundary.minY) / (e.horizontalLinesNumber - 1) : 0, i = e.boundary.maxY - c * (o - 1), d = e.boundary.minX, s = e.boundary.maxX;
|
1241
1241
|
return {
|
1242
1242
|
x1: d,
|
1243
|
-
x2:
|
1244
|
-
y1:
|
1245
|
-
y2:
|
1243
|
+
x2: s,
|
1244
|
+
y1: i,
|
1245
|
+
y2: i,
|
1246
1246
|
stroke: "rgba(0,0,0,0.1)"
|
1247
1247
|
};
|
1248
|
-
}, n =
|
1248
|
+
}, n = v(() => {
|
1249
1249
|
if (e.verticalLines && e.verticalLinesNumber > 0) {
|
1250
1250
|
const o = [];
|
1251
|
-
for (let
|
1251
|
+
for (let c = 1; c <= e.verticalLinesNumber; c++)
|
1252
1252
|
o.push(
|
1253
1253
|
k("line", {
|
1254
1254
|
class: "line",
|
1255
|
-
...t(
|
1255
|
+
...t(c)
|
1256
1256
|
})
|
1257
1257
|
);
|
1258
1258
|
return k("g", { class: "vertical" }, o);
|
1259
1259
|
}
|
1260
1260
|
return null;
|
1261
|
-
}), a =
|
1261
|
+
}), a = v(() => {
|
1262
1262
|
if (e.horizontalLines && e.horizontalLinesNumber > 0) {
|
1263
1263
|
const o = [];
|
1264
|
-
for (let
|
1264
|
+
for (let c = 1; c <= e.horizontalLinesNumber; c++)
|
1265
1265
|
o.push(
|
1266
1266
|
k("line", {
|
1267
1267
|
class: "line",
|
1268
|
-
...l(
|
1268
|
+
...l(c)
|
1269
1269
|
})
|
1270
1270
|
);
|
1271
1271
|
return k("g", { class: "horizontal" }, o);
|
@@ -1277,29 +1277,29 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1277
1277
|
return n.value && o.push(n.value), a.value && o.push(a.value), o.length === 0 ? null : k("g", null, o);
|
1278
1278
|
};
|
1279
1279
|
}
|
1280
|
-
}),
|
1280
|
+
}), pe = E({
|
1281
1281
|
name: S("TrendChartLabels"),
|
1282
1282
|
props: Gt,
|
1283
1283
|
setup(e) {
|
1284
1284
|
const t = le({
|
1285
1285
|
xLabelHeight: 0,
|
1286
1286
|
yLabelHeight: 0
|
1287
|
-
}), l =
|
1288
|
-
const
|
1289
|
-
return { transform: `translate(${h}, ${
|
1287
|
+
}), l = z(null), n = z(null), a = (d) => {
|
1288
|
+
const s = (e.boundary.maxX - e.boundary.minX) / (e.xLabels.length - 1), h = e.boundary.minX + s * d, u = e.boundary.maxY;
|
1289
|
+
return { transform: `translate(${h}, ${u})` };
|
1290
1290
|
}, o = (d) => {
|
1291
|
-
const
|
1292
|
-
return { transform: `translate(${h}, ${
|
1291
|
+
const s = (e.boundary.maxY - e.boundary.minY) / (e.yLabels - 1), h = e.boundary.minX, u = e.boundary.maxY - s * d;
|
1292
|
+
return { transform: `translate(${h}, ${u})` };
|
1293
1293
|
};
|
1294
|
-
|
1295
|
-
var d,
|
1296
|
-
l.value && e.xLabels && e.xLabels.length && (t.xLabelHeight = ((d = l.value.querySelector("text")) == null ? void 0 : d.getBoundingClientRect().height) || 0), n.value && e.yLabels && e.yLabels > 0 && (t.yLabelHeight = ((
|
1294
|
+
R(() => {
|
1295
|
+
var d, s;
|
1296
|
+
l.value && e.xLabels && e.xLabels.length && (t.xLabelHeight = ((d = l.value.querySelector("text")) == null ? void 0 : d.getBoundingClientRect().height) || 0), n.value && e.yLabels && e.yLabels > 0 && (t.yLabelHeight = ((s = n.value.querySelector("text")) == null ? void 0 : s.getBoundingClientRect().height) || 0);
|
1297
1297
|
});
|
1298
|
-
const
|
1298
|
+
const c = v(() => e.xLabels && e.xLabels.length ? k(
|
1299
1299
|
"g",
|
1300
1300
|
{ class: "x-labels", ref: l },
|
1301
1301
|
e.xLabels.map(
|
1302
|
-
(d,
|
1302
|
+
(d, s) => k("g", { class: "label", ...a(s) }, [
|
1303
1303
|
k(
|
1304
1304
|
"text",
|
1305
1305
|
{
|
@@ -1311,12 +1311,12 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1311
1311
|
k("line", { stroke: "rgba(0,0,0,0.1)", y2: 5 })
|
1312
1312
|
])
|
1313
1313
|
)
|
1314
|
-
) : null),
|
1314
|
+
) : null), i = v(() => {
|
1315
1315
|
if (e.yLabels && e.yLabels > 0) {
|
1316
1316
|
const d = [];
|
1317
|
-
for (let
|
1317
|
+
for (let s = 0; s < e.yLabels; s++)
|
1318
1318
|
d.push(
|
1319
|
-
k("g", { class: "label", ...o(
|
1319
|
+
k("g", { class: "label", ...o(s) }, [
|
1320
1320
|
k(
|
1321
1321
|
"text",
|
1322
1322
|
{
|
@@ -1325,7 +1325,7 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1325
1325
|
"text-anchor": "end"
|
1326
1326
|
},
|
1327
1327
|
e.yLabelsTextFormatter(
|
1328
|
-
e.minValue + (e.maxValue - e.minValue) / (e.yLabels - 1) *
|
1328
|
+
e.minValue + (e.maxValue - e.minValue) / (e.yLabels - 1) * s
|
1329
1329
|
)
|
1330
1330
|
),
|
1331
1331
|
k("line", { stroke: "rgba(0,0,0,0.1)", x1: 0, x2: -5 })
|
@@ -1337,52 +1337,52 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1337
1337
|
});
|
1338
1338
|
return () => {
|
1339
1339
|
const d = [];
|
1340
|
-
return
|
1340
|
+
return c.value && d.push(c.value), i.value && d.push(i.value), k("g", d);
|
1341
1341
|
};
|
1342
1342
|
}
|
1343
1343
|
}), Kt = (e, t, l, n, a) => {
|
1344
1344
|
e = e.map((d) => typeof d == "number" ? d : d.value);
|
1345
|
-
const o = n - 1e-3,
|
1346
|
-
return e.map((d,
|
1347
|
-
x:
|
1348
|
-
y: t.maxY - (d - o) *
|
1345
|
+
const o = n - 1e-3, c = (t.maxX - t.minX) / (a - 1), i = (t.maxY - t.minY) / (l + 1e-3 - o);
|
1346
|
+
return e.map((d, s) => ({
|
1347
|
+
x: s * c + t.minX,
|
1348
|
+
y: t.maxY - (d - o) * i + +(s === a - 1) * 1e-5 - +(s === 0) * 1e-5
|
1349
1349
|
}));
|
1350
1350
|
}, Jt = (e, t, { maxY: l }) => {
|
1351
|
-
const n = e.shift(), a = e[e.length - 1],
|
1352
|
-
let
|
1353
|
-
e.forEach((
|
1354
|
-
if (!t)
|
1351
|
+
const n = e.shift(), a = e[e.length - 1], c = (e[0].x - n.x) / 2;
|
1352
|
+
let i = `M ${n.x},${n.y}`;
|
1353
|
+
e.forEach((s, h) => {
|
1354
|
+
if (!t) i += ` L${s.x},${s.y}`;
|
1355
1355
|
else {
|
1356
|
-
const
|
1357
|
-
|
1356
|
+
const u = e[h - 1] || n;
|
1357
|
+
i += ` C ${c + u.x},${u.y} ${c + u.x},${s.y} ${s.x},${s.y}`;
|
1358
1358
|
}
|
1359
1359
|
});
|
1360
|
-
let d =
|
1361
|
-
return a.y !== l && (d += ` L${a.x},${l}`), n.y !== l && (d += ` L${n.x},${l}`), d += " Z", { linePath:
|
1362
|
-
},
|
1360
|
+
let d = i;
|
1361
|
+
return a.y !== l && (d += ` L${a.x},${l}`), n.y !== l && (d += ` L${n.x},${l}`), d += " Z", { linePath: i, fillPath: d };
|
1362
|
+
}, ze = /* @__PURE__ */ E({
|
1363
1363
|
name: S("TrendChartCurve"),
|
1364
1364
|
props: qt,
|
1365
1365
|
setup(e) {
|
1366
|
-
const t =
|
1367
|
-
var
|
1366
|
+
const t = v(() => Kt(e.data, e.boundary, e.maxValue, e.minValue, e.maxAmount)), l = v(() => Jt([...t.value], e.smooth, e.boundary)), n = v(() => {
|
1367
|
+
var c, i, d, s, h, u, f, m, C, g, B, y;
|
1368
1368
|
const a = [];
|
1369
|
-
console.log("世间自有公道----", e.mainTheme), e.fill && ((
|
1369
|
+
console.log("世间自有公道----", e.mainTheme), e.fill && ((c = l.value) != null && c.fillPath) && a.push(r("path", {
|
1370
1370
|
class: "x-trend-chart-fill",
|
1371
1371
|
d: l.value.fillPath,
|
1372
1372
|
fill: "none",
|
1373
1373
|
style: {
|
1374
|
-
fill: ((d = (
|
1375
|
-
opacity: ((h = (
|
1374
|
+
fill: ((d = (i = e.theme) == null ? void 0 : i.fill) == null ? void 0 : d.color) || "#585858",
|
1375
|
+
opacity: ((h = (s = e.theme) == null ? void 0 : s.fill) == null ? void 0 : h.opacity) || 0.1
|
1376
1376
|
}
|
1377
|
-
}, null)), e.stroke && ((
|
1377
|
+
}, null)), e.stroke && ((u = l.value) != null && u.linePath) && (console.log("props.theme?.stroke?.color", e.theme), a.push(r("path", {
|
1378
1378
|
class: "x-trend-chart-stroke",
|
1379
1379
|
d: l.value.linePath,
|
1380
1380
|
fill: "none",
|
1381
1381
|
stroke: "none",
|
1382
1382
|
style: {
|
1383
1383
|
stroke: ((m = (f = e.theme) == null ? void 0 : f.stroke) == null ? void 0 : m.color) || "#585858",
|
1384
|
-
strokeWidth: ((
|
1385
|
-
opacity: ((y = (
|
1384
|
+
strokeWidth: ((g = (C = e.theme) == null ? void 0 : C.stroke) == null ? void 0 : g.width) || 2,
|
1385
|
+
opacity: ((y = (B = e.theme) == null ? void 0 : B.stroke) == null ? void 0 : y.opacity) || 1
|
1386
1386
|
}
|
1387
1387
|
}, null)));
|
1388
1388
|
const o = (b) => b ? {
|
@@ -1392,11 +1392,11 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1392
1392
|
} : {};
|
1393
1393
|
if (e.showPoints && t.value) {
|
1394
1394
|
const b = t.value.map((w, M) => {
|
1395
|
-
var
|
1395
|
+
var $, T;
|
1396
1396
|
return r("circle", {
|
1397
1397
|
class: {
|
1398
1398
|
point: !0,
|
1399
|
-
"x-trend-chart-point-active": ((
|
1399
|
+
"x-trend-chart-point-active": (($ = e.activeLineParams) == null ? void 0 : $.index) === M
|
1400
1400
|
},
|
1401
1401
|
cx: w.x,
|
1402
1402
|
cy: w.y,
|
@@ -1413,14 +1413,14 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1413
1413
|
class: e.className
|
1414
1414
|
}, [n.value]);
|
1415
1415
|
}
|
1416
|
-
}), Qt = /* @__PURE__ */
|
1416
|
+
}), Qt = /* @__PURE__ */ E({
|
1417
1417
|
name: S("TrendChart"),
|
1418
1418
|
components: {
|
1419
1419
|
TrendChartGrid: Me,
|
1420
|
-
TrendChartLabels:
|
1421
|
-
TrendChartCurve:
|
1420
|
+
TrendChartLabels: pe,
|
1421
|
+
TrendChartCurve: ze
|
1422
1422
|
},
|
1423
|
-
props:
|
1423
|
+
props: Zt,
|
1424
1424
|
emits: {
|
1425
1425
|
"mouse-move": (e) => !0
|
1426
1426
|
},
|
@@ -1438,41 +1438,41 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1438
1438
|
},
|
1439
1439
|
activeLine: null,
|
1440
1440
|
activeLineParams: null
|
1441
|
-
}), n =
|
1441
|
+
}), n = v(() => Yt(e.padding || "0")), a = v(() => ({
|
1442
1442
|
minX: Number(n.value.left) + Number(l.labelsOverflowObject.left),
|
1443
1443
|
minY: Number(n.value.top) + Number(l.labelsOverflowObject.top),
|
1444
1444
|
maxX: (l.width ?? 0) - Number(n.value.right) - Number(l.labelsOverflowObject.right),
|
1445
1445
|
maxY: (l.height ?? 0) - Number(n.value.bottom) - Number(l.labelsOverflowObject.bottom)
|
1446
|
-
})), o =
|
1446
|
+
})), o = v(() => {
|
1447
1447
|
var M;
|
1448
1448
|
let y = -1 / 0, b = 1 / 0, w = 0;
|
1449
|
-
return (M = e == null ? void 0 : e.datasets) == null || M.forEach((
|
1450
|
-
const T =
|
1449
|
+
return (M = e == null ? void 0 : e.datasets) == null || M.forEach(($) => {
|
1450
|
+
const T = $.data.map((p) => typeof p == "number" ? p : p.value);
|
1451
1451
|
y = Math.max(y, ...T), b = Math.min(b, ...T), w = Math.max(w, T.length);
|
1452
1452
|
}), e.max !== void 0 && (y = Math.max(y, e.max)), e.min !== void 0 && (b = Math.min(b, e.min)), {
|
1453
1453
|
maxValue: y,
|
1454
1454
|
minValue: b,
|
1455
1455
|
maxAmount: w
|
1456
1456
|
};
|
1457
|
-
}),
|
1457
|
+
}), c = v(() => ({
|
1458
1458
|
x: a.value.minX,
|
1459
1459
|
y: a.value.minY,
|
1460
1460
|
width: Math.max(0, a.value.maxX - a.value.minX),
|
1461
1461
|
height: Math.max(0, a.value.maxY - a.value.minY),
|
1462
1462
|
opacity: 0
|
1463
|
-
})),
|
1463
|
+
})), i = v(() => {
|
1464
1464
|
const y = (a.value.maxX - a.value.minX) / (o.value.maxAmount - 1);
|
1465
1465
|
return Array.from({
|
1466
1466
|
length: o.value.maxAmount
|
1467
1467
|
}, (b, w) => Math.round(a.value.minX + y * w));
|
1468
|
-
}), d =
|
1468
|
+
}), d = z(null), s = z(null), h = () => {
|
1469
1469
|
if (d.value) {
|
1470
1470
|
const y = d.value.getBoundingClientRect();
|
1471
1471
|
l.width = y.width, l.height = y.height;
|
1472
1472
|
}
|
1473
|
-
},
|
1474
|
-
if (
|
1475
|
-
const y = d.value.getBoundingClientRect(), b =
|
1473
|
+
}, u = () => {
|
1474
|
+
if (s.value) {
|
1475
|
+
const y = d.value.getBoundingClientRect(), b = s.value.$el.getBoundingClientRect();
|
1476
1476
|
l.labelsOverflowObject = {
|
1477
1477
|
top: Math.max(0, Number(y.top) - Number(b.top) + Number(n.value.top)),
|
1478
1478
|
right: Math.max(0, Number(b.right) - Number(y.right) + Number(n.value.right)),
|
@@ -1487,25 +1487,25 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1487
1487
|
left: 0
|
1488
1488
|
};
|
1489
1489
|
}, f = () => {
|
1490
|
-
h(),
|
1491
|
-
}, m = (y) =>
|
1490
|
+
h(), Ne(u);
|
1491
|
+
}, m = (y) => i.value.reduce((b, w) => Math.abs(b - y) > Math.abs(w - y) ? w : b, 1 / 0), C = (y) => {
|
1492
1492
|
if (d.value) {
|
1493
1493
|
const b = d.value.getBoundingClientRect();
|
1494
1494
|
l.activeLine = m(y.clientX - b.left);
|
1495
1495
|
}
|
1496
|
-
},
|
1496
|
+
}, g = () => {
|
1497
1497
|
l.activeLine = null, l.activeLineParams = null;
|
1498
|
-
},
|
1498
|
+
}, B = () => {
|
1499
1499
|
h();
|
1500
1500
|
};
|
1501
|
-
return
|
1502
|
-
f(), window.addEventListener("resize",
|
1501
|
+
return R(() => {
|
1502
|
+
f(), window.addEventListener("resize", B);
|
1503
1503
|
}), ne(() => {
|
1504
|
-
window.removeEventListener("resize",
|
1504
|
+
window.removeEventListener("resize", B);
|
1505
1505
|
}), q(() => l.activeLine, (y) => {
|
1506
1506
|
var b;
|
1507
1507
|
if (y !== null) {
|
1508
|
-
const w =
|
1508
|
+
const w = i.value.indexOf(y);
|
1509
1509
|
l.activeLineParams = {
|
1510
1510
|
index: w
|
1511
1511
|
}, t("mouse-move", {
|
@@ -1520,11 +1520,11 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1520
1520
|
right: 0,
|
1521
1521
|
bottom: 0,
|
1522
1522
|
left: 0
|
1523
|
-
},
|
1523
|
+
}, Ne(u);
|
1524
1524
|
}, {
|
1525
1525
|
deep: !0
|
1526
1526
|
}), () => {
|
1527
|
-
var y, b, w, M,
|
1527
|
+
var y, b, w, M, $, T, p, J;
|
1528
1528
|
return r("svg", {
|
1529
1529
|
class: "x-trend-chart",
|
1530
1530
|
ref: d,
|
@@ -1538,14 +1538,14 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1538
1538
|
horizontalLines: e.grid.horizontalLines,
|
1539
1539
|
horizontalLinesNumber: e.grid.horizontalLinesNumber || (((y = e.labels) == null ? void 0 : y.yLabels) ?? 0),
|
1540
1540
|
boundary: a.value
|
1541
|
-
}, null), e.labels && r(
|
1542
|
-
ref:
|
1541
|
+
}, null), e.labels && r(pe, me({
|
1542
|
+
ref: s,
|
1543
1543
|
class: "labels"
|
1544
1544
|
}, e.labels, {
|
1545
1545
|
boundary: a.value,
|
1546
1546
|
minValue: o.value.minValue,
|
1547
1547
|
maxValue: o.value.maxValue
|
1548
|
-
}), null), (b = e.datasets) == null ? void 0 : b.map((de) => r(
|
1548
|
+
}), null), (b = e.datasets) == null ? void 0 : b.map((de) => r(ze, me({
|
1549
1549
|
class: "curve"
|
1550
1550
|
}, de, {
|
1551
1551
|
boundary: a.value,
|
@@ -1554,7 +1554,7 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1554
1554
|
maxAmount: o.value.maxAmount,
|
1555
1555
|
activeLineParams: l.activeLineParams,
|
1556
1556
|
mainTheme: e.theme
|
1557
|
-
}), null)), e.interactive && r(
|
1557
|
+
}), null)), e.interactive && r(H, null, [r("line", {
|
1558
1558
|
class: "x-trend-chart-active-line",
|
1559
1559
|
x1: l.activeLine ?? a.value.minX,
|
1560
1560
|
x2: l.activeLine ?? a.value.minX,
|
@@ -1563,82 +1563,82 @@ const Ht = I(S("MessageBox"), xe), Yt = {
|
|
1563
1563
|
visibility: l.activeLine ? "visible" : "hidden",
|
1564
1564
|
style: {
|
1565
1565
|
stroke: ((M = (w = e.theme) == null ? void 0 : w.axisLine) == null ? void 0 : M.color) || "#CCC",
|
1566
|
-
strokeWidth: ((T = (
|
1567
|
-
strokeOpacity: ((J = (
|
1566
|
+
strokeWidth: ((T = ($ = e.theme) == null ? void 0 : $.axisLine) == null ? void 0 : T.width) || 1,
|
1567
|
+
strokeOpacity: ((J = (p = e.theme) == null ? void 0 : p.axisLine) == null ? void 0 : J.opacity) || 1
|
1568
1568
|
}
|
1569
|
-
}, null), r("rect", me(
|
1569
|
+
}, null), r("rect", me(c.value, {
|
1570
1570
|
onMousemove: C,
|
1571
|
-
onMouseout:
|
1571
|
+
onMouseout: g
|
1572
1572
|
}), null)])]);
|
1573
1573
|
};
|
1574
1574
|
}
|
1575
|
-
}), el =
|
1575
|
+
}), el = X(S("TrendChart"), Qt), Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1576
1576
|
__proto__: null,
|
1577
1577
|
XButton: G,
|
1578
|
-
XDialog:
|
1579
|
-
XMessage:
|
1580
|
-
XMessageBox:
|
1581
|
-
XNotification:
|
1578
|
+
XDialog: Re,
|
1579
|
+
XMessage: Vt,
|
1580
|
+
XMessageBox: Wt,
|
1581
|
+
XNotification: Rt,
|
1582
1582
|
XSpace: we,
|
1583
1583
|
XTrendChart: el
|
1584
1584
|
}, Symbol.toStringTag, { value: "Module" }));
|
1585
|
-
function
|
1586
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
1585
|
+
function Pe(e) {
|
1586
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !L(e);
|
1587
1587
|
}
|
1588
|
-
const
|
1588
|
+
const $e = A("dialog"), dl = (e) => {
|
1589
1589
|
const t = document.createElement("div"), l = () => {
|
1590
|
-
|
1591
|
-
}, n = (
|
1592
|
-
if (
|
1590
|
+
V(null, t);
|
1591
|
+
}, n = (u) => {
|
1592
|
+
if (u === "cancel")
|
1593
1593
|
return e.beforeOnCancel ? e.beforeOnCancel() : !0;
|
1594
|
-
if (
|
1594
|
+
if (u === "ok")
|
1595
1595
|
return e.beforeOnOk ? e.beforeOnOk() : !0;
|
1596
|
-
}, a = (
|
1597
|
-
|
1598
|
-
}, o = (
|
1599
|
-
if (
|
1600
|
-
if (O(
|
1601
|
-
const f =
|
1602
|
-
return
|
1596
|
+
}, a = (u, f) => {
|
1597
|
+
u === "cancel" && e.onCancel && e.onCancel(f), u === "ok" && e.onOk && e.onOk(f);
|
1598
|
+
}, o = (u) => {
|
1599
|
+
if (L(u)) return u;
|
1600
|
+
if (O(u)) {
|
1601
|
+
const f = u();
|
1602
|
+
return L(f) ? f : null;
|
1603
1603
|
}
|
1604
1604
|
return r("div", {
|
1605
|
-
class:
|
1606
|
-
}, [
|
1607
|
-
},
|
1608
|
-
if (
|
1609
|
-
if (O(
|
1610
|
-
const f =
|
1611
|
-
return
|
1605
|
+
class: $e.element("header-title")
|
1606
|
+
}, [F(" "), u, F(" ")]);
|
1607
|
+
}, c = (u) => {
|
1608
|
+
if (L(u)) return u;
|
1609
|
+
if (O(u)) {
|
1610
|
+
const f = u();
|
1611
|
+
return L(f) ? f : null;
|
1612
1612
|
}
|
1613
1613
|
return r("div", {
|
1614
|
-
class:
|
1615
|
-
}, [
|
1616
|
-
},
|
1617
|
-
if (
|
1614
|
+
class: $e.element("content")
|
1615
|
+
}, [F(" "), e.content, F(" ")]);
|
1616
|
+
}, i = () => () => r(H, null, [e.title && o(e.title)]), d = () => () => r(H, null, [e.content && c(e.content)]), s = () => {
|
1617
|
+
if (L(e.footer) || O(e.footer))
|
1618
1618
|
return e.footer;
|
1619
|
-
const
|
1619
|
+
const u = (e == null ? void 0 : e.cancelText) || "取消", f = (e == null ? void 0 : e.okText) || "确认";
|
1620
1620
|
return (m) => r(we, {
|
1621
1621
|
size: 12
|
1622
1622
|
}, {
|
1623
1623
|
default: () => {
|
1624
|
-
var C,
|
1624
|
+
var C, g;
|
1625
1625
|
return [!e.hideCancel && r(G, {
|
1626
1626
|
size: "small",
|
1627
1627
|
onClick: m.cancel,
|
1628
1628
|
loading: (C = m.loadingObj) == null ? void 0 : C.cancel
|
1629
|
-
},
|
1630
|
-
default: () => [
|
1629
|
+
}, Pe(u) ? u : {
|
1630
|
+
default: () => [u]
|
1631
1631
|
}), !e.hideOk && r(G, {
|
1632
1632
|
type: "primary",
|
1633
1633
|
size: "small",
|
1634
1634
|
onClick: m.ok,
|
1635
|
-
loading: (
|
1636
|
-
},
|
1635
|
+
loading: (g = m.loadingObj) == null ? void 0 : g.ok
|
1636
|
+
}, Pe(f) ? f : {
|
1637
1637
|
default: () => [f]
|
1638
1638
|
})];
|
1639
1639
|
}
|
1640
1640
|
});
|
1641
|
-
}, h = r(
|
1641
|
+
}, h = r(He, {
|
1642
1642
|
width: (e == null ? void 0 : e.width) ?? 368,
|
1643
1643
|
height: (e == null ? void 0 : e.height) ?? "auto",
|
1644
1644
|
modelValue: !0,
|
@@ -1658,19 +1658,19 @@ const Fe = j("dialog"), dl = (e) => {
|
|
1658
1658
|
onOpened: () => {
|
1659
1659
|
}
|
1660
1660
|
}, {
|
1661
|
-
title:
|
1661
|
+
title: i(),
|
1662
1662
|
default: d(),
|
1663
|
-
footer:
|
1663
|
+
footer: s()
|
1664
1664
|
});
|
1665
|
-
|
1666
|
-
}, tl = ["success", "warning", "error", "strong", "info"], ll =
|
1665
|
+
V(h, t);
|
1666
|
+
}, tl = ["success", "warning", "error", "strong", "info"], ll = E({
|
1667
1667
|
name: S("Message"),
|
1668
1668
|
components: {
|
1669
1669
|
CloseCircleFill: oe,
|
1670
|
-
CheckCircleFill:
|
1671
|
-
ExclamationCircleFill:
|
1672
|
-
InfoCircleFill:
|
1673
|
-
MinusCircleFill:
|
1670
|
+
CheckCircleFill: ie,
|
1671
|
+
ExclamationCircleFill: se,
|
1672
|
+
InfoCircleFill: ce,
|
1673
|
+
MinusCircleFill: ue
|
1674
1674
|
},
|
1675
1675
|
props: {
|
1676
1676
|
id: {
|
@@ -1718,32 +1718,32 @@ const Fe = j("dialog"), dl = (e) => {
|
|
1718
1718
|
},
|
1719
1719
|
emits: ["destroy"],
|
1720
1720
|
setup(e) {
|
1721
|
-
const t =
|
1721
|
+
const t = A("message"), l = v(() => [
|
1722
1722
|
t.block,
|
1723
1723
|
t.modifier(e.type),
|
1724
1724
|
e.center && t.modifier("center"),
|
1725
1725
|
e.showClose && !e.center && t.element("show-close"),
|
1726
1726
|
e.popupClass && e.popupClass
|
1727
|
-
]), n =
|
1727
|
+
]), n = z(!1);
|
1728
1728
|
let a = null;
|
1729
1729
|
const o = () => {
|
1730
1730
|
a = setTimeout(() => {
|
1731
1731
|
n.value = !1;
|
1732
1732
|
}, e.duration);
|
1733
1733
|
};
|
1734
|
-
|
1734
|
+
R(() => {
|
1735
1735
|
n.value = !0, e.duration !== 0 && o();
|
1736
1736
|
}), ne(() => {
|
1737
1737
|
clearTimeout(a);
|
1738
1738
|
});
|
1739
|
-
const { zIndex:
|
1739
|
+
const { zIndex: c } = re("message", { runOnMounted: !0 }), i = v(() => ({
|
1740
1740
|
top: `${e.offset}px`,
|
1741
|
-
zIndex:
|
1741
|
+
zIndex: c.value
|
1742
1742
|
}));
|
1743
1743
|
return {
|
1744
1744
|
cn: t,
|
1745
1745
|
cls: l,
|
1746
|
-
styles:
|
1746
|
+
styles: i,
|
1747
1747
|
visible: n,
|
1748
1748
|
handleClose: () => {
|
1749
1749
|
n.value = !1;
|
@@ -1757,34 +1757,34 @@ const Fe = j("dialog"), dl = (e) => {
|
|
1757
1757
|
return l;
|
1758
1758
|
}, al = ["innerHTML"], rl = { key: 1 };
|
1759
1759
|
function ol(e, t, l, n, a, o) {
|
1760
|
-
const
|
1761
|
-
return
|
1760
|
+
const c = Y("CheckCircleFill"), i = Y("ExclamationCircleFill"), d = Y("MinusCircleFill"), s = Y("CloseCircleFill"), h = Y("InfoCircleFill");
|
1761
|
+
return P(), W(U, {
|
1762
1762
|
name: "x-message-slide-top",
|
1763
1763
|
onBeforeLeave: e.onClose,
|
1764
|
-
onAfterLeave: t[1] || (t[1] = (
|
1764
|
+
onAfterLeave: t[1] || (t[1] = (u) => e.$emit("destroy"))
|
1765
1765
|
}, {
|
1766
1766
|
default: tt(() => [
|
1767
1767
|
lt(nt("div", {
|
1768
1768
|
class: he(e.cls),
|
1769
1769
|
style: at(e.styles)
|
1770
1770
|
}, [
|
1771
|
-
e.$slots.icon ? ye("", !0) : (
|
1771
|
+
e.$slots.icon ? ye("", !0) : (P(), ee("span", {
|
1772
1772
|
key: 0,
|
1773
1773
|
class: he([e.cn.element("icon"), e.cn.modifier(`icon-${e.type}`)])
|
1774
1774
|
}, [
|
1775
1775
|
Oe(e.$slots, "icon", {}, () => [
|
1776
|
-
e.type === "success" ? (
|
1776
|
+
e.type === "success" ? (P(), W(c, { key: 0 })) : e.type === "warning" ? (P(), W(i, { key: 1 })) : e.type === "strong" ? (P(), W(d, { key: 2 })) : e.type === "error" ? (P(), W(s, { key: 3 })) : e.type === "info" ? (P(), W(h, { key: 4 })) : ye("", !0)
|
1777
1777
|
])
|
1778
1778
|
], 2)),
|
1779
1779
|
Oe(e.$slots, "default", {}, () => [
|
1780
|
-
e.useHTML ? (
|
1780
|
+
e.useHTML ? (P(), ee("span", {
|
1781
1781
|
key: 0,
|
1782
1782
|
innerHTML: e.message
|
1783
|
-
}, null, 8, al)) : (
|
1784
|
-
e.showClose ? (
|
1783
|
+
}, null, 8, al)) : (P(), ee("span", rl, rt(e.message), 1)),
|
1784
|
+
e.showClose ? (P(), ee("span", {
|
1785
1785
|
key: 2,
|
1786
1786
|
class: he([e.cn.element("close-icon")]),
|
1787
|
-
onClick: t[0] || (t[0] = (...
|
1787
|
+
onClick: t[0] || (t[0] = (...u) => e.handleClose && e.handleClose(...u))
|
1788
1788
|
}, null, 2)) : ye("", !0)
|
1789
1789
|
])
|
1790
1790
|
], 6), [
|
@@ -1794,48 +1794,48 @@ function ol(e, t, l, n, a, o) {
|
|
1794
1794
|
_: 3
|
1795
1795
|
}, 8, ["onBeforeLeave"]);
|
1796
1796
|
}
|
1797
|
-
const
|
1798
|
-
(typeof e == "string" ||
|
1797
|
+
const il = /* @__PURE__ */ nl(ll, [["render", ol]]), be = /* @__PURE__ */ new WeakMap(), Ce = (e) => {
|
1798
|
+
(typeof e == "string" || L(e)) && (e = {
|
1799
1799
|
message: e
|
1800
1800
|
});
|
1801
1801
|
const t = ke(e.renderTo || "body"), l = document.createElement("div");
|
1802
1802
|
be.has(t) || be.set(t, []);
|
1803
1803
|
const n = be.get(t);
|
1804
1804
|
let a = e.offset || 20;
|
1805
|
-
n.forEach((
|
1805
|
+
n.forEach((u) => {
|
1806
1806
|
var f;
|
1807
|
-
a += ((f =
|
1807
|
+
a += ((f = u.el) == null ? void 0 : f.offsetHeight) + 20;
|
1808
1808
|
});
|
1809
1809
|
const o = e.onClose;
|
1810
|
-
let
|
1811
|
-
|
1810
|
+
let c = {};
|
1811
|
+
c = { ...e, onClose: () => {
|
1812
1812
|
var m;
|
1813
|
-
const
|
1814
|
-
if (
|
1815
|
-
const f = ((m =
|
1816
|
-
n.slice(
|
1817
|
-
var
|
1818
|
-
const
|
1819
|
-
C.component.props.offset =
|
1820
|
-
}), n.splice(
|
1813
|
+
const u = n.findIndex((C) => C === s);
|
1814
|
+
if (u < 0) return;
|
1815
|
+
const f = ((m = s.el) == null ? void 0 : m.offsetHeight) + 20;
|
1816
|
+
n.slice(u + 1).forEach((C) => {
|
1817
|
+
var B;
|
1818
|
+
const g = (B = C.component) == null ? void 0 : B.props.offset;
|
1819
|
+
C.component.props.offset = g - f;
|
1820
|
+
}), n.splice(u, 1), o && o(s);
|
1821
1821
|
}, onDestroy: () => {
|
1822
|
-
|
1822
|
+
V(null, l);
|
1823
1823
|
}, offset: a };
|
1824
|
-
const
|
1825
|
-
|
1826
|
-
|
1827
|
-
O(
|
1828
|
-
default: O(
|
1824
|
+
const s = r(
|
1825
|
+
il,
|
1826
|
+
c,
|
1827
|
+
O(c.message) || L(c.message) ? {
|
1828
|
+
default: O(c.message) ? c.message : () => c.message
|
1829
1829
|
} : null
|
1830
1830
|
);
|
1831
|
-
return
|
1831
|
+
return V(s, l), t.tagName === "BODY" ? s.el.style.position = "fixed" : (t.style.position = "relative", s.el.style.position = "absolute"), t.appendChild(l.firstElementChild), n.push(s), {
|
1832
1832
|
close: () => {
|
1833
|
-
|
1833
|
+
s.component.proxy.handleClose();
|
1834
1834
|
}
|
1835
1835
|
};
|
1836
|
-
},
|
1836
|
+
}, sl = () => {
|
1837
1837
|
tl.forEach((e) => {
|
1838
|
-
Ce[e] = (t) =>
|
1838
|
+
Ce[e] = (t) => Ve(t) ? Ce({
|
1839
1839
|
type: e,
|
1840
1840
|
...t
|
1841
1841
|
}) : Ce({
|
@@ -1844,32 +1844,32 @@ const sl = /* @__PURE__ */ nl(ll, [["render", ol]]), be = /* @__PURE__ */ new We
|
|
1844
1844
|
});
|
1845
1845
|
});
|
1846
1846
|
};
|
1847
|
-
|
1848
|
-
const
|
1847
|
+
sl();
|
1848
|
+
const _ = /* @__PURE__ */ new WeakMap(), fl = (e) => {
|
1849
1849
|
const t = ke(e.renderTo || "body"), l = document.createElement("div");
|
1850
|
-
|
1851
|
-
const n =
|
1850
|
+
_.get(t) || _.set(t, {}), _.get(t)[e.position] || (_.get(t)[e.position] = []);
|
1851
|
+
const n = _.get(t)[e.position];
|
1852
1852
|
let a = e.offset || 20;
|
1853
1853
|
n.forEach((h) => {
|
1854
|
-
var
|
1855
|
-
a += ((
|
1854
|
+
var u;
|
1855
|
+
a += ((u = h.el) == null ? void 0 : u.offsetHeight) + 20;
|
1856
1856
|
});
|
1857
1857
|
const o = t.tagName === "BODY";
|
1858
1858
|
o || (t.style.position = "relative", t.style.overflowX = "hidden");
|
1859
|
-
const
|
1859
|
+
const c = e.onClose, i = () => {
|
1860
1860
|
var f;
|
1861
|
-
const h = n.findIndex((m) => m ===
|
1861
|
+
const h = n.findIndex((m) => m === s);
|
1862
1862
|
if (h < 0) return;
|
1863
|
-
const
|
1863
|
+
const u = ((f = s.el) == null ? void 0 : f.offsetHeight) + 20;
|
1864
1864
|
n.slice(h + 1).forEach((m) => {
|
1865
|
-
var
|
1866
|
-
const C = (
|
1867
|
-
m.component.props.offset = C -
|
1868
|
-
}), n.splice(h, 1),
|
1865
|
+
var g;
|
1866
|
+
const C = (g = m.component) == null ? void 0 : g.props.offset;
|
1867
|
+
m.component.props.offset = C - u;
|
1868
|
+
}), n.splice(h, 1), c && c(s);
|
1869
1869
|
}, d = () => {
|
1870
|
-
|
1871
|
-
},
|
1872
|
-
|
1870
|
+
V(null, l);
|
1871
|
+
}, s = r(
|
1872
|
+
Ye,
|
1873
1873
|
{
|
1874
1874
|
message: e.message,
|
1875
1875
|
title: e.title,
|
@@ -1879,18 +1879,181 @@ const Z = /* @__PURE__ */ new WeakMap(), fl = (e) => {
|
|
1879
1879
|
position: e.position,
|
1880
1880
|
duration: e.duration ?? 3e3,
|
1881
1881
|
showClose: e.showClose ?? !0,
|
1882
|
-
onClose:
|
1882
|
+
onClose: i,
|
1883
1883
|
onDestroy: d
|
1884
1884
|
},
|
1885
|
-
O(e.message) ||
|
1885
|
+
O(e.message) || L(e.message) ? {
|
1886
1886
|
default: O(e.message) ? e.message : () => e.message
|
1887
1887
|
} : null
|
1888
1888
|
);
|
1889
|
-
|
1889
|
+
V(s, l), n.push(s), t == null || t.appendChild(l.firstChild);
|
1890
1890
|
}, ml = {
|
1891
|
+
anger: {
|
1892
|
+
// 主题色
|
1893
|
+
color: "#f00",
|
1894
|
+
// 点
|
1895
|
+
point: {
|
1896
|
+
radius: 4,
|
1897
|
+
borderWidth: 2,
|
1898
|
+
borderColor: "#f00",
|
1899
|
+
backgroundColor: "#f00",
|
1900
|
+
opacity: 0.5,
|
1901
|
+
hoverRadius: 6,
|
1902
|
+
hoverColor: "#f00",
|
1903
|
+
hoverBorderWidth: 2,
|
1904
|
+
hoverBorderColor: "#f00",
|
1905
|
+
hoverBackgroundColor: "#f00",
|
1906
|
+
hoverOpacity: 0.1
|
1907
|
+
},
|
1908
|
+
stroke: {
|
1909
|
+
width: 2,
|
1910
|
+
color: "#f00",
|
1911
|
+
opacity: 0.5
|
1912
|
+
},
|
1913
|
+
fill: {
|
1914
|
+
color: "#ffa8a8",
|
1915
|
+
opacity: 0.2
|
1916
|
+
}
|
1917
|
+
},
|
1918
|
+
strong: {
|
1919
|
+
// 主题色
|
1920
|
+
color: "#f00",
|
1921
|
+
// 点
|
1922
|
+
point: {
|
1923
|
+
radius: 4,
|
1924
|
+
borderWidth: 2,
|
1925
|
+
borderColor: "#f00",
|
1926
|
+
backgroundColor: "#f00",
|
1927
|
+
opacity: 0.5,
|
1928
|
+
hoverRadius: 6,
|
1929
|
+
hoverColor: "#f00",
|
1930
|
+
hoverBorderWidth: 2,
|
1931
|
+
hoverBorderColor: "#f00",
|
1932
|
+
hoverBackgroundColor: "#f00",
|
1933
|
+
hoverOpacity: 0.5
|
1934
|
+
},
|
1935
|
+
stroke: {
|
1936
|
+
width: 2,
|
1937
|
+
color: "#ff7126",
|
1938
|
+
opacity: 0.8
|
1939
|
+
},
|
1940
|
+
fill: {
|
1941
|
+
color: "#ffdecc",
|
1942
|
+
opacity: 0.5
|
1943
|
+
}
|
1944
|
+
},
|
1945
|
+
warning: {
|
1946
|
+
// 主题色
|
1947
|
+
color: "#f00",
|
1948
|
+
// 点
|
1949
|
+
point: {
|
1950
|
+
radius: 4,
|
1951
|
+
borderWidth: 2,
|
1952
|
+
borderColor: "#f00",
|
1953
|
+
backgroundColor: "#f00",
|
1954
|
+
opacity: 0.5,
|
1955
|
+
hoverRadius: 6,
|
1956
|
+
hoverColor: "#f00",
|
1957
|
+
hoverBorderWidth: 2,
|
1958
|
+
hoverBorderColor: "#f00",
|
1959
|
+
hoverBackgroundColor: "#f00",
|
1960
|
+
hoverOpacity: 0.1
|
1961
|
+
},
|
1962
|
+
stroke: {
|
1963
|
+
width: 2,
|
1964
|
+
color: "#ffc703",
|
1965
|
+
opacity: 0.9
|
1966
|
+
},
|
1967
|
+
fill: {
|
1968
|
+
color: "#fff5d3",
|
1969
|
+
opacity: 0.8
|
1970
|
+
}
|
1971
|
+
},
|
1972
|
+
success: {
|
1973
|
+
// 主题色
|
1974
|
+
color: "#f00",
|
1975
|
+
// 点
|
1976
|
+
point: {
|
1977
|
+
radius: 4,
|
1978
|
+
borderWidth: 2,
|
1979
|
+
borderColor: "#f00",
|
1980
|
+
backgroundColor: "#f00",
|
1981
|
+
opacity: 0.5,
|
1982
|
+
hoverRadius: 6,
|
1983
|
+
hoverColor: "#f00",
|
1984
|
+
hoverBorderWidth: 2,
|
1985
|
+
hoverBorderColor: "#f00",
|
1986
|
+
hoverBackgroundColor: "#f00",
|
1987
|
+
hoverOpacity: 0.5
|
1988
|
+
},
|
1989
|
+
stroke: {
|
1990
|
+
width: 2,
|
1991
|
+
color: "#25c341",
|
1992
|
+
opacity: 0.9
|
1993
|
+
},
|
1994
|
+
fill: {
|
1995
|
+
color: "#c4e5dc",
|
1996
|
+
opacity: 0.5
|
1997
|
+
}
|
1998
|
+
},
|
1999
|
+
info: {
|
2000
|
+
// 主题色
|
2001
|
+
color: "#f00",
|
2002
|
+
// 点
|
2003
|
+
point: {
|
2004
|
+
radius: 4,
|
2005
|
+
borderWidth: 2,
|
2006
|
+
borderColor: "#f00",
|
2007
|
+
backgroundColor: "#f00",
|
2008
|
+
opacity: 0.5,
|
2009
|
+
hoverRadius: 6,
|
2010
|
+
hoverColor: "#f00",
|
2011
|
+
hoverBorderWidth: 2,
|
2012
|
+
hoverBorderColor: "#f00",
|
2013
|
+
hoverBackgroundColor: "#f00",
|
2014
|
+
hoverOpacity: 0.5
|
2015
|
+
},
|
2016
|
+
stroke: {
|
2017
|
+
width: 2,
|
2018
|
+
color: "#363636",
|
2019
|
+
opacity: 0.8
|
2020
|
+
},
|
2021
|
+
fill: {
|
2022
|
+
color: "#686868",
|
2023
|
+
opacity: 0.1
|
2024
|
+
}
|
2025
|
+
},
|
2026
|
+
primary: {
|
2027
|
+
// 主题色
|
2028
|
+
color: "#f00",
|
2029
|
+
// 点
|
2030
|
+
point: {
|
2031
|
+
radius: 4,
|
2032
|
+
borderWidth: 2,
|
2033
|
+
borderColor: "#f00",
|
2034
|
+
backgroundColor: "#f00",
|
2035
|
+
opacity: 0.5,
|
2036
|
+
hoverRadius: 6,
|
2037
|
+
hoverColor: "#f00",
|
2038
|
+
hoverBorderWidth: 2,
|
2039
|
+
hoverBorderColor: "#f00",
|
2040
|
+
hoverBackgroundColor: "#f00",
|
2041
|
+
hoverOpacity: 0.5
|
2042
|
+
},
|
2043
|
+
stroke: {
|
2044
|
+
width: 2,
|
2045
|
+
color: "#0056ff",
|
2046
|
+
opacity: 0.8
|
2047
|
+
},
|
2048
|
+
fill: {
|
2049
|
+
color: "#dae0ed",
|
2050
|
+
opacity: 0.5
|
2051
|
+
}
|
2052
|
+
}
|
2053
|
+
}, hl = {
|
1891
2054
|
install: function(e) {
|
1892
|
-
Object.keys(
|
1893
|
-
const l =
|
2055
|
+
Object.keys(Ee).forEach((t) => {
|
2056
|
+
const l = Ee[t];
|
1894
2057
|
l.install && e.use(l);
|
1895
2058
|
});
|
1896
2059
|
}
|
@@ -1900,12 +2063,13 @@ export {
|
|
1900
2063
|
Ce as Message,
|
1901
2064
|
xe as MessageBox,
|
1902
2065
|
fl as Notification,
|
2066
|
+
ml as TrendChartTheme,
|
1903
2067
|
G as XButton,
|
1904
|
-
|
1905
|
-
|
1906
|
-
|
1907
|
-
|
2068
|
+
Re as XDialog,
|
2069
|
+
Vt as XMessage,
|
2070
|
+
Wt as XMessageBox,
|
2071
|
+
Rt as XNotification,
|
1908
2072
|
we as XSpace,
|
1909
2073
|
el as XTrendChart,
|
1910
|
-
|
2074
|
+
hl as default
|
1911
2075
|
};
|