dmx-admin-ui 1.2.216 → 1.2.218

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.
@@ -154,21 +154,21 @@ function N(t, o = 0.5) {
154
154
  return t.replace("rgb", "rgba").replace(")", `, ${o})`);
155
155
  if (t.startsWith("#")) {
156
156
  if (t.length === 4) {
157
- const i = parseInt(t[1] + t[1], 16), n = parseInt(t[2] + t[2], 16), l = parseInt(t[3] + t[3], 16);
158
- return `rgba(${i}, ${n}, ${l}, ${o})`;
157
+ const i = parseInt(t[1] + t[1], 16), l = parseInt(t[2] + t[2], 16), a = parseInt(t[3] + t[3], 16);
158
+ return `rgba(${i}, ${l}, ${a}, ${o})`;
159
159
  }
160
160
  if (t.length === 7) {
161
- const i = parseInt(t.slice(1, 3), 16), n = parseInt(t.slice(3, 5), 16), l = parseInt(t.slice(5, 7), 16);
162
- return `rgba(${i}, ${n}, ${l}, ${o})`;
161
+ const i = parseInt(t.slice(1, 3), 16), l = parseInt(t.slice(3, 5), 16), a = parseInt(t.slice(5, 7), 16);
162
+ return `rgba(${i}, ${l}, ${a}, ${o})`;
163
163
  }
164
164
  if (t.length === 9) {
165
- const i = parseInt(t.slice(1, 3), 16), n = parseInt(t.slice(3, 5), 16), l = parseInt(t.slice(5, 7), 16), p = parseInt(t.slice(7, 9), 16) / 255;
166
- return `rgba(${i}, ${n}, ${l}, ${p * o})`;
165
+ const i = parseInt(t.slice(1, 3), 16), l = parseInt(t.slice(3, 5), 16), a = parseInt(t.slice(5, 7), 16), p = parseInt(t.slice(7, 9), 16) / 255;
166
+ return `rgba(${i}, ${l}, ${a}, ${p * o})`;
167
167
  }
168
168
  }
169
169
  return t.startsWith("hsl") ? t.startsWith("hsla") ? t.replace(/[\d\.]+\)$/g, `${o})`) : t.replace("hsl", "hsla").replace(")", `, ${o})`) : t.startsWith("hsla") ? t.replace(/[\d\.]+\)$/g, `${o})`) : t;
170
170
  }
171
- const d = (t = ["#eee", "#999"]) => (t = Array.isArray(t) ? t : [N(t, 0.7), t], {
171
+ const u = (t = ["#eee", "#999"]) => (t = Array.isArray(t) ? t : [N(t, 0.7), t], {
172
172
  type: "linear",
173
173
  x: 0,
174
174
  x2: 0,
@@ -187,36 +187,36 @@ const d = (t = ["#eee", "#999"]) => (t = Array.isArray(t) ? t : [N(t, 0.7), t],
187
187
  }), q = (t = -1) => {
188
188
  const o = $store.theme + $store.dark;
189
189
  if (!b[o]) {
190
- const i = $store.theme, n = {
190
+ const i = $store.theme, l = {
191
191
  yellow: "#f59e0b",
192
192
  green: "#22c55e",
193
193
  purple: "#f43f5e",
194
194
  blue: "#3b82f6",
195
195
  red: "#f2140d"
196
- }, l = {
196
+ }, a = {
197
197
  yellow: "#eedd78",
198
198
  green: "#91ca8c",
199
199
  purple: "#e69d87",
200
200
  blue: "#73b9bc",
201
201
  red: "#dd6b66"
202
202
  };
203
- delete l[i], delete n[i];
204
- const p = [d($theme("primary"))];
203
+ delete a[i], delete l[i];
204
+ const p = [u($theme("primary"))];
205
205
  if ($store.dark) {
206
- for (const f in l)
207
- p.push(d(l[f]));
208
- for (const f in n)
209
- p.push(d(n[f]));
206
+ for (const y in a)
207
+ p.push(u(a[y]));
208
+ for (const y in l)
209
+ p.push(u(l[y]));
210
210
  } else {
211
- for (const f in n)
212
- p.push(d(n[f]));
213
- for (const f in l)
214
- p.push(d(l[f]));
211
+ for (const y in l)
212
+ p.push(u(l[y]));
213
+ for (const y in a)
214
+ p.push(u(a[y]));
215
215
  }
216
216
  b[o] = p;
217
217
  }
218
218
  return t > -1 ? b[o][t] : b[o];
219
- }, V = { class: "echarts" }, F = { class: "chart-slot" }, Z = /* @__PURE__ */ W({
219
+ }, V = { class: "echarts" }, F = { class: "chart-slot" }, U = /* @__PURE__ */ W({
220
220
  __name: "chart",
221
221
  props: {
222
222
  init: {
@@ -233,10 +233,10 @@ const d = (t = ["#eee", "#999"]) => (t = Array.isArray(t) ? t : [N(t, 0.7), t],
233
233
  }
234
234
  },
235
235
  setup(t) {
236
- const o = t, i = h(null), n = h(!0), l = h(null), p = () => {
236
+ const o = t, i = h(null), l = h(!0), a = h(null), p = () => {
237
237
  const r = $store.dark ? P : {};
238
238
  return r.color = q(), r;
239
- }, f = {
239
+ }, y = {
240
240
  type: "bar",
241
241
  yAxisIndex: 0,
242
242
  itemStyle: {
@@ -250,29 +250,33 @@ const d = (t = ["#eee", "#999"]) => (t = Array.isArray(t) ? t : [N(t, 0.7), t],
250
250
  s?.[0] && typeof s?.[0] == "object" && !Array.isArray(s[0]) && (r = { ...r, ...s[0] });
251
251
  const { type: c = "line" } = r;
252
252
  let e = r || {};
253
- if (e.tooltip === void 0 && (e.tooltip = { trigger: "axis" }), e.mini)
254
- return e.grid = e.grid || { left: 10, right: 10, bottom: 0, top: 10 }, e.xAxis = {
253
+ if (e.tooltip === void 0 && (e.tooltip = { trigger: "axis" }), e.mini) {
254
+ const n = e.grid || { left: 0, right: 0, bottom: 0, top: 10 };
255
+ return e.xAxis = {
255
256
  show: !1,
256
- data: Array.isArray(s) ? s.slice(1).map((a) => a[0]) : Object.keys(s)
257
+ boundaryGap: !1,
258
+ data: Array.isArray(s) ? s.slice(1).map((f) => f[0]) : Object.keys(s)
257
259
  }, typeof e.color == "string" ? e.color = [e.color] : typeof e.color == "number" && (e.color = [p().color[e.color]]), e.yAxis = { type: "value", show: !1 }, c == "line" ? e.series = {
258
260
  type: "line",
259
261
  areaStyle: {},
260
262
  smooth: !0
261
- } : e.series = {
262
- type: "bar"
263
- }, delete e.mini, e.series.data = Array.isArray(s) ? s.slice(1).map((a) => a[1]) : Object.values(s), e;
263
+ } : (n.left = n.left + 15, n.right = n.right + 15, e.series = {
264
+ type: "bar",
265
+ barWidth: "30"
266
+ }), delete e.mini, e.grid = n, e.series.data = Array.isArray(s) ? s.slice(1).map((f) => f[1]) : Object.values(s), e;
267
+ }
264
268
  if (e.grid === void 0 && (e.grid = { top: 0, left: 0, right: 0, bottom: 80 }), e.legend === void 0 && (e.legend = {}), e.xAxis === void 0 && (e.xAxis = { type: "category" }), e.yAxis === void 0 && (e.yAxis = {}), e.series === void 0) {
265
- const a = [];
266
- s[0].forEach((y, u) => {
267
- if (u > 0) {
268
- const O = (typeof y == "object" ? y.type : Array.isArray(c) ? c[u - 1] : c) === "bar" ? f : C;
269
- y?.yAxisIndex && (e.yAxis = [{}, {}]), a.push({ ...O, ...typeof y == "object" ? y : {} });
269
+ const n = [];
270
+ s[0].forEach((f, d) => {
271
+ if (d > 0) {
272
+ const O = (typeof f == "object" ? f.type : Array.isArray(c) ? c[d - 1] : c) === "bar" ? y : C;
273
+ f?.yAxisIndex && (e.yAxis = [{}, {}]), n.push({ ...O, ...typeof f == "object" ? f : {} });
270
274
  }
271
- }), e.series = a;
275
+ }), e.series = n;
272
276
  }
273
- return typeof s == "object" && (s[0] = s[0].map((a) => typeof a == "object" ? a.name : a), e.dataset = {
277
+ return typeof s == "object" && (s[0] = s[0].map((n) => typeof n == "object" ? n.name : n), e.dataset = {
274
278
  source: s
275
- }), console.log("series", e), e;
279
+ }), e;
276
280
  }, v = (r) => {
277
281
  o.init.type == "pie" ? x(r) : o.init.type == "map" ? j(r) : I(r);
278
282
  }, x = (r) => {
@@ -317,8 +321,8 @@ const d = (t = ["#eee", "#999"]) => (t = Array.isArray(t) ? t : [N(t, 0.7), t],
317
321
  else if (!s.series.data.length && typeof r == "object") {
318
322
  for (const e in r)
319
323
  if (Object.prototype.hasOwnProperty.call(r, e)) {
320
- const a = r[e];
321
- s.series.data.push({ value: a, name: e });
324
+ const n = r[e];
325
+ s.series.data.push({ value: n, name: e });
322
326
  }
323
327
  }
324
328
  }
@@ -326,10 +330,10 @@ const d = (t = ["#eee", "#999"]) => (t = Array.isArray(t) ? t : [N(t, 0.7), t],
326
330
  }, j = async (r) => {
327
331
  let s = 0;
328
332
  r && (s = r[0].value);
329
- let c = o.init, e = c.adcode || 1e5, a = { 1e5: "china" }[e] || "map";
330
- const y = await $req.query(
333
+ let c = o.init, e = c.adcode || 1e5, n = { 1e5: "china" }[e] || "map";
334
+ const f = await $req.query(
331
335
  `https://geo.datav.aliyun.com/areas_v3/bound/${e}_full.json`
332
- ), u = m.init(l.value);
336
+ ), d = m.init(a.value);
333
337
  c.visualMap = {
334
338
  text: ["高", "低"],
335
339
  min: 0,
@@ -342,7 +346,7 @@ const d = (t = ["#eee", "#999"]) => (t = Array.isArray(t) ? t : [N(t, 0.7), t],
342
346
  }
343
347
  }, c.series = {
344
348
  type: "map",
345
- map: a,
349
+ map: n,
346
350
  label: {
347
351
  show: !0,
348
352
  color: "#999",
@@ -352,7 +356,7 @@ const d = (t = ["#eee", "#999"]) => (t = Array.isArray(t) ? t : [N(t, 0.7), t],
352
356
  areaColor: "#ecf5ff",
353
357
  borderColor: "#dddddd"
354
358
  }
355
- }, c.series.data = r, m.registerMap(a, y), u.setOption(c), i.value = u, n.value = !1;
359
+ }, c.series.data = r, m.registerMap(n, f), d.setOption(c), i.value = d, l.value = !1;
356
360
  }, I = (r) => {
357
361
  if (r[0] === "pie" || r?.[0]?.type === "pie")
358
362
  return x(r);
@@ -362,8 +366,8 @@ const d = (t = ["#eee", "#999"]) => (t = Array.isArray(t) ? t : [N(t, 0.7), t],
362
366
  } catch {
363
367
  }
364
368
  }, A = () => {
365
- const r = m.init(l.value, p(), { renderer: "svg" });
366
- r.setOption(g.value), i.value = r, n.value = !1;
369
+ const r = m.init(a.value, p(), { renderer: "svg" });
370
+ r.setOption(g.value), i.value = r, l.value = !1;
367
371
  };
368
372
  L(() => [$store.dark, $store.theme], () => {
369
373
  i.value && i.value.setTheme(p());
@@ -379,19 +383,19 @@ const d = (t = ["#eee", "#999"]) => (t = Array.isArray(t) ? t : [N(t, 0.7), t],
379
383
  const c = E("loading");
380
384
  return S(), k("div", V, [
381
385
  M((S(), k("div", F, [
382
- w(n) ? T("", !0) : R(r.$slots, "default", { key: 0 })
386
+ w(l) ? T("", !0) : R(r.$slots, "default", { key: 0 })
383
387
  ])), [
384
- [c, w(n)]
388
+ [c, w(l)]
385
389
  ]),
386
390
  B("div", {
387
391
  class: "chart-box",
388
392
  ref_key: "echartsRef",
389
- ref: l
393
+ ref: a
390
394
  }, null, 512)
391
395
  ]);
392
396
  };
393
397
  }
394
398
  });
395
399
  export {
396
- Z as default
400
+ U as default
397
401
  };
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as xr, openBlock as Ri, createElementBlock as wl, createVNode as ye, withCtx as le, createElementVNode as ie, createTextVNode as Ve, createBlock as Bl, toDisplayString as El, normalizeClass as to } from "vue";
2
- import { u as Al, m as xl, _ as Fl } from "./index-CJ8Azqo0.js";
2
+ import { u as Al, m as xl, _ as Fl } from "./index-Cp82TOiB.js";
3
3
  var eo;
4
4
  typeof global > "u" ? ("ActiveXObject" in window && console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
5
5
  Sorry, wangEditor V5+ versions do not support IE browser.`), Hi(), zi()) : global && (!((eo = global.navigator) === null || eo === void 0) && eo.userAgent.match("QQBrowser")) && (Hi(), zi());
@@ -9274,10 +9274,15 @@ const qh = {
9274
9274
  const r = sh({
9275
9275
  selector: this.$refs.wangEditor,
9276
9276
  config: t,
9277
- html: typeof this.modelValue == "string" ? this.modelValue : "",
9278
9277
  mode: "default",
9279
9278
  readonly: this.disabled
9280
- }), n = {
9279
+ });
9280
+ if (typeof this.modelValue == "string")
9281
+ try {
9282
+ r.setHtml(this.modelValue);
9283
+ } catch {
9284
+ }
9285
+ const n = {
9281
9286
  excludeKeys: [
9282
9287
  "group-more-style",
9283
9288
  "fontSize",
@@ -1,9 +1,9 @@
1
1
  import { resolveComponent as k, openBlock as s, createElementBlock as n, normalizeClass as p, createBlock as f, resolveDynamicComponent as v, normalizeProps as x, guardReactiveProps as V, withCtx as z, Fragment as m, renderList as g, createElementVNode as o, createCommentVNode as u, normalizeStyle as b, toDisplayString as c, createTextVNode as C, defineAsyncComponent as T } from "vue";
2
- import { _ as j } from "./index-CJ8Azqo0.js";
2
+ import { _ as j } from "./index-Cp82TOiB.js";
3
3
  const O = {
4
4
  name: "form-group",
5
5
  components: {
6
- inputItem: T(() => import("./input-item-DTLPPJQX.js"))
6
+ inputItem: T(() => import("./input-item-BgBUkKaL.js"))
7
7
  },
8
8
  emits: ["change", "update:modelValue"],
9
9
  props: {
@@ -1,9 +1,9 @@
1
1
  import { resolveComponent as f, openBlock as n, createElementBlock as o, createElementVNode as e, Fragment as a, renderList as c, normalizeStyle as w, createTextVNode as C, toDisplayString as h, createBlock as p, withCtx as g, createCommentVNode as y, resolveDynamicComponent as _, mergeProps as v, normalizeClass as j, defineAsyncComponent as z } from "vue";
2
- import { _ as O } from "./index-CJ8Azqo0.js";
2
+ import { _ as O } from "./index-Cp82TOiB.js";
3
3
  const T = {
4
4
  name: "form-group",
5
5
  components: {
6
- inputItem: z(() => import("./input-item-DTLPPJQX.js"))
6
+ inputItem: z(() => import("./input-item-BgBUkKaL.js"))
7
7
  },
8
8
  emits: ["change", "update:modelValue"],
9
9
  props: {
@@ -1,9 +1,9 @@
1
1
  import { resolveComponent as r, openBlock as i, createElementBlock as l, createVNode as k, withCtx as f, Fragment as _, renderList as b, createBlock as h, createElementVNode as o, normalizeStyle as V, toDisplayString as y, createCommentVNode as p, createTextVNode as T, defineAsyncComponent as j } from "vue";
2
- import { _ as x } from "./index-CJ8Azqo0.js";
2
+ import { _ as x } from "./index-Cp82TOiB.js";
3
3
  const w = {
4
4
  name: "group-tabs",
5
5
  components: {
6
- inputItem: j(() => import("./input-item-DTLPPJQX.js"))
6
+ inputItem: j(() => import("./input-item-BgBUkKaL.js"))
7
7
  },
8
8
  emits: ["change", "update:modelValue"],
9
9
  props: {
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as d, openBlock as o, createElementBlock as a, createVNode as y, withCtx as u, createElementVNode as n, createBlock as f, createTextVNode as c, createCommentVNode as r, toDisplayString as b, Fragment as g, renderList as k, normalizeStyle as V, normalizeClass as j, defineAsyncComponent as z } from "vue";
2
- import { _ as A } from "./index-CJ8Azqo0.js";
2
+ import { _ as A } from "./index-Cp82TOiB.js";
3
3
  function U(e, t) {
4
4
  if (t <= 0 || t >= e.length) return [...e];
5
5
  const i = [...e];
@@ -13,7 +13,7 @@ function O(e, t) {
13
13
  const B = {
14
14
  name: "group-tabs-plus",
15
15
  components: {
16
- inputItem: z(() => import("./input-item-DTLPPJQX.js"))
16
+ inputItem: z(() => import("./input-item-BgBUkKaL.js"))
17
17
  },
18
18
  emits: ["change", "update:modelValue"],
19
19
  props: {