jmash-core 0.1.35 → 0.1.36

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,7 @@
1
1
  import { defineComponent as d, reactive as v, toRefs as V, resolveComponent as n, createElementBlock as c, openBlock as x, createVNode as e, withCtx as l, createTextVNode as r, createElementVNode as o, withModifiers as C, unref as u, isRef as y } from "vue";
2
2
  import z from "./assets/a6029a1ec37b99c2.gif";
3
3
  import { useRouter as N } from "vue-router";
4
- import { f as R } from "./index-Bb07LNei.mjs";
4
+ import { f as R } from "./index-DxW7kRlR.mjs";
5
5
  const B = { class: "errPage-container" }, E = { class: "list-unstyled" }, P = { class: "link-type" }, j = ["src"], G = /* @__PURE__ */ d({
6
6
  __name: "401",
7
7
  setup(I) {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as i, createElementBlock as a, openBlock as l, createElementVNode as s, createStaticVNode as r, createTextVNode as c, toDisplayString as d } from "vue";
2
2
  import n from "./assets/53044ba5490eb488.png";
3
3
  import e from "./assets/1fa4b4a419330812.png";
4
- import { f as _ } from "./index-Bb07LNei.mjs";
4
+ import { f as _ } from "./index-DxW7kRlR.mjs";
5
5
  const p = { class: "wscn-http404-container" }, m = { class: "wscn-http404" }, h = { class: "bullshit" }, f = { class: "bullshit__headline" }, u = {
6
6
  name: "Page404"
7
7
  }, b = /* @__PURE__ */ i({
@@ -1,6 +1,6 @@
1
1
  import { createElementBlock as g, openBlock as f, createElementVNode as d, defineComponent as y, ref as x, onMounted as _, markRaw as v, onActivated as w, resolveComponent as c, createBlock as b, withCtx as r, normalizeStyle as C, normalizeClass as L, createTextVNode as S, createVNode as s } from "vue";
2
2
  import { L as m, i as k } from "./index-DVI4ph38.mjs";
3
- import { f as E } from "./index-Bb07LNei.mjs";
3
+ import { f as E } from "./index-DxW7kRlR.mjs";
4
4
  const z = {
5
5
  viewBox: "0 0 1024 1024",
6
6
  width: "1.2em",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as y, resolveComponent as d, createElementBlock as c, openBlock as l, createElementVNode as s, Fragment as x, renderList as k, unref as _, createVNode as g, toDisplayString as C, withCtx as w } from "vue";
2
- import { a as p, x as B, j as R, f as q } from "./index-Bb07LNei.mjs";
2
+ import { a as p, x as B, j as R, f as q } from "./index-DxW7kRlR.mjs";
3
3
  import { useRoute as A, useRouter as L } from "vue-router";
4
4
  const N = { class: "organ-container" }, O = { class: "organ-content" }, S = ["onClick"], U = ["src"], b = { style: { "margin-right": "auto" } }, j = /* @__PURE__ */ v({
5
5
  __name: "index",
@@ -1,7 +1,7 @@
1
1
  import { _ as A } from "./RadarChart.vue_vue_type_script_setup_true_lang-Dmh0_OQ4.mjs";
2
2
  import { _ as Z } from "./PieChart.vue_vue_type_script_setup_true_lang-Bw7ozgOv.mjs";
3
- import F from "./BarChart-B9ZIV9n9.mjs";
4
- import { f as B, j as G, a as H, y as f, z as p, _ as R } from "./index-Bb07LNei.mjs";
3
+ import F from "./BarChart-VqO5Y2qu.mjs";
4
+ import { f as B, j as G, a as H, y as f, z as p, _ as R } from "./index-DxW7kRlR.mjs";
5
5
  import { createElementBlock as y, openBlock as C, createElementVNode as t, defineComponent as q, computed as k, ref as x, resolveComponent as d, createVNode as s, withCtx as n, unref as l, toDisplayString as r, createTextVNode as u } from "vue";
6
6
  const J = {}, K = {
7
7
  href: "https://github.com/haoxianrui",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, resolveComponent as n, createElementBlock as s, openBlock as a, createVNode as t, unref as c, withCtx as d, createElementVNode as _ } from "vue";
2
- import { u as i, aK as p, f as l } from "./index-Bb07LNei.mjs";
2
+ import { u as i, aK as p, f as l } from "./index-DxW7kRlR.mjs";
3
3
  const m = { class: "register-container" }, f = /* @__PURE__ */ r({
4
4
  __name: "index",
5
5
  setup(u) {
@@ -1,4 +1,4 @@
1
- import { v as k, u as _, a as G, w as J, k as X, l as Y, F as Z, H as ee, A as te, e as le, f as oe } from "./index-Bb07LNei.mjs";
1
+ import { v as k, u as _, a as G, w as J, k as X, l as Y, F as Z, H as ee, A as te, e as le, f as oe } from "./index-DxW7kRlR.mjs";
2
2
  import { defineComponent as se, ref as d, computed as re, watchEffect as ae, resolveComponent as c, createElementBlock as ne, openBlock as D, createElementVNode as l, createVNode as o, withDirectives as Q, createBlock as ie, createCommentVNode as ue, unref as V, withCtx as u, normalizeStyle as de, vShow as j, withKeys as z, withModifiers as ce, createTextVNode as pe, toDisplayString as B, normalizeClass as me } from "vue";
3
3
  import fe from "./assets/0cda52992278af9e.png";
4
4
  import { useI18n as ve } from "vue-i18n";
@@ -400,9 +400,9 @@ const pn = $r({
400
400
  APP_TIMEOUT: 6e4
401
401
  }), cs = /* @__PURE__ */ new Map(), b_ = [];
402
402
  let U1 = `${Ot.APP_API_URL}v1/file/path/pc`;
403
- const Vb = () => import("./index-Bc6XbTe4.mjs");
403
+ const Vb = () => import("./index-p5bxR_XZ.mjs");
404
404
  cs.set("Layout", Vb);
405
- const $b = /* @__PURE__ */ Object.assign({ "./views/change-organ/index.vue": () => import("./index-DNQXZm88.mjs"), "./views/dashboard/components/BarChart.vue": () => import("./BarChart-B9ZIV9n9.mjs"), "./views/dashboard/components/FunnelChart.vue": () => import("./FunnelChart-Bdwa_Dl7.mjs"), "./views/dashboard/components/PieChart.vue": () => import("./PieChart-mjcVGXoE.mjs"), "./views/dashboard/components/RadarChart.vue": () => import("./RadarChart-Dkl7lCAh.mjs"), "./views/dashboard/index.vue": () => import("./index-GBjNAvVR.mjs"), "./views/error-page/401.vue": () => import("./401-DRuUSg3F.mjs"), "./views/error-page/404.vue": () => import("./404-4C6xYEP5.mjs"), "./views/login/components/types.vue": () => import("./types-MfP9obKu.mjs"), "./views/login/index.vue": () => import("./index-CVbEWSTv.mjs"), "./views/my/profile.vue": () => import("./profile-F3Og3Ps8.mjs"), "./views/my/runAs.vue": () => import("./runAs-C3a9lRKM.mjs"), "./views/my/updatePwd.vue": () => import("./updatePwd-DHfb7-SA.mjs"), "./views/redirect/index.vue": () => import("./index-JBmY6Vt0.mjs"), "./views/register/index.vue": () => import("./index-BK28ZYi1.mjs") });
405
+ const $b = /* @__PURE__ */ Object.assign({ "./views/change-organ/index.vue": () => import("./index-B4CuBGI6.mjs"), "./views/dashboard/components/BarChart.vue": () => import("./BarChart-VqO5Y2qu.mjs"), "./views/dashboard/components/FunnelChart.vue": () => import("./FunnelChart-Bdwa_Dl7.mjs"), "./views/dashboard/components/PieChart.vue": () => import("./PieChart-mjcVGXoE.mjs"), "./views/dashboard/components/RadarChart.vue": () => import("./RadarChart-Dkl7lCAh.mjs"), "./views/dashboard/index.vue": () => import("./index-BFsrmHkF.mjs"), "./views/error-page/401.vue": () => import("./401-BwzFJOyT.mjs"), "./views/error-page/404.vue": () => import("./404-CWFC0awi.mjs"), "./views/login/components/types.vue": () => import("./types-g8lRiTDX.mjs"), "./views/login/index.vue": () => import("./index-CWiHb4n1.mjs"), "./views/my/profile.vue": () => import("./profile-BWVyKwnm.mjs"), "./views/my/runAs.vue": () => import("./runAs-BrA1-GK8.mjs"), "./views/my/updatePwd.vue": () => import("./updatePwd-CT4tSIyO.mjs"), "./views/redirect/index.vue": () => import("./index-JBmY6Vt0.mjs"), "./views/register/index.vue": () => import("./index-BeA383Mm.mjs") });
406
406
  jb($b, 7);
407
407
  function jb(e, t) {
408
408
  for (const r in e) {
@@ -665,7 +665,7 @@ function nC(e) {
665
665
  data: e
666
666
  });
667
667
  }
668
- const Gs = () => import("./index-Bc6XbTe4.mjs"), aC = () => import("./index-CVbEWSTv.mjs"), oC = () => import("./index-BK28ZYi1.mjs"), iC = () => import("./types-MfP9obKu.mjs"), sC = () => import("./profile-F3Og3Ps8.mjs"), uC = () => import("./401-DRuUSg3F.mjs"), lC = () => import("./404-4C6xYEP5.mjs"), cC = () => import("./index-GBjNAvVR.mjs"), dC = () => import("./index-JBmY6Vt0.mjs"), fC = () => import("./index-DNQXZm88.mjs"), A_ = [
668
+ const Gs = () => import("./index-p5bxR_XZ.mjs"), aC = () => import("./index-CWiHb4n1.mjs"), oC = () => import("./index-BeA383Mm.mjs"), iC = () => import("./types-g8lRiTDX.mjs"), sC = () => import("./profile-BWVyKwnm.mjs"), uC = () => import("./401-BwzFJOyT.mjs"), lC = () => import("./404-CWFC0awi.mjs"), cC = () => import("./index-BFsrmHkF.mjs"), dC = () => import("./index-JBmY6Vt0.mjs"), fC = () => import("./index-B4CuBGI6.mjs"), A_ = [
669
669
  {
670
670
  path: "/redirect",
671
671
  component: Gs,
@@ -19417,22 +19417,22 @@ const E0 = kV(Va, "$message"), D$ = ["src"], A$ = /* @__PURE__ */ M({
19417
19417
  default: "resize"
19418
19418
  }
19419
19419
  },
19420
- emits: ["imageSrc", "imageUrl"],
19420
+ emits: ["imageSrc", "uploadFile"],
19421
19421
  setup(e, { emit: t }) {
19422
19422
  const r = Be(Lt.uploadUrl()), n = Be(Lt.authHeader()), a = e, { pictureUrl: o } = x_(a), i = Be("");
19423
19423
  i.value = o.value;
19424
19424
  const s = t, c = (l, p) => {
19425
- l.fileSrc && (E0({
19426
- message: "上传成功",
19427
- type: "success"
19428
- }), i.value = l.fileSrc, s("imageSrc", p), s("imageUrl", i.value));
19425
+ l.fileSrc && (E0({ message: "上传成功", type: "success" }), i.value = l.fileSrc, s("imageSrc", l.fileSrc), s("uploadFile", p));
19429
19426
  };
19430
19427
  Fo(() => {
19431
19428
  i.value = a.pictureUrl;
19432
19429
  });
19433
- const u = it(
19434
- () => Lt.imageUrl(i.value, a.width, a.height, a.type)
19435
- );
19430
+ const u = it(() => a.pictureUrl.startsWith("http://") || a.pictureUrl.startsWith("https://") ? i.value : Lt.imageUrl(
19431
+ i.value,
19432
+ a.width,
19433
+ a.height,
19434
+ a.type
19435
+ ));
19436
19436
  return (l, p) => {
19437
19437
  const d = We("el-icon"), f = We("el-upload");
19438
19438
  return O(), mt(f, {
@@ -1,10 +1,10 @@
1
- import { u as ne, _ as de, E as Ge, a as ue, s as Re, v as Ye, G as xe, b as ke, c as Je, d as Ze, e as et, f as X, S as tt, g as Te, h as le, D as ge, i as nt, j as ot, k as at, l as pe, m as Ne, r as qe, n as _e, T as ye, o as lt, p as it, q as rt, t as ve, w as st } from "./index-Bb07LNei.mjs";
1
+ import { u as ne, _ as de, E as Ge, a as ue, s as Re, v as Ye, G as xe, b as ke, c as Je, d as Ze, e as et, f as X, S as tt, g as Te, h as le, D as ge, i as nt, j as ot, k as at, l as pe, m as Ne, r as qe, n as _e, T as ye, o as lt, p as it, q as rt, t as ve, w as st } from "./index-DxW7kRlR.mjs";
2
2
  import { defineComponent as B, ref as I, resolveComponent as w, createBlock as V, openBlock as f, withCtx as p, createElementVNode as k, createVNode as d, createElementBlock as S, Fragment as J, renderList as fe, unref as i, createTextVNode as R, toDisplayString as M, useModel as Ae, mergeModels as Se, reactive as ct, resolveDirective as ut, withDirectives as Be, computed as z, createCommentVNode as P, isRef as ae, watch as re, onBeforeMount as dt, TransitionGroup as ft, withModifiers as me, normalizeClass as G, Transition as Oe, KeepAlive as mt, resolveDynamicComponent as Ee, getCurrentInstance as pt, nextTick as De, onMounted as ze, normalizeStyle as vt, vShow as _t, normalizeProps as ht, guardReactiveProps as gt, renderSlot as bt, watchEffect as Ct } from "vue";
3
3
  import { useRoute as he, useRouter as Me } from "vue-router";
4
- import { _ as wt } from "./updatePwd.vue_vue_type_script_setup_true_lang-CzYovQjJ.mjs";
4
+ import { _ as wt } from "./updatePwd.vue_vue_type_script_setup_true_lang-BMQgiB-Q.mjs";
5
5
  import { useI18n as Pe } from "vue-i18n";
6
6
  import { ElMessage as Fe } from "element-plus";
7
- import { _ as yt, E as Vt } from "./runAs.vue_vue_type_script_setup_true_lang-CpwxfXNP.mjs";
7
+ import { _ as yt, E as Vt } from "./runAs.vue_vue_type_script_setup_true_lang-DlZxBtA9.mjs";
8
8
  import { storeToRefs as xt } from "pinia";
9
9
  const kt = /* @__PURE__ */ B({
10
10
  __name: "index",
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { b4 as t, b5 as r, bx as o, b6 as i, bv as b, b8 as n, I as u, bt as g, bu as d, F as l, bp as p, bq as c, br as m, bs as P, bw as S, aK as v, by as E, S as h, bh as y, aV as A, aQ as M, aR as R, aL as f, aZ as k, e as D, aX as L, a_ as C, aN as H, l as U, aM as I, b7 as V, j as w, bd as x, a$ as z, A as B, aY as F, b0 as O, m as Q, aP as T, bc as W, ba as j, be as q, aO as K, x as N, H as X, bb as Y, s as Z, bn as _, r as $, bf as G, aI as J, b9 as aa, bi as ea, aS as sa, bo as ta, aW as ra, aT as oa, aU as ia, u as ba, bj as na, bm as ua, n as ga, bk as da, h as la, bg as pa, g as ca, a as ma, bl as Pa, b2 as Sa, d as va, b3 as Ea, c as ha, b1 as ya, v as Aa } from "./index-Bb07LNei.mjs";
1
+ import { b4 as t, b5 as r, bx as o, b6 as i, bv as b, b8 as n, I as u, bt as g, bu as d, F as l, bp as p, bq as c, br as m, bs as P, bw as S, aK as v, by as E, S as h, bh as y, aV as A, aQ as M, aR as R, aL as f, aZ as k, e as D, aX as L, a_ as C, aN as H, l as U, aM as I, b7 as V, j as w, bd as x, a$ as z, A as B, aY as F, b0 as O, m as Q, aP as T, bc as W, ba as j, be as q, aO as K, x as N, H as X, bb as Y, s as Z, bn as _, r as $, bf as G, aI as J, b9 as aa, bi as ea, aS as sa, bo as ta, aW as ra, aT as oa, aU as ia, u as ba, bj as na, bm as ua, n as ga, bk as da, h as la, bg as pa, g as ca, a as ma, bl as Pa, b2 as Sa, d as va, b3 as Ea, c as ha, b1 as ya, v as Aa } from "./index-DxW7kRlR.mjs";
2
2
  import "element-plus";
3
3
  export {
4
4
  t as BizDict,
@@ -1,7 +1,7 @@
1
1
  var B = Object.defineProperty;
2
2
  var z = (m, p, i) => p in m ? B(m, p, { enumerable: !0, configurable: !0, writable: !0, value: i }) : m[p] = i;
3
3
  var y = (m, p, i) => z(m, typeof p != "symbol" ? p + "" : p, i);
4
- import { I as F, a as K, J as T, K as H, L as Q, M as W, N as X, f as Z } from "./index-Bb07LNei.mjs";
4
+ import { I as F, a as K, J as T, K as H, L as Q, M as W, N as X, f as Z } from "./index-DxW7kRlR.mjs";
5
5
  import { defineComponent as x, ref as V, reactive as ee, resolveComponent as n, createElementBlock as k, openBlock as c, createVNode as t, unref as s, withCtx as a, createElementVNode as le, Fragment as N, renderList as $, createBlock as h, createCommentVNode as J, createTextVNode as te, toDisplayString as se } from "vue";
6
6
  import { ElMessage as ae } from "element-plus";
7
7
  class U {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./runAs.vue_vue_type_script_setup_true_lang-CpwxfXNP.mjs";
1
+ import { _ as f } from "./runAs.vue_vue_type_script_setup_true_lang-DlZxBtA9.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { O as Yn, P as jn, Q as hn, R as Xn, U as $t, V as mn, W as yt, X as gn, Y as Ht, Z as qn, $ as ye, a0 as Vt, a1 as Zn, a2 as et, a3 as de, a4 as oe, a5 as Jn, a6 as Ie, a7 as Qn, a8 as bn, a9 as eo, aa as to, ab as no, ac as oo, ad as rt, ae as Be, af as Le, ag as fe, ah as ao, ai as ro, aj as so, ak as io, al as ie, am as We, an as qe, ao as yn, ap as Et, aq as wt, ar as lo, as as ft, at as uo, au as zt, av as Dt, aw as co, ax as fo, ay as vo, az as po, aA as ho, aB as mo, aC as Ut, aD as Kt, aE as Wt, aF as go, a as _e, aG as bo, aH as yo, _ as Eo, aI as wo, E as So } from "./index-Bb07LNei.mjs";
1
+ import { O as Yn, P as jn, Q as hn, R as Xn, U as $t, V as mn, W as yt, X as gn, Y as Ht, Z as qn, $ as ye, a0 as Vt, a1 as Zn, a2 as et, a3 as de, a4 as oe, a5 as Jn, a6 as Ie, a7 as Qn, a8 as bn, a9 as eo, aa as to, ab as no, ac as oo, ad as rt, ae as Be, af as Le, ag as fe, ah as ao, ai as ro, aj as so, ak as io, al as ie, am as We, an as qe, ao as yn, ap as Et, aq as wt, ar as lo, as as ft, at as uo, au as zt, av as Dt, aw as co, ax as fo, ay as vo, az as po, aA as ho, aB as mo, aC as Ut, aD as Kt, aE as Wt, aF as go, a as _e, aG as bo, aH as yo, _ as Eo, aI as wo, E as So } from "./index-DxW7kRlR.mjs";
2
2
  import { computed as y, getCurrentInstance as Re, inject as ve, unref as d, ref as x, onMounted as pe, watch as Y, toRef as Ze, onUnmounted as Co, shallowRef as Ge, nextTick as D, defineComponent as Q, useAttrs as To, useSlots as En, createElementBlock as L, openBlock as b, normalizeStyle as Je, normalizeClass as S, createCommentVNode as I, Fragment as Ye, createElementVNode as H, renderSlot as G, createBlock as A, withCtx as B, resolveDynamicComponent as K, mergeProps as vt, withModifiers as ke, toDisplayString as W, onBeforeUnmount as Pe, provide as wn, Text as ko, reactive as St, createVNode as J, h as Io, watchEffect as Mo, isRef as Ao, onScopeDispose as xo, markRaw as pt, toRefs as Bo, resolveComponent as ge, Transition as No, withDirectives as Me, withKeys as $e, vShow as Ae, createTextVNode as xe, isVNode as Sn, render as Cn, useModel as Lo } from "vue";
3
3
  function Ro(e) {
4
4
  return e;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as y, openBlock as k, createElementVNode as u, defineComponent as E, ref as I, reactive as f, resolveComponent as i, Fragment as F, createVNode as t, withCtx as l, createTextVNode as _, toDisplayString as C } from "vue";
2
- import { A as M, v, a as w, B as $, C as z } from "./index-Bb07LNei.mjs";
2
+ import { A as M, v, a as w, B as $, C as z } from "./index-DxW7kRlR.mjs";
3
3
  const N = {
4
4
  viewBox: "0 0 1024 1024",
5
5
  width: "1.2em",
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-CzYovQjJ.mjs";
1
+ import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-BMQgiB-Q.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as q, ref as v, toRefs as E, reactive as V, resolveComponent as i, createBlock as O, openBlock as A, unref as t, isRef as U, withCtx as s, createVNode as r, createElementVNode as B, createTextVNode as g, toDisplayString as _ } from "vue";
2
2
  import { ElMessage as D } from "element-plus";
3
- import { H as b, aJ as I } from "./index-Bb07LNei.mjs";
3
+ import { H as b, aJ as I } from "./index-DxW7kRlR.mjs";
4
4
  import { useI18n as S } from "vue-i18n";
5
5
  const z = { class: "dialog-footer" }, T = /* @__PURE__ */ q({
6
6
  __name: "updatePwd",
@@ -1,3 +1,4 @@
1
+ import type { UploadFile } from "element-plus";
1
2
  declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
3
  pictureUrl: {
3
4
  type: StringConstructor;
@@ -16,8 +17,8 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
16
17
  default: string;
17
18
  };
18
19
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
- imageSrc: (...args: any[]) => void;
20
- imageUrl: (...args: any[]) => void;
20
+ imageSrc: (imageSrc: string) => void;
21
+ uploadFile: (uploadFile: UploadFile) => void;
21
22
  }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
22
23
  pictureUrl: {
23
24
  type: StringConstructor;
@@ -36,8 +37,8 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
36
37
  default: string;
37
38
  };
38
39
  }>> & Readonly<{
39
- onImageSrc?: ((...args: any[]) => any) | undefined;
40
- onImageUrl?: ((...args: any[]) => any) | undefined;
40
+ onImageSrc?: ((imageSrc: string) => any) | undefined;
41
+ onUploadFile?: ((uploadFile: UploadFile) => any) | undefined;
41
42
  }>, {
42
43
  type: string;
43
44
  width: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",