dmx-admin-ui 1.2.108 → 1.2.109
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/{chart-pMtPOqau.js → chart-f2pNMBJn.js} +51 -51
- package/dist/{group-DvVjK71m.js → group-BZXV7W6h.js} +2 -2
- package/dist/{group-table-DqWxXK71.js → group-table-Bmo-ZS_i.js} +2 -2
- package/dist/{group-tabs-DwdpscKQ.js → group-tabs-Ci9f5-2i.js} +17 -17
- package/dist/{index-CuoBjxHd.js → index-D2IbXr_T.js} +3010 -3009
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +23 -23
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @unocss-include
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import * as
|
|
4
|
-
const
|
|
2
|
+
import { defineComponent as W, ref as y, watch as j, onMounted as z, onUnmounted as D, resolveDirective as E, createElementBlock as $, openBlock as k, withDirectives as M, createElementVNode as R, renderSlot as T, createCommentVNode as B, unref as w } from "vue";
|
|
3
|
+
import * as g from "echarts";
|
|
4
|
+
const P = {
|
|
5
5
|
backgroundColor: "transparent",
|
|
6
6
|
textStyle: {},
|
|
7
7
|
title: {
|
|
@@ -147,8 +147,8 @@ const M = {
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
},
|
|
151
|
-
function
|
|
150
|
+
}, h = {};
|
|
151
|
+
function N(e, s = 0.5) {
|
|
152
152
|
if (e.startsWith("rgba"))
|
|
153
153
|
return e.replace(/[\d\.]+\)$/g, `${s})`);
|
|
154
154
|
if (e.startsWith("rgb"))
|
|
@@ -169,7 +169,7 @@ function R(e, s = 0.5) {
|
|
|
169
169
|
}
|
|
170
170
|
return e.startsWith("hsl") ? e.startsWith("hsla") ? e.replace(/[\d\.]+\)$/g, `${s})`) : e.replace("hsl", "hsla").replace(")", `, ${s})`) : e.startsWith("hsla") ? e.replace(/[\d\.]+\)$/g, `${s})`) : e;
|
|
171
171
|
}
|
|
172
|
-
const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [
|
|
172
|
+
const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [N(e, 0.7), e], {
|
|
173
173
|
type: "linear",
|
|
174
174
|
x: 0,
|
|
175
175
|
x2: 0,
|
|
@@ -185,9 +185,9 @@ const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [R(e, 0.7), e],
|
|
|
185
185
|
color: e[1]
|
|
186
186
|
}
|
|
187
187
|
]
|
|
188
|
-
}),
|
|
188
|
+
}), q = (e = -1) => {
|
|
189
189
|
const s = $store.theme + $store.dark;
|
|
190
|
-
if (!
|
|
190
|
+
if (!h[s]) {
|
|
191
191
|
const o = $store.theme, n = {
|
|
192
192
|
yellow: "#f59e0b",
|
|
193
193
|
green: "#22c55e",
|
|
@@ -214,10 +214,10 @@ const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [R(e, 0.7), e],
|
|
|
214
214
|
for (const d in a)
|
|
215
215
|
c.push(u(a[d]));
|
|
216
216
|
}
|
|
217
|
-
|
|
217
|
+
h[s] = c;
|
|
218
218
|
}
|
|
219
|
-
return e > -1 ?
|
|
220
|
-
},
|
|
219
|
+
return e > -1 ? h[s][e] : h[s];
|
|
220
|
+
}, V = { class: "echarts" }, F = { class: "chart-slot" }, Z = /* @__PURE__ */ W({
|
|
221
221
|
__name: "chart",
|
|
222
222
|
props: {
|
|
223
223
|
init: {
|
|
@@ -234,19 +234,19 @@ const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [R(e, 0.7), e],
|
|
|
234
234
|
}
|
|
235
235
|
},
|
|
236
236
|
setup(e) {
|
|
237
|
-
const s = e, o =
|
|
238
|
-
const t = $store.dark ?
|
|
239
|
-
return t.color =
|
|
237
|
+
const s = e, o = y(null), n = y(!0), a = y(null), c = () => {
|
|
238
|
+
const t = $store.dark ? P : {};
|
|
239
|
+
return t.color = q(), t;
|
|
240
240
|
}, d = {
|
|
241
241
|
type: "bar",
|
|
242
242
|
yAxisIndex: 0,
|
|
243
243
|
itemStyle: {
|
|
244
244
|
borderRadius: [4, 4, 0, 0]
|
|
245
245
|
}
|
|
246
|
-
},
|
|
246
|
+
}, A = {
|
|
247
247
|
yAxisIndex: 0,
|
|
248
248
|
type: "line"
|
|
249
|
-
},
|
|
249
|
+
}, b = y({}), C = (t, i) => {
|
|
250
250
|
const { type: l = "line" } = t;
|
|
251
251
|
let r = t || {};
|
|
252
252
|
if (r.tooltip === void 0 && (r.tooltip = {}), r.mini)
|
|
@@ -261,20 +261,20 @@ const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [R(e, 0.7), e],
|
|
|
261
261
|
type: "bar"
|
|
262
262
|
}, delete r.mini, r.series.data = Object.values(i), r;
|
|
263
263
|
if (r.grid === void 0 && (r.grid = { top: 0, left: 0, right: 0, bottom: 80 }), r.legend === void 0 && (r.legend = {}), r.xAxis === void 0 && (r.xAxis = { type: "category" }), r.yAxis === void 0 && (r.yAxis = {}), r.series === void 0) {
|
|
264
|
-
const
|
|
265
|
-
i[0].forEach((
|
|
266
|
-
if (
|
|
267
|
-
const
|
|
268
|
-
|
|
264
|
+
const p = [];
|
|
265
|
+
i[0].forEach((S, f) => {
|
|
266
|
+
if (f > 0) {
|
|
267
|
+
const L = (Array.isArray(l) ? l[f - 1] : l) === "bar" ? d : A;
|
|
268
|
+
p.push({ ...L });
|
|
269
269
|
}
|
|
270
|
-
}), r.series =
|
|
270
|
+
}), r.series = p;
|
|
271
271
|
}
|
|
272
272
|
return typeof i == "object" && (r.dataset = {
|
|
273
273
|
source: i
|
|
274
274
|
}), r;
|
|
275
|
-
},
|
|
276
|
-
s.init.type == "pie" ?
|
|
277
|
-
},
|
|
275
|
+
}, m = (t) => {
|
|
276
|
+
s.init.type == "pie" ? _(t) : s.init.type == "map" ? I(t) : O(t);
|
|
277
|
+
}, _ = (t) => {
|
|
278
278
|
const i = s.init;
|
|
279
279
|
if (delete i.type, i.tooltip === void 0 && (i.tooltip = {}), i.legend === void 0 && (i.legend = {}), t) {
|
|
280
280
|
if (i.series = [{
|
|
@@ -315,14 +315,14 @@ const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [R(e, 0.7), e],
|
|
|
315
315
|
i.series[0].data.push({ value: r, name: l });
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
console.log(i),
|
|
319
|
-
},
|
|
318
|
+
console.log(i), b.value = i, v();
|
|
319
|
+
}, I = async (t) => {
|
|
320
320
|
let i = 0;
|
|
321
321
|
t && (i = t[0].value);
|
|
322
|
-
let l = s.init, r = l.adcode || 1e5,
|
|
323
|
-
const
|
|
322
|
+
let l = s.init, r = l.adcode || 1e5, p = { 1e5: "china" }[r] || "map";
|
|
323
|
+
const S = await $req.query(
|
|
324
324
|
`https://geo.datav.aliyun.com/areas_v3/bound/${r}_full.json`
|
|
325
|
-
),
|
|
325
|
+
), f = g.init(a.value);
|
|
326
326
|
l.visualMap = {
|
|
327
327
|
text: ["高", "低"],
|
|
328
328
|
min: 0,
|
|
@@ -335,7 +335,7 @@ const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [R(e, 0.7), e],
|
|
|
335
335
|
}
|
|
336
336
|
}, l.series = {
|
|
337
337
|
type: "map",
|
|
338
|
-
map:
|
|
338
|
+
map: p,
|
|
339
339
|
label: {
|
|
340
340
|
show: !0,
|
|
341
341
|
color: "#999",
|
|
@@ -345,32 +345,32 @@ const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [R(e, 0.7), e],
|
|
|
345
345
|
areaColor: "#ecf5ff",
|
|
346
346
|
borderColor: "#dddddd"
|
|
347
347
|
}
|
|
348
|
-
}, l.series.data = t,
|
|
349
|
-
},
|
|
350
|
-
|
|
351
|
-
},
|
|
352
|
-
const t =
|
|
353
|
-
t.setOption(
|
|
348
|
+
}, l.series.data = t, g.registerMap(p, S), f.setOption(l), o.value = f, n.value = !1;
|
|
349
|
+
}, O = (t) => {
|
|
350
|
+
b.value = s.type === "native" ? s.init : C(s.init, t), v();
|
|
351
|
+
}, v = () => {
|
|
352
|
+
const t = g.init(a.value, c(), { renderer: "svg" });
|
|
353
|
+
t.setOption(b.value), o.value = t, n.value = !1;
|
|
354
354
|
};
|
|
355
|
-
|
|
355
|
+
j(() => [$store.dark, $store.theme], () => {
|
|
356
356
|
o.value && o.value.setTheme(c());
|
|
357
|
-
}),
|
|
358
|
-
s.asyncData && typeof s.asyncData == "function" ? s.asyncData(
|
|
359
|
-
}),
|
|
360
|
-
o.value && o.value.dispose(), window.removeEventListener("resize",
|
|
357
|
+
}), z(() => {
|
|
358
|
+
s.asyncData && typeof s.asyncData == "function" ? s.asyncData(m) : m(s.data);
|
|
359
|
+
}), D(() => {
|
|
360
|
+
o.value && o.value.dispose(), window.removeEventListener("resize", x);
|
|
361
361
|
});
|
|
362
|
-
const
|
|
362
|
+
const x = () => {
|
|
363
363
|
o.value && o.value.resize();
|
|
364
364
|
};
|
|
365
|
-
return window.addEventListener("resize",
|
|
366
|
-
const l =
|
|
367
|
-
return
|
|
368
|
-
|
|
369
|
-
|
|
365
|
+
return window.addEventListener("resize", x), (t, i) => {
|
|
366
|
+
const l = E("loading");
|
|
367
|
+
return k(), $("div", V, [
|
|
368
|
+
M((k(), $("div", F, [
|
|
369
|
+
w(n) ? B("", !0) : T(t.$slots, "default", { key: 0 })
|
|
370
370
|
])), [
|
|
371
|
-
[l,
|
|
371
|
+
[l, w(n)]
|
|
372
372
|
]),
|
|
373
|
-
|
|
373
|
+
R("div", {
|
|
374
374
|
class: "chart-box",
|
|
375
375
|
ref_key: "echartsRef",
|
|
376
376
|
ref: a
|
|
@@ -380,5 +380,5 @@ const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [R(e, 0.7), e],
|
|
|
380
380
|
}
|
|
381
381
|
});
|
|
382
382
|
export {
|
|
383
|
-
|
|
383
|
+
Z as default
|
|
384
384
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @unocss-include
|
|
2
2
|
import { defineAsyncComponent as V, resolveComponent as k, createElementBlock as n, openBlock as s, normalizeClass as p, createBlock as h, createCommentVNode as d, resolveDynamicComponent as x, normalizeProps as v, guardReactiveProps as C, withCtx as b, Fragment as f, renderList as g, createElementVNode as o, normalizeStyle as T, toDisplayString as c, createTextVNode as z } from "vue";
|
|
3
|
-
import { _ as j } from "./index-
|
|
3
|
+
import { _ as j } from "./index-D2IbXr_T.js";
|
|
4
4
|
const O = {
|
|
5
5
|
name: "form-group",
|
|
6
6
|
components: {
|
|
7
|
-
inputItem: V(() => import("./index-
|
|
7
|
+
inputItem: V(() => import("./index-D2IbXr_T.js").then((t) => t.c))
|
|
8
8
|
},
|
|
9
9
|
emits: ["change", "update:modelValue"],
|
|
10
10
|
props: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @unocss-include
|
|
2
2
|
import { defineAsyncComponent as w, resolveComponent as f, createElementBlock as o, openBlock as n, createElementVNode as l, createCommentVNode as g, createBlock as c, Fragment as a, renderList as m, normalizeStyle as C, createTextVNode as _, toDisplayString as p, withCtx as y, resolveDynamicComponent as j, mergeProps as z, normalizeClass as v } from "vue";
|
|
3
|
-
import { _ as O } from "./index-
|
|
3
|
+
import { _ as O } from "./index-D2IbXr_T.js";
|
|
4
4
|
const T = {
|
|
5
5
|
name: "form-group",
|
|
6
6
|
components: {
|
|
7
|
-
inputItem: w(() => import("./index-
|
|
7
|
+
inputItem: w(() => import("./index-D2IbXr_T.js").then((r) => r.c))
|
|
8
8
|
},
|
|
9
9
|
emits: ["change", "update:modelValue"],
|
|
10
10
|
props: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @unocss-include
|
|
2
|
-
import { resolveComponent as r, createElementBlock as l, openBlock as i, createVNode as
|
|
3
|
-
import { _ as
|
|
4
|
-
const
|
|
2
|
+
import { defineAsyncComponent as T, resolveComponent as r, createElementBlock as l, openBlock as i, createVNode as $, withCtx as f, Fragment as _, renderList as y, createBlock as h, createElementVNode as o, normalizeStyle as V, createCommentVNode as p, toDisplayString as b, createTextVNode as j } from "vue";
|
|
3
|
+
import { _ as x } from "./index-D2IbXr_T.js";
|
|
4
|
+
const v = {
|
|
5
5
|
name: "group-tabs",
|
|
6
6
|
components: {
|
|
7
|
-
inputItem:
|
|
7
|
+
inputItem: T(() => import("./index-D2IbXr_T.js").then((t) => t.c))
|
|
8
8
|
},
|
|
9
9
|
emits: ["change", "update:modelValue"],
|
|
10
10
|
props: {
|
|
@@ -50,33 +50,33 @@ const x = {
|
|
|
50
50
|
this.list.push({});
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
},
|
|
53
|
+
}, w = { class: "group-tabs" }, A = { class: "input-group-item" }, O = { class: "item" }, z = { class: "input w-full" }, C = { class: "input-item-box" }, N = { class: "input-item-input" }, U = {
|
|
54
54
|
key: 0,
|
|
55
55
|
class: "input-item-info text-3 op-70 pt-xs leading-15"
|
|
56
56
|
};
|
|
57
|
-
function
|
|
57
|
+
function W(t, d, n, B, c, E) {
|
|
58
58
|
const m = r("inputItem"), g = r("el-tab-pane"), k = r("el-tabs");
|
|
59
|
-
return i(), l("div",
|
|
60
|
-
|
|
59
|
+
return i(), l("div", w, [
|
|
60
|
+
$(k, { type: "border-card" }, {
|
|
61
61
|
default: f(() => [
|
|
62
62
|
(i(!0), l(_, null, y(c.tabs, (a, s) => (i(), h(g, {
|
|
63
63
|
label: a.title
|
|
64
64
|
}, {
|
|
65
65
|
default: f(() => [
|
|
66
|
-
o("div",
|
|
67
|
-
o("div",
|
|
68
|
-
o("div",
|
|
66
|
+
o("div", A, [
|
|
67
|
+
o("div", O, [
|
|
68
|
+
o("div", z, [
|
|
69
69
|
(i(!0), l(_, null, y(c.cols, (e) => (i(), l("div", {
|
|
70
70
|
class: "input-item",
|
|
71
71
|
style: V({ width: e.inputWidth ? e.inputWidth : "100%" })
|
|
72
72
|
}, [
|
|
73
|
-
o("div",
|
|
73
|
+
o("div", C, [
|
|
74
74
|
e.title ? (i(), l("div", {
|
|
75
75
|
key: 0,
|
|
76
76
|
class: "input-item-title",
|
|
77
77
|
style: V(`width:${e.labelWidth || n.init.labelWidth};`)
|
|
78
78
|
}, b(e.title) + ": ", 5)) : p("", !0),
|
|
79
|
-
o("div",
|
|
79
|
+
o("div", N, [
|
|
80
80
|
e.field ? (i(), h(m, {
|
|
81
81
|
key: 0,
|
|
82
82
|
modelValue: n.modelValue[a.key || s][e.field],
|
|
@@ -92,9 +92,9 @@ function U(t, d, n, W, c, B) {
|
|
|
92
92
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "index", "prop"])) : p("", !0)
|
|
93
93
|
])
|
|
94
94
|
]),
|
|
95
|
-
e.info ? (i(), l("div",
|
|
95
|
+
e.info ? (i(), l("div", U, [
|
|
96
96
|
d[0] || (d[0] = o("i", { class: "i-ri-error-warning-line" }, null, -1)),
|
|
97
|
-
|
|
97
|
+
j(" " + b(e.info), 1)
|
|
98
98
|
])) : p("", !0)
|
|
99
99
|
], 4))), 256))
|
|
100
100
|
])
|
|
@@ -108,7 +108,7 @@ function U(t, d, n, W, c, B) {
|
|
|
108
108
|
})
|
|
109
109
|
]);
|
|
110
110
|
}
|
|
111
|
-
const
|
|
111
|
+
const D = /* @__PURE__ */ x(v, [["render", W]]);
|
|
112
112
|
export {
|
|
113
|
-
|
|
113
|
+
D as default
|
|
114
114
|
};
|