dmx-admin-ui 1.2.108 → 1.2.110

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.
@@ -1,7 +1,6 @@
1
- // @unocss-include
2
- import { defineComponent as L, resolveDirective as W, createElementBlock as S, openBlock as $, withDirectives as j, createElementVNode as z, renderSlot as D, createCommentVNode as E, unref as k } from "vue";
3
- import * as b from "echarts";
4
- const M = {
1
+ import { defineComponent as W, ref as y, watch as j, onMounted as z, onUnmounted as D, resolveDirective as E, openBlock as $, createElementBlock as k, withDirectives as M, unref as w, renderSlot as R, createCommentVNode as T, createElementVNode as B } from "vue";
2
+ import * as g from "echarts";
3
+ const P = {
5
4
  backgroundColor: "transparent",
6
5
  textStyle: {},
7
6
  title: {
@@ -147,8 +146,8 @@ const M = {
147
146
  }
148
147
  }
149
148
  }
150
- }, y = {};
151
- function R(e, s = 0.5) {
149
+ }, h = {};
150
+ function N(e, s = 0.5) {
152
151
  if (e.startsWith("rgba"))
153
152
  return e.replace(/[\d\.]+\)$/g, `${s})`);
154
153
  if (e.startsWith("rgb"))
@@ -169,7 +168,7 @@ function R(e, s = 0.5) {
169
168
  }
170
169
  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
170
  }
172
- const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [R(e, 0.7), e], {
171
+ const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [N(e, 0.7), e], {
173
172
  type: "linear",
174
173
  x: 0,
175
174
  x2: 0,
@@ -185,9 +184,9 @@ const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [R(e, 0.7), e],
185
184
  color: e[1]
186
185
  }
187
186
  ]
188
- }), T = (e = -1) => {
187
+ }), q = (e = -1) => {
189
188
  const s = $store.theme + $store.dark;
190
- if (!y[s]) {
189
+ if (!h[s]) {
191
190
  const o = $store.theme, n = {
192
191
  yellow: "#f59e0b",
193
192
  green: "#22c55e",
@@ -214,10 +213,10 @@ const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [R(e, 0.7), e],
214
213
  for (const d in a)
215
214
  c.push(u(a[d]));
216
215
  }
217
- y[s] = c;
216
+ h[s] = c;
218
217
  }
219
- return e > -1 ? y[s][e] : y[s];
220
- }, B = { class: "echarts" }, P = { class: "chart-slot" }, V = /* @__PURE__ */ L({
218
+ return e > -1 ? h[s][e] : h[s];
219
+ }, V = { class: "echarts" }, F = { class: "chart-slot" }, Z = /* @__PURE__ */ W({
221
220
  __name: "chart",
222
221
  props: {
223
222
  init: {
@@ -234,19 +233,19 @@ const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [R(e, 0.7), e],
234
233
  }
235
234
  },
236
235
  setup(e) {
237
- const s = e, o = ref(null), n = ref(!0), a = ref(null), c = () => {
238
- const t = $store.dark ? M : {};
239
- return t.color = T(), t;
236
+ const s = e, o = y(null), n = y(!0), a = y(null), c = () => {
237
+ const t = $store.dark ? P : {};
238
+ return t.color = q(), t;
240
239
  }, d = {
241
240
  type: "bar",
242
241
  yAxisIndex: 0,
243
242
  itemStyle: {
244
243
  borderRadius: [4, 4, 0, 0]
245
244
  }
246
- }, w = {
245
+ }, A = {
247
246
  yAxisIndex: 0,
248
247
  type: "line"
249
- }, h = ref({}), A = (t, i) => {
248
+ }, b = y({}), C = (t, i) => {
250
249
  const { type: l = "line" } = t;
251
250
  let r = t || {};
252
251
  if (r.tooltip === void 0 && (r.tooltip = {}), r.mini)
@@ -261,20 +260,20 @@ const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [R(e, 0.7), e],
261
260
  type: "bar"
262
261
  }, delete r.mini, r.series.data = Object.values(i), r;
263
262
  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 f = [];
265
- i[0].forEach((x, p) => {
266
- if (p > 0) {
267
- const O = (Array.isArray(l) ? l[p - 1] : l) === "bar" ? d : w;
268
- f.push({ ...O });
263
+ const p = [];
264
+ i[0].forEach((S, f) => {
265
+ if (f > 0) {
266
+ const L = (Array.isArray(l) ? l[f - 1] : l) === "bar" ? d : A;
267
+ p.push({ ...L });
269
268
  }
270
- }), r.series = f;
269
+ }), r.series = p;
271
270
  }
272
271
  return typeof i == "object" && (r.dataset = {
273
272
  source: i
274
273
  }), r;
275
- }, g = (t) => {
276
- s.init.type == "pie" ? C(t) : s.init.type == "map" ? _(t) : I(t);
277
- }, C = (t) => {
274
+ }, m = (t) => {
275
+ s.init.type == "pie" ? _(t) : s.init.type == "map" ? I(t) : O(t);
276
+ }, _ = (t) => {
278
277
  const i = s.init;
279
278
  if (delete i.type, i.tooltip === void 0 && (i.tooltip = {}), i.legend === void 0 && (i.legend = {}), t) {
280
279
  if (i.series = [{
@@ -315,14 +314,14 @@ const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [R(e, 0.7), e],
315
314
  i.series[0].data.push({ value: r, name: l });
316
315
  }
317
316
  }
318
- console.log(i), h.value = i, m();
319
- }, _ = async (t) => {
317
+ console.log(i), b.value = i, v();
318
+ }, I = async (t) => {
320
319
  let i = 0;
321
320
  t && (i = t[0].value);
322
- let l = s.init, r = l.adcode || 1e5, f = { 1e5: "china" }[r] || "map";
323
- const x = await $req.query(
321
+ let l = s.init, r = l.adcode || 1e5, p = { 1e5: "china" }[r] || "map";
322
+ const S = await $req.query(
324
323
  `https://geo.datav.aliyun.com/areas_v3/bound/${r}_full.json`
325
- ), p = b.init(a.value);
324
+ ), f = g.init(a.value);
326
325
  l.visualMap = {
327
326
  text: ["高", "低"],
328
327
  min: 0,
@@ -335,7 +334,7 @@ const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [R(e, 0.7), e],
335
334
  }
336
335
  }, l.series = {
337
336
  type: "map",
338
- map: f,
337
+ map: p,
339
338
  label: {
340
339
  show: !0,
341
340
  color: "#999",
@@ -345,32 +344,32 @@ const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [R(e, 0.7), e],
345
344
  areaColor: "#ecf5ff",
346
345
  borderColor: "#dddddd"
347
346
  }
348
- }, l.series.data = t, b.registerMap(f, x), p.setOption(l), o.value = p, n.value = !1;
349
- }, I = (t) => {
350
- h.value = s.type === "native" ? s.init : A(s.init, t), m();
351
- }, m = () => {
352
- const t = b.init(a.value, c(), { renderer: "svg" });
353
- t.setOption(h.value), o.value = t, n.value = !1;
347
+ }, l.series.data = t, g.registerMap(p, S), f.setOption(l), o.value = f, n.value = !1;
348
+ }, O = (t) => {
349
+ b.value = s.type === "native" ? s.init : C(s.init, t), v();
350
+ }, v = () => {
351
+ const t = g.init(a.value, c(), { renderer: "svg" });
352
+ t.setOption(b.value), o.value = t, n.value = !1;
354
353
  };
355
- watch(() => [$store.dark, $store.theme], () => {
354
+ j(() => [$store.dark, $store.theme], () => {
356
355
  o.value && o.value.setTheme(c());
357
- }), onMounted(() => {
358
- s.asyncData && typeof s.asyncData == "function" ? s.asyncData(g) : g(s.data);
359
- }), onUnmounted(() => {
360
- o.value && o.value.dispose(), window.removeEventListener("resize", v);
356
+ }), z(() => {
357
+ s.asyncData && typeof s.asyncData == "function" ? s.asyncData(m) : m(s.data);
358
+ }), D(() => {
359
+ o.value && o.value.dispose(), window.removeEventListener("resize", x);
361
360
  });
362
- const v = () => {
361
+ const x = () => {
363
362
  o.value && o.value.resize();
364
363
  };
365
- return window.addEventListener("resize", v), (t, i) => {
366
- const l = W("loading");
367
- return $(), S("div", B, [
368
- j(($(), S("div", P, [
369
- k(n) ? E("", !0) : D(t.$slots, "default", { key: 0 })
364
+ return window.addEventListener("resize", x), (t, i) => {
365
+ const l = E("loading");
366
+ return $(), k("div", V, [
367
+ M(($(), k("div", F, [
368
+ w(n) ? T("", !0) : R(t.$slots, "default", { key: 0 })
370
369
  ])), [
371
- [l, k(n)]
370
+ [l, w(n)]
372
371
  ]),
373
- z("div", {
372
+ B("div", {
374
373
  class: "chart-box",
375
374
  ref_key: "echartsRef",
376
375
  ref: a
@@ -380,5 +379,5 @@ const u = (e = ["#eee", "#999"]) => (e = Array.isArray(e) ? e : [R(e, 0.7), e],
380
379
  }
381
380
  });
382
381
  export {
383
- V as default
382
+ Z as default
384
383
  };
@@ -1,10 +1,9 @@
1
- // @unocss-include
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-CuoBjxHd.js";
1
+ import { resolveComponent as V, openBlock as s, createElementBlock as n, normalizeClass as p, createBlock as h, resolveDynamicComponent as k, normalizeProps as x, guardReactiveProps as v, withCtx as C, Fragment as f, renderList as g, createElementVNode as o, createCommentVNode as d, normalizeStyle as b, toDisplayString as c, createTextVNode as T, defineAsyncComponent as z } from "vue";
2
+ import { _ as j } from "./index-DE1eazH3.js";
4
3
  const O = {
5
4
  name: "form-group",
6
5
  components: {
7
- inputItem: V(() => import("./index-CuoBjxHd.js").then((t) => t.c))
6
+ inputItem: z(() => import("./index-DE1eazH3.js").then((t) => t.c))
8
7
  },
9
8
  emits: ["change", "update:modelValue"],
10
9
  props: {
@@ -66,12 +65,12 @@ const O = {
66
65
  style: { "line-height": "1.5" }
67
66
  }, D = ["onClick"], P = { class: "text-3 op-70 pl-sm" };
68
67
  function U(t, e, y, W, i, r) {
69
- const _ = k("inputItem");
68
+ const _ = V("inputItem");
70
69
  return s(), n("div", {
71
70
  class: p(["input-group", i.limit == 1 ? "input-group-one" : ""])
72
71
  }, [
73
- (s(), h(x(i.limit > 1 ? "a-draggable" : "span"), v(C(i.limit > 1 ? { filter: ".del", handle: ".sort", list: i.list, onChange: r.change } : {})), {
74
- default: b(() => [
72
+ (s(), h(k(i.limit > 1 ? "a-draggable" : "span"), x(v(i.limit > 1 ? { filter: ".del", handle: ".sort", list: i.list, onChange: r.change } : {})), {
73
+ default: C(() => [
75
74
  (s(!0), n(f, null, g(i.list, (u, a) => (s(), n("div", w, [
76
75
  i.limit != 1 ? (s(), n("div", A, [...e[1] || (e[1] = [
77
76
  o("i", { class: "i-ri-menu-line" }, null, -1)
@@ -80,7 +79,7 @@ function U(t, e, y, W, i, r) {
80
79
  o("div", B, [
81
80
  (s(!0), n(f, null, g(i.cols, (l) => (s(), n("div", {
82
81
  class: "input-item",
83
- style: T({ width: l.inputWidth ? l.inputWidth : "100%" })
82
+ style: b({ width: l.inputWidth ? l.inputWidth : "100%" })
84
83
  }, [
85
84
  o("div", {
86
85
  class: p(["input-item-box", { "input-item-box-h": i.alignTop }])
@@ -100,7 +99,7 @@ function U(t, e, y, W, i, r) {
100
99
  ], 2),
101
100
  l.info ? (s(), n("div", S, [
102
101
  e[2] || (e[2] = o("i", { class: "i-ri-error-warning-line" }, null, -1)),
103
- z(" " + c(l.info), 1)
102
+ T(" " + c(l.info), 1)
104
103
  ])) : d("", !0)
105
104
  ], 4))), 256))
106
105
  ]),
@@ -1,10 +1,9 @@
1
- // @unocss-include
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-CuoBjxHd.js";
1
+ import { resolveComponent as f, openBlock as n, createElementBlock as o, createElementVNode as l, Fragment as a, renderList as m, normalizeStyle as w, createTextVNode as C, toDisplayString as c, createBlock as p, withCtx as g, createCommentVNode as y, resolveDynamicComponent as _, mergeProps as j, normalizeClass as z, defineAsyncComponent as v } from "vue";
2
+ import { _ as O } from "./index-DE1eazH3.js";
4
3
  const T = {
5
4
  name: "form-group",
6
5
  components: {
7
- inputItem: w(() => import("./index-CuoBjxHd.js").then((r) => r.c))
6
+ inputItem: v(() => import("./index-DE1eazH3.js").then((r) => r.c))
8
7
  },
9
8
  emits: ["change", "update:modelValue"],
10
9
  props: {
@@ -60,7 +59,7 @@ function N(r, t, e, b, i, u) {
60
59
  l("colgroup", null, [
61
60
  t[1] || (t[1] = l("col", { width: 40 }, null, -1)),
62
61
  (n(!0), o(a, null, m(i.cols, (s) => (n(), o("col", {
63
- style: C({ width: s.width })
62
+ style: w({ width: s.width })
64
63
  }, null, 4))), 256)),
65
64
  t[2] || (t[2] = l("col", { width: 40 }, null, -1))
66
65
  ]),
@@ -69,25 +68,25 @@ function N(r, t, e, b, i, u) {
69
68
  t[4] || (t[4] = l("th", null, null, -1)),
70
69
  (n(!0), o(a, null, m(i.cols, (s) => (n(), o("th", I, [
71
70
  l("div", B, [
72
- _(p(s.title) + " ", 1),
73
- s.info ? (n(), c(V, {
71
+ C(c(s.title) + " ", 1),
72
+ s.info ? (n(), p(V, {
74
73
  key: 0,
75
74
  content: s.info,
76
75
  placement: "bottom",
77
76
  effect: "light"
78
77
  }, {
79
- default: y(() => [...t[3] || (t[3] = [
78
+ default: g(() => [...t[3] || (t[3] = [
80
79
  l("i", { class: "i-ri-question-line op-70" }, null, -1)
81
80
  ])]),
82
81
  _: 1
83
- }, 8, ["content"])) : g("", !0)
82
+ }, 8, ["content"])) : y("", !0)
84
83
  ])
85
84
  ]))), 256)),
86
85
  t[5] || (t[5] = l("th", { align: "right" }, null, -1))
87
86
  ])
88
87
  ]),
89
- (n(), c(j(i.limit > 1 ? "a-draggable" : "span"), z({ tag: "tbody" }, i.limit > 1 ? { filter: ".del", handle: ".sort", list: i.list, onChange: u.change } : {}), {
90
- default: y(() => [
88
+ (n(), p(_(i.limit > 1 ? "a-draggable" : "span"), j({ tag: "tbody" }, i.limit > 1 ? { filter: ".del", handle: ".sort", list: i.list, onChange: u.change } : {}), {
89
+ default: g(() => [
91
90
  (n(!0), o(a, null, m(i.list, (s, h) => (n(), o("tr", null, [
92
91
  t[7] || (t[7] = l("td", null, [
93
92
  l("div", {
@@ -98,7 +97,7 @@ function N(r, t, e, b, i, u) {
98
97
  ])
99
98
  ], -1)),
100
99
  (n(!0), o(a, null, m(i.cols, (d) => (n(), o("td", null, [
101
- (n(), c(x, {
100
+ (n(), p(x, {
102
101
  clearable: d.clearable ?? e.init.clearable ?? !1,
103
102
  cols: i.cols,
104
103
  index: h,
@@ -124,13 +123,13 @@ function N(r, t, e, b, i, u) {
124
123
  ]),
125
124
  i.list.length < i.limit ? (n(), o("div", {
126
125
  key: 0,
127
- class: v(["add flex justify-center items-center info-hide", { "add-small": e.init.size === "small" }]),
126
+ class: z(["add flex justify-center items-center info-hide", { "add-small": e.init.size === "small" }]),
128
127
  onClick: t[0] || (t[0] = (...s) => u.add && u.add(...s))
129
128
  }, [
130
129
  t[8] || (t[8] = l("i", { class: "i-ri-add-line font-xl" }, null, -1)),
131
130
  t[9] || (t[9] = l("span", null, "添加数据", -1)),
132
- l("span", F, "(" + p(i.list.length) + "/" + p(i.limit) + ")", 1)
133
- ], 2)) : g("", !0)
131
+ l("span", F, "(" + c(i.list.length) + "/" + c(i.limit) + ")", 1)
132
+ ], 2)) : y("", !0)
134
133
  ]);
135
134
  }
136
135
  const U = /* @__PURE__ */ O(T, [["render", N], ["__scopeId", "data-v-5b3688e9"]]);
@@ -1,10 +1,9 @@
1
- // @unocss-include
2
- import { resolveComponent as r, createElementBlock as l, openBlock as i, createVNode as T, 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 $ } from "vue";
3
- import { _ as j } from "./index-CuoBjxHd.js";
4
- const x = {
1
+ import { resolveComponent as r, openBlock as i, createElementBlock as l, createVNode as T, withCtx as f, Fragment as _, renderList as y, createBlock as h, createElementVNode as o, normalizeStyle as V, toDisplayString as b, createCommentVNode as p, createTextVNode as $, defineAsyncComponent as j } from "vue";
2
+ import { _ as x } from "./index-DE1eazH3.js";
3
+ const v = {
5
4
  name: "group-tabs",
6
5
  components: {
7
- inputItem: defineAsyncComponent(() => import("./index-CuoBjxHd.js").then((t) => t.c))
6
+ inputItem: j(() => import("./index-DE1eazH3.js").then((t) => t.c))
8
7
  },
9
8
  emits: ["change", "update:modelValue"],
10
9
  props: {
@@ -50,33 +49,33 @@ const x = {
50
49
  this.list.push({});
51
50
  }
52
51
  }
53
- }, v = { class: "group-tabs" }, w = { class: "input-group-item" }, A = { class: "item" }, O = { class: "input w-full" }, z = { class: "input-item-box" }, C = { class: "input-item-input" }, N = {
52
+ }, 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
53
  key: 0,
55
54
  class: "input-item-info text-3 op-70 pt-xs leading-15"
56
55
  };
57
- function U(t, d, n, W, c, B) {
56
+ function W(t, d, n, B, c, E) {
58
57
  const m = r("inputItem"), g = r("el-tab-pane"), k = r("el-tabs");
59
- return i(), l("div", v, [
58
+ return i(), l("div", w, [
60
59
  T(k, { type: "border-card" }, {
61
60
  default: f(() => [
62
61
  (i(!0), l(_, null, y(c.tabs, (a, s) => (i(), h(g, {
63
62
  label: a.title
64
63
  }, {
65
64
  default: f(() => [
66
- o("div", w, [
67
- o("div", A, [
68
- o("div", O, [
65
+ o("div", A, [
66
+ o("div", O, [
67
+ o("div", z, [
69
68
  (i(!0), l(_, null, y(c.cols, (e) => (i(), l("div", {
70
69
  class: "input-item",
71
70
  style: V({ width: e.inputWidth ? e.inputWidth : "100%" })
72
71
  }, [
73
- o("div", z, [
72
+ o("div", C, [
74
73
  e.title ? (i(), l("div", {
75
74
  key: 0,
76
75
  class: "input-item-title",
77
76
  style: V(`width:${e.labelWidth || n.init.labelWidth};`)
78
77
  }, b(e.title) + ": ", 5)) : p("", !0),
79
- o("div", C, [
78
+ o("div", N, [
80
79
  e.field ? (i(), h(m, {
81
80
  key: 0,
82
81
  modelValue: n.modelValue[a.key || s][e.field],
@@ -92,7 +91,7 @@ function U(t, d, n, W, c, B) {
92
91
  }, null, 8, ["modelValue", "onUpdate:modelValue", "index", "prop"])) : p("", !0)
93
92
  ])
94
93
  ]),
95
- e.info ? (i(), l("div", N, [
94
+ e.info ? (i(), l("div", U, [
96
95
  d[0] || (d[0] = o("i", { class: "i-ri-error-warning-line" }, null, -1)),
97
96
  $(" " + b(e.info), 1)
98
97
  ])) : p("", !0)
@@ -108,7 +107,7 @@ function U(t, d, n, W, c, B) {
108
107
  })
109
108
  ]);
110
109
  }
111
- const S = /* @__PURE__ */ j(x, [["render", U]]);
110
+ const D = /* @__PURE__ */ x(v, [["render", W]]);
112
111
  export {
113
- S as default
112
+ D as default
114
113
  };