jmash-core 0.1.5 → 0.1.7

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.
Files changed (24) hide show
  1. package/dist/{401-DW_OcVq_.mjs → 401-CbMQI39H.mjs} +1 -1
  2. package/dist/{404-CFhdvYQu.mjs → 404-0n-IqNmx.mjs} +1 -1
  3. package/dist/{BarChart-DDINGaUs.mjs → BarChart-BQWgIFf1.mjs} +1 -1
  4. package/dist/{index-CHBgNMWK.mjs → index-B4IcgqmS.mjs} +21 -21
  5. package/dist/{index-DcIBMp_4.mjs → index-C2PAWF-x.mjs} +12660 -15008
  6. package/dist/{index-DW26ctUV.mjs → index-CH4t7eUf.mjs} +8 -8
  7. package/dist/{index-B_g1olXE.mjs → index-CMmcrtUF.mjs} +2 -2
  8. package/dist/{index-Eo_jCc-N.mjs → index-fBqPv8RW.mjs} +15 -15
  9. package/dist/index.mjs +41 -41
  10. package/dist/{profile-DBVcRJ-a.mjs → profile-dz6QNsCK.mjs} +4 -4
  11. package/dist/{runAs-CDpPP8yq.mjs → runAs-BDNhz_OG.mjs} +1 -1
  12. package/dist/runAs.vue_vue_type_script_setup_true_lang-9Au-pgg_.mjs +2558 -0
  13. package/dist/style.css +1 -1
  14. package/dist/{types-BKU6V55L.mjs → types-D8cX7Pqr.mjs} +1 -1
  15. package/dist/{updatePwd-DXBUgc9I.mjs → updatePwd-BjIAm-Qp.mjs} +1 -1
  16. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-BRMayNZ3.mjs → updatePwd.vue_vue_type_script_setup_true_lang-DbA5TyjG.mjs} +9 -9
  17. package/dts/src/components/JmashMultiImageUpload/index.vue.d.ts +1 -1
  18. package/dts/src/layout/components/Sidebar/components/SidebarMenuItemTitle.vue.d.ts +1 -1
  19. package/dts/src/views/dashboard/components/BarChart.vue.d.ts +1 -1
  20. package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +1 -1
  21. package/dts/src/views/dashboard/components/PieChart.vue.d.ts +1 -1
  22. package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +1 -1
  23. package/package.json +1 -1
  24. package/dist/runAs.vue_vue_type_script_setup_true_lang-CFbzF4IS.mjs +0 -141
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as I, openBlock as y, createElementVNode as u, defineComponent as B, ref as V, reactive as f, resolveComponent as i, Fragment as D, createVNode as t, withCtx as l, createTextVNode as _, toDisplayString as v } from "vue";
2
- import { v as E, b as w, w as N, x as q, y as R } from "./index-DcIBMp_4.mjs";
2
+ import { t as E, b as w, v as N, w as q, x as R } from "./index-C2PAWF-x.mjs";
3
3
  const S = {
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-BRMayNZ3.mjs";
1
+ import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-DbA5TyjG.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,8 +1,8 @@
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 n, createVNode as r, createElementVNode as z, createTextVNode as g, toDisplayString as _ } from "vue";
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 D, withCtx as n, createVNode as r, createElementVNode as U, createTextVNode as g, toDisplayString as _ } from "vue";
2
2
  import { ElMessage as B } from "element-plus";
3
- import { z as b, M as D } from "./index-DcIBMp_4.mjs";
4
- import { useI18n as I } from "vue-i18n";
5
- const S = { class: "dialog-footer" }, G = /* @__PURE__ */ q({
3
+ import { y as b, aD as I } from "./index-C2PAWF-x.mjs";
4
+ import { useI18n as S } from "vue-i18n";
5
+ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ q({
6
6
  __name: "updatePwd",
7
7
  props: {
8
8
  pwdVisible: {
@@ -11,8 +11,8 @@ const S = { class: "dialog-footer" }, G = /* @__PURE__ */ q({
11
11
  }
12
12
  },
13
13
  emits: ["dialogActionChange"],
14
- setup(R, { emit: y }) {
15
- const { t: a } = I(), p = v(), N = R, { pwdVisible: u } = E(N), c = y;
14
+ setup(y, { emit: R }) {
15
+ const { t: a } = S(), p = v(), N = y, { pwdVisible: u } = E(N), c = R;
16
16
  let l = V({
17
17
  encodeOldPwd: "",
18
18
  encodeNewPwd: "",
@@ -33,7 +33,7 @@ const S = { class: "dialog-footer" }, G = /* @__PURE__ */ q({
33
33
  await ((o = p.value) == null ? void 0 : o.validate((e) => {
34
34
  if (e) {
35
35
  let d = b(l.encodeOldPwd), w = b(l.encodeNewPwd);
36
- D(d, w).then((m) => {
36
+ I(d, w).then((m) => {
37
37
  m.status === 200 && (B({
38
38
  message: a("password.successResetPwd"),
39
39
  type: "success"
@@ -52,12 +52,12 @@ const S = { class: "dialog-footer" }, G = /* @__PURE__ */ q({
52
52
  return A(), O(C, {
53
53
  title: "修改密码",
54
54
  modelValue: t(u),
55
- "onUpdate:modelValue": e[3] || (e[3] = (s) => U(u) ? u.value = s : null),
55
+ "onUpdate:modelValue": e[3] || (e[3] = (s) => D(u) ? u.value = s : null),
56
56
  width: "500px",
57
57
  onClose: f
58
58
  }, {
59
59
  footer: n(() => [
60
- z("div", S, [
60
+ U("div", z, [
61
61
  r(P, { onClick: f }, {
62
62
  default: n(() => [
63
63
  g(_(o.$t("common.cancel")), 1)
@@ -59,7 +59,7 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
59
59
  width: number;
60
60
  pictureUrl: unknown[];
61
61
  height: number;
62
- listType: "text" | "picture" | "picture-card";
62
+ listType: "picture" | "text" | "picture-card";
63
63
  limit: number;
64
64
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
65
65
  export default _default;
@@ -25,8 +25,8 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
25
25
  default: string;
26
26
  };
27
27
  }>> & Readonly<{}>, {
28
+ name: string;
28
29
  title: string;
29
30
  icon: string;
30
- name: string;
31
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
32
32
  export default _default;
@@ -37,8 +37,8 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
37
37
  required: true;
38
38
  };
39
39
  }>> & Readonly<{}>, {
40
- id: string;
41
40
  width: string;
41
+ id: string;
42
42
  height: string;
43
43
  className: string;
44
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -37,8 +37,8 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
37
37
  required: true;
38
38
  };
39
39
  }>> & Readonly<{}>, {
40
- id: string;
41
40
  width: string;
41
+ id: string;
42
42
  height: string;
43
43
  className: string;
44
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -37,8 +37,8 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
37
37
  required: true;
38
38
  };
39
39
  }>> & Readonly<{}>, {
40
- id: string;
41
40
  width: string;
41
+ id: string;
42
42
  height: string;
43
43
  className: string;
44
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -37,8 +37,8 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
37
37
  required: true;
38
38
  };
39
39
  }>> & Readonly<{}>, {
40
- id: string;
41
40
  width: string;
41
+ id: string;
42
42
  height: string;
43
43
  className: string;
44
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",
@@ -1,141 +0,0 @@
1
- import { b as s, J as x, K as T, _ as U, h as V, L as B, E as P } from "./index-DcIBMp_4.mjs";
2
- import { defineComponent as M, ref as _, useModel as S, reactive as $, resolveComponent as A, createBlock as D, openBlock as m, withCtx as a, createVNode as d, unref as t, createElementBlock as y, createCommentVNode as f, createTextVNode as c, toDisplayString as n, withDirectives as C, vShow as g } from "vue";
3
- const L = {
4
- key: 0,
5
- class: "distance-left"
6
- }, J = ["onClick"], W = /* @__PURE__ */ M({
7
- __name: "runAs",
8
- props: {
9
- modelValue: { type: Boolean },
10
- modelModifiers: {}
11
- },
12
- emits: ["update:modelValue"],
13
- setup(v) {
14
- const r = _(!1), p = _([]), i = s().user, u = S(v, "modelValue"), k = $([
15
- {
16
- label: "login.username",
17
- prop: "loginName",
18
- width: "100",
19
- sortable: !0,
20
- isColumn: !0
21
- },
22
- {
23
- label: "sysUser.nickname",
24
- prop: "nickName",
25
- minWidth: "100",
26
- isColumn: !0
27
- },
28
- {
29
- label: "sysUser.phoneNumber",
30
- prop: "mobilePhone",
31
- slotName: "mobilePhone",
32
- columnType: "slot",
33
- width: "140",
34
- isColumn: !0,
35
- sortable: !0
36
- },
37
- {
38
- label: "sysUser.email",
39
- prop: "email",
40
- width: "180",
41
- slotName: "email",
42
- columnType: "slot",
43
- isColumn: !0,
44
- sortable: !0
45
- },
46
- {
47
- label: "common.status",
48
- width: "100",
49
- slotName: "status",
50
- columnType: "slot",
51
- isColumn: !0
52
- },
53
- {
54
- label: "common.operate",
55
- width: "80",
56
- slotName: "operation",
57
- columnType: "slot",
58
- fixed: "right",
59
- isColumn: !0
60
- }
61
- ]);
62
- r.value = !0;
63
- function h(o) {
64
- o.showEncrypt = !o.showEncrypt;
65
- }
66
- x().then(({ data: o }) => {
67
- r.value = !1, p.value = o.results;
68
- });
69
- function I(o) {
70
- V.confirm("确定切换用户身份吗?", "提示", {
71
- confirmButtonText: "确定",
72
- cancelButtonText: "取消",
73
- type: "warning"
74
- }).then(() => {
75
- console.log(s()), B(o.userId).then(async (l) => {
76
- l.status === 200 && (s().user.roleCodes = [], s().user.permCodes = [], u.value = !1, location.reload(), P({
77
- message: "切换成功",
78
- type: "success"
79
- }));
80
- });
81
- });
82
- }
83
- return (o, l) => {
84
- const w = U, E = T, N = A("el-dialog");
85
- return m(), D(N, {
86
- title: "切换身份",
87
- modelValue: u.value,
88
- "onUpdate:modelValue": l[0] || (l[0] = (e) => u.value = e),
89
- width: "800px"
90
- }, {
91
- default: a(() => [
92
- d(E, {
93
- class: "table-top",
94
- ref: "multipleTableRef",
95
- "row-key": "userId",
96
- "list-loading": t(r),
97
- data: t(p),
98
- "table-label": t(k),
99
- isSelection: !1
100
- }, {
101
- mobilePhone: a((e) => [
102
- c(n(e.data.row.showEncrypt ? e.data.row.mobilePhone : e.data.row.mobilePhoneIns) + " ", 1),
103
- e.data.row.mobilePhoneIns ? (m(), y("span", L, [
104
- C(d(w, {
105
- "icon-class": "close-eye",
106
- onClick: (b) => h(e.data.row)
107
- }, null, 8, ["onClick"]), [
108
- [g, !e.data.row.showEncrypt]
109
- ]),
110
- C(d(w, {
111
- "icon-class": "eye-open",
112
- onClick: (b) => h(e.data.row)
113
- }, null, 8, ["onClick"]), [
114
- [g, e.data.row.showEncrypt]
115
- ])
116
- ])) : f("", !0)
117
- ]),
118
- email: a((e) => [
119
- c(n(e.data.row.showEncrypt ? e.data.row.email : e.data.row.emailIns), 1)
120
- ]),
121
- status: a((e) => [
122
- c(n(e.data.row.userId.replace(/-/g, "") === t(i).primaryUserId ? "原身份" : "") + " " + n(e.data.row.userId == t(i).userId ? "当前身份" : ""), 1)
123
- ]),
124
- operation: a((e) => [
125
- e.data.row.userId !== t(i).userId ? (m(), y("span", {
126
- key: 0,
127
- class: "el-button-color",
128
- onClick: (b) => I(e.data.row)
129
- }, "  切换 ", 8, J)) : f("", !0)
130
- ]),
131
- _: 1
132
- }, 8, ["list-loading", "data", "table-label"])
133
- ]),
134
- _: 1
135
- }, 8, ["modelValue"]);
136
- };
137
- }
138
- });
139
- export {
140
- W as _
141
- };