jmash-core 0.0.15 → 0.0.17

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 (65) hide show
  1. package/dist/{401-BkJPlIzp.mjs → 401-DHtIcTsj.mjs} +2 -2
  2. package/dist/{404-BBmYfUdE.mjs → 404-DLi-iDOV.mjs} +1 -1
  3. package/dist/{BarChart-B6A8iUXj.mjs → BarChart-D-LlphWp.mjs} +2 -2
  4. package/dist/{PieChart-DX64TYZz.mjs → PieChart-BuOTHtyi.mjs} +1 -1
  5. package/dist/{PieChart.vue_vue_type_script_setup_true_lang-DtGRvxtk.mjs → PieChart.vue_vue_type_script_setup_true_lang-DzWvaax0.mjs} +2 -2
  6. package/dist/{RadarChart-bUPojoRx.mjs → RadarChart-CKUIA37z.mjs} +1 -1
  7. package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-BmDtds_e.mjs → RadarChart.vue_vue_type_script_setup_true_lang-d60KzmUA.mjs} +2 -2
  8. package/dist/{edit-Cm32AuKE.mjs → edit-BZI52JRg.mjs} +16 -16
  9. package/dist/{edit-HfjGZfbA.mjs → edit-C6ehZDxZ.mjs} +1 -1
  10. package/dist/{edit-DI9xVL3f.mjs → edit-CMAd2iqE.mjs} +1 -1
  11. package/dist/{edit-BSOs3vN5.mjs → edit-CnwxriFJ.mjs} +1 -1
  12. package/dist/{edit-B_7Qd0xx.mjs → edit-D6_TYrks.mjs} +1 -1
  13. package/dist/edit-DHvgJLaz.mjs +4 -0
  14. package/dist/{edit-SaGTHCRi.mjs → edit-DN-MVECZ.mjs} +12 -12
  15. package/dist/edit-J4P9WjrO.mjs +4 -0
  16. package/dist/{edit.vue_vue_type_script_setup_true_lang-BZIGUF15.mjs → edit.vue_vue_type_script_setup_true_lang-BZnW2tqo.mjs} +37 -37
  17. package/dist/{edit.vue_vue_type_script_setup_true_lang-CvQyDvvs.mjs → edit.vue_vue_type_script_setup_true_lang-BuMFm7OK.mjs} +2 -2
  18. package/dist/{edit.vue_vue_type_script_setup_true_lang-DdpRY-Il.mjs → edit.vue_vue_type_script_setup_true_lang-BzNQqIMg.mjs} +1 -1
  19. package/dist/{edit.vue_vue_type_script_setup_true_lang-BY6U7HyH.mjs → edit.vue_vue_type_script_setup_true_lang-CeJVR3Vq.mjs} +2 -2
  20. package/dist/{edit.vue_vue_type_script_setup_true_lang-CXKNjagX.mjs → edit.vue_vue_type_script_setup_true_lang-Ci9iwDcq.mjs} +32 -32
  21. package/dist/{edit.vue_vue_type_script_setup_true_lang-DOBRRSJo.mjs → edit.vue_vue_type_script_setup_true_lang-DcUGGAiA.mjs} +4 -4
  22. package/dist/{el-card-DO00Wvz9.mjs → el-card-BggarUKt.mjs} +1 -1
  23. package/dist/{el-col-DFdwiQq6.mjs → el-col-DbFjTxbX.mjs} +1 -1
  24. package/dist/{el-date-picker-BiAhUGOG.mjs → el-date-picker-CmbC3yYv.mjs} +1 -1
  25. package/dist/{el-divider-c2CLca4o.mjs → el-divider-MGyEJ5zZ.mjs} +1 -1
  26. package/dist/{el-dropdown-item-9E9GqcUL.mjs → el-dropdown-item-FWQRV_xf.mjs} +1 -1
  27. package/dist/{el-tree-select-CC0XwXVL.mjs → el-tree-select-BHfIurXw.mjs} +2 -2
  28. package/dist/{index-BLIll5te.mjs → index-B84ZW4-n.mjs} +6 -6
  29. package/dist/{index-UYeY7Byx.mjs → index-BEToXA_g.mjs} +1 -1
  30. package/dist/{index-Dzz_DJ2A.mjs → index-BX8mYGGS.mjs} +20 -21
  31. package/dist/{index-ByZF--LW.mjs → index-BgIWEoPN.mjs} +1 -1
  32. package/dist/{index-qw7NC8eE.mjs → index-BiRUFLiB.mjs} +8 -8
  33. package/dist/{index-CiTJNDrg.mjs → index-BifX19oH.mjs} +36 -37
  34. package/dist/{index-CovctCXh.mjs → index-BlxYHDw6.mjs} +66 -67
  35. package/dist/{index-WXrB1MMY.mjs → index-BoS2yE6U.mjs} +14 -15
  36. package/dist/{index-CRuu1sq3.mjs → index-C0sX5OCQ.mjs} +8 -8
  37. package/dist/{index-BBMnmuNy.mjs → index-CMM5K39V.mjs} +8 -8
  38. package/dist/{index-DDZExl-h.mjs → index-CZYJirdu.mjs} +9 -9
  39. package/dist/{index-DSMgAe9r.mjs → index-Ch8CTTtJ.mjs} +1 -1
  40. package/dist/{index-CMrLCILj.mjs → index-CjCmD1Mb.mjs} +79 -80
  41. package/dist/{index-Dy5Mc1xa.mjs → index-CtWKdTKL.mjs} +7061 -6774
  42. package/dist/{index-QGbAm-j4.mjs → index-DUyrkFi4.mjs} +1 -1
  43. package/dist/{index-CgTJTyzP.mjs → index-Df7jF4Qk.mjs} +1 -1
  44. package/dist/{index-B2TvQOt9.mjs → index-DkfTuqGW.mjs} +4 -4
  45. package/dist/{index-DQe98_8-.mjs → index-DsxBaBkg.mjs} +21 -21
  46. package/dist/{index-Bozt9oGT.mjs → index-Dy2PAubx.mjs} +8 -8
  47. package/dist/{index-DfG2Ushb.mjs → index-vE-S6rhE.mjs} +1 -1
  48. package/dist/index.mjs +32 -30
  49. package/dist/{index.vue_vue_type_script_setup_true_lang-KEqvSfud.mjs → index.vue_vue_type_script_setup_true_lang-CSomPox5.mjs} +4 -4
  50. package/dist/{index.vue_vue_type_script_setup_true_lang-DNUiKzAB.mjs → index.vue_vue_type_script_setup_true_lang-Dm8PSIBZ.mjs} +2 -2
  51. package/dist/{picture-B-Z93WvM.mjs → picture-BIAwzBkw.mjs} +2 -2
  52. package/dist/{position-vpBZqxst.mjs → position-L9vaXHAE.mjs} +1 -1
  53. package/dist/{profile-yHqe9ckz.mjs → profile--WSxlIoE.mjs} +6 -6
  54. package/dist/{runAs-30DZ0fw7.mjs → runAs-BZPfGtII.mjs} +1 -1
  55. package/dist/{runAs.vue_vue_type_script_setup_true_lang-Df5JuFXX.mjs → runAs.vue_vue_type_script_setup_true_lang-Bxepj0Kl.mjs} +2 -2
  56. package/dist/{types-B-kpFO60.mjs → types-BKDRr3zX.mjs} +2 -2
  57. package/dist/{updatePwd-B0jx4S2G.mjs → updatePwd-DvFsBzRI.mjs} +1 -1
  58. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-DqPa62Sx.mjs → updatePwd.vue_vue_type_script_setup_true_lang-Dl0ULJRF.mjs} +1 -1
  59. package/dts/src/api/types.d.ts +75 -0
  60. package/dts/src/hooks/table.d.ts +41 -0
  61. package/dts/src/index.d.ts +3 -1
  62. package/package.json +1 -1
  63. package/dist/FileSaver.min-CgOjN3Qg.mjs +0 -77
  64. package/dist/edit-K-SeNsHi.mjs +0 -4
  65. package/dist/edit-syovGHsx.mjs +0 -4
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, openBlock as n, createBlock as r, Transition as l, mergeProps as p, unref as g, toHandlers as m, withCtx as f, renderSlot as y } from "vue";
2
- import { u as c, _ as h } from "./index-Dy5Mc1xa.mjs";
2
+ import { u as c, _ as h } from "./index-CtWKdTKL.mjs";
3
3
  const _ = s({
4
4
  name: "ElCollapseTransition"
5
5
  }), v = /* @__PURE__ */ s({
@@ -1,4 +1,4 @@
1
- import { b8 as r, a0 as a } from "./index-Dy5Mc1xa.mjs";
1
+ import { b9 as r, a0 as a } from "./index-CtWKdTKL.mjs";
2
2
  function u(e) {
3
3
  return r({
4
4
  url: "/v1/rbac/perm/page",
@@ -1,10 +1,10 @@
1
- import { a1 as x, X as L, ah as ee, ai as T, aj as oe, a0 as te, Z as m, ak as se, al as le, am as ae, a8 as ne, ad as re, an as ce, ao as ie, ap as de, aq as pe, s as ue, r as me, t as _e, a6 as ge } from "./index-Dy5Mc1xa.mjs";
2
- import { E as he } from "./el-card-DO00Wvz9.mjs";
3
- import { _ as fe, E as ve } from "./picture-B-Z93WvM.mjs";
1
+ import { a1 as x, X as L, ah as ee, ai as T, aj as oe, a0 as te, Z as m, ak as se, al as le, am as ae, a8 as ne, ad as re, an as ce, ao as ie, ap as de, aq as pe, s as ue, r as me, t as _e, a6 as ge } from "./index-CtWKdTKL.mjs";
2
+ import { E as he } from "./el-card-BggarUKt.mjs";
3
+ import { _ as fe, E as ve } from "./picture-BIAwzBkw.mjs";
4
4
  import "./el-form-item-l0sNRNKZ.mjs";
5
5
  import { defineComponent as we, ref as c, watchEffect as ke, computed as ye, onMounted as Ce, resolveComponent as be, openBlock as v, createElementBlock as U, createElementVNode as a, createVNode as s, unref as t, isRef as Ve, withCtx as n, toDisplayString as $, createTextVNode as I, createBlock as A, Fragment as Ee, renderList as Se, createCommentVNode as xe, withKeys as B, withModifiers as $e, withDirectives as Ie, vShow as Re, pushScopeId as De, popScopeId as qe } from "vue";
6
6
  import { useRoute as Le } from "vue-router";
7
- import { _ as Te } from "./index.vue_vue_type_script_setup_true_lang-DNUiKzAB.mjs";
7
+ import { _ as Te } from "./index.vue_vue_type_script_setup_true_lang-Dm8PSIBZ.mjs";
8
8
  const F = (_) => (De("data-v-8adbbfc2"), _ = _(), qe(), _), Ue = { class: "login-container" }, Ae = { class: "absolute top-0 flex items-center justify-end px-5 h-20 w-full" }, Be = { class: "text-center relative" }, Fe = { class: "p-2" }, Ne = { class: "p-2" }, Xe = { class: "p-2" }, Ke = { class: "p-2" }, je = { class: "captcha" }, ze = { class: "image-slot" }, Oe = { class: "forgot-pwd" }, Me = { class: "absolute bottom-1 text-[10px] text-center" }, Pe = /* @__PURE__ */ F(() => /* @__PURE__ */ a("p", null, " Copyright © 2024 All Rights Reserved. Apache 2.0 协议. ", -1)), We = /* @__PURE__ */ F(() => /* @__PURE__ */ a("p", null, "备案号: XXXX .", -1)), Ze = [
9
9
  Pe,
10
10
  We
@@ -1,9 +1,9 @@
1
- import { _ as le } from "./index.vue_vue_type_script_setup_true_lang-KEqvSfud.mjs";
2
- import { aj as te, a0 as ae, bw as ne, bx as re, by as se, b0 as ie, b1 as de, aW as me, aX as ce, b2 as ue, s as pe, aq as _e, t as be, ai as fe, aY as ye, E as Ce } from "./index-Dy5Mc1xa.mjs";
3
- import { E as he, a as ve } from "./el-col-DFdwiQq6.mjs";
1
+ import { _ as le } from "./index.vue_vue_type_script_setup_true_lang-CSomPox5.mjs";
2
+ import { aj as te, a0 as ae, bx as ne, by as re, bz as se, b1 as ie, b2 as de, aW as me, aX as ce, b3 as ue, s as pe, aq as _e, t as be, ai as fe, aZ as ye, E as Ce } from "./index-CtWKdTKL.mjs";
3
+ import { E as he, a as ve } from "./el-col-DbFjTxbX.mjs";
4
4
  import "./el-form-item-l0sNRNKZ.mjs";
5
- import { defineComponent as Re, reactive as m, resolveComponent as I, resolveDirective as we, openBlock as c, createElementBlock as R, createElementVNode as D, createVNode as l, unref as e, withCtx as t, withKeys as T, createTextVNode as u, toDisplayString as p, withDirectives as y, createBlock as w, createCommentVNode as ke } from "vue";
6
- import ge from "./edit-Cm32AuKE.mjs";
5
+ import { defineComponent as Re, reactive as m, resolveComponent as I, resolveDirective as ke, openBlock as c, createElementBlock as R, createElementVNode as D, createVNode as l, unref as e, withCtx as t, withKeys as T, createTextVNode as u, toDisplayString as p, withDirectives as y, createBlock as k, createCommentVNode as we } from "vue";
6
+ import ge from "./edit-BZI52JRg.mjs";
7
7
  const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie = /* @__PURE__ */ D("div", { class: "clear" }, null, -1), Te = ["onClick"], De = ["onClick"], Le = /* @__PURE__ */ Re({
8
8
  __name: "index",
9
9
  setup(Ne) {
@@ -65,7 +65,7 @@ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie =
65
65
  listLoading: S,
66
66
  selectionRows: F,
67
67
  multipleTableRef: q,
68
- queryFormRef: k,
68
+ queryFormRef: w,
69
69
  handleQuery: d,
70
70
  deleteRecord: B,
71
71
  deleteRecords: K,
@@ -75,13 +75,13 @@ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie =
75
75
  // 下移
76
76
  } = me(n, N, i), {
77
77
  parIndex: x,
78
- tableArray: U,
79
- getLocalStorageContent: j,
80
- fixedChange: z,
78
+ tableArray: z,
79
+ getLocalStorageContent: U,
80
+ fixedChange: j,
81
81
  isShowChange: A
82
82
  } = ce(_, "/system/role");
83
83
  function M() {
84
- k.value.resetFields(), d();
84
+ w.value.resetFields(), d();
85
85
  }
86
86
  function Q() {
87
87
  C = m({
@@ -98,19 +98,19 @@ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie =
98
98
  function X(o) {
99
99
  s.visible = o;
100
100
  }
101
- function Y(o) {
101
+ function Z(o) {
102
102
  o && d();
103
103
  }
104
104
  function G(o) {
105
105
  F.value = o;
106
106
  }
107
- return j(), _ = U.value, d(), (o, r) => {
108
- const g = pe, h = _e, b = be, H = fe, $ = he, J = ye, O = ve, Z = I("Bottom"), E = Ce, ee = I("Top"), oe = le, f = we("hasPerm");
107
+ return U(), _ = z.value, d(), (o, r) => {
108
+ const g = pe, h = _e, b = be, H = fe, $ = he, J = ye, O = ve, Y = I("Bottom"), E = Ce, ee = I("Top"), oe = le, f = ke("hasPerm");
109
109
  return c(), R("div", $e, [
110
110
  D("div", Ee, [
111
111
  l(H, {
112
112
  ref_key: "queryFormRef",
113
- ref: k,
113
+ ref: w,
114
114
  inline: !0,
115
115
  model: e(i)
116
116
  }, {
@@ -172,7 +172,7 @@ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie =
172
172
  default: t(() => [
173
173
  l($, { span: 19 }, {
174
174
  default: t(() => [
175
- y((c(), w(b, {
175
+ y((c(), k(b, {
176
176
  type: "primary",
177
177
  onClick: Q
178
178
  }, {
@@ -183,7 +183,7 @@ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie =
183
183
  })), [
184
184
  [f, ["rbac:role:add"]]
185
185
  ]),
186
- y((c(), w(b, {
186
+ y((c(), k(b, {
187
187
  type: "primary",
188
188
  onClick: r[2] || (r[2] = (a) => e(K)("roleId"))
189
189
  }, {
@@ -205,7 +205,7 @@ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie =
205
205
  l(J, {
206
206
  "table-label": e(_),
207
207
  "par-index": e(x),
208
- onFixedChange: e(z),
208
+ onFixedChange: e(j),
209
209
  onIsShowChange: e(A)
210
210
  }, null, 8, ["table-label", "par-index", "onFixedChange", "onIsShowChange"])
211
211
  ]),
@@ -230,7 +230,7 @@ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie =
230
230
  onClick: (v) => e(P)(a.data.row.roleId)
231
231
  }, {
232
232
  default: t(() => [
233
- l(Z)
233
+ l(Y)
234
234
  ]),
235
235
  _: 2
236
236
  }, 1032, ["onClick"]),
@@ -264,13 +264,13 @@ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie =
264
264
  ]),
265
265
  _: 1
266
266
  }, 8, ["list-loading", "table-data", "table-label"]),
267
- e(s).visible ? (c(), w(ge, {
267
+ e(s).visible ? (c(), k(ge, {
268
268
  key: 0,
269
269
  dialog: e(s),
270
270
  "form-data": e(C),
271
271
  onDialogEvent: X,
272
- onRefresh: Y
273
- }, null, 8, ["dialog", "form-data"])) : ke("", !0)
272
+ onRefresh: Z
273
+ }, null, 8, ["dialog", "form-data"])) : we("", !0)
274
274
  ]);
275
275
  };
276
276
  }
@@ -1,9 +1,9 @@
1
- import { aj as le, a0 as ie, aW as re, aX as se, s as pe, aq as de, t as me, ai as ce, aY as ue, E as _e, bc as fe } from "./index-Dy5Mc1xa.mjs";
2
- import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-KEqvSfud.mjs";
3
- import { E as ge, a as Ce } from "./el-col-DFdwiQq6.mjs";
1
+ import { aj as le, a0 as ie, aW as re, aX as se, s as pe, aq as de, t as me, ai as ce, aZ as ue, E as _e, bd as fe } from "./index-CtWKdTKL.mjs";
2
+ import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-CSomPox5.mjs";
3
+ import { E as ge, a as Ce } from "./el-col-DbFjTxbX.mjs";
4
4
  import "./el-form-item-l0sNRNKZ.mjs";
5
5
  import { defineComponent as ye, reactive as d, resolveComponent as R, resolveDirective as ve, openBlock as p, createElementBlock as $, createVNode as t, withCtx as n, withKeys as T, unref as o, createTextVNode as m, toDisplayString as c, withDirectives as C, createBlock as y, isRef as he, createCommentVNode as S, createElementVNode as ke } from "vue";
6
- import { g as we, d as $e, b as Ee, m as Oe, a as Ie, _ as Ne } from "./edit.vue_vue_type_script_setup_true_lang-DdpRY-Il.mjs";
6
+ import { g as we, d as $e, b as Ee, m as Oe, a as Ie, _ as Ne } from "./edit.vue_vue_type_script_setup_true_lang-BzNQqIMg.mjs";
7
7
  const Re = { class: "app-container" }, Te = /* @__PURE__ */ ke("div", { class: "clear" }, null, -1), Se = ["onClick"], De = ["onClick"], Ke = /* @__PURE__ */ ye({
8
8
  __name: "index",
9
9
  setup(Ve) {
@@ -85,7 +85,7 @@ const Re = { class: "app-container" }, Te = /* @__PURE__ */ ke("div", { class: "
85
85
  operationName: ""
86
86
  }), s.title = r("common.add"), s.visible = !0;
87
87
  }
88
- function Y(e) {
88
+ function Z(e) {
89
89
  s.title = r("common.edit"), s.visible = !0, v = { ...e };
90
90
  }
91
91
  function G(e) {
@@ -95,7 +95,7 @@ const Re = { class: "app-container" }, Te = /* @__PURE__ */ ke("div", { class: "
95
95
  e && h();
96
96
  }
97
97
  return x(), u = j.value, h(), (e, l) => {
98
- const O = pe, k = de, b = me, J = ce, I = ge, Z = ue, ee = Ce, oe = R("Bottom"), N = _e, te = R("Top"), ae = be, ne = fe, g = ve("hasPerm");
98
+ const O = pe, k = de, b = me, J = ce, I = ge, Y = ue, ee = Ce, oe = R("Bottom"), N = _e, te = R("Top"), ae = be, ne = fe, g = ve("hasPerm");
99
99
  return p(), $("div", Re, [
100
100
  t(J, {
101
101
  ref_key: "queryFormRef",
@@ -191,7 +191,7 @@ const Re = { class: "app-container" }, Te = /* @__PURE__ */ ke("div", { class: "
191
191
  class: "container-float"
192
192
  }, {
193
193
  default: n(() => [
194
- t(Z, {
194
+ t(Y, {
195
195
  "table-label": o(u),
196
196
  "par-index": o(L),
197
197
  onFixedChange: o(A),
@@ -236,7 +236,7 @@ const Re = { class: "app-container" }, Te = /* @__PURE__ */ ke("div", { class: "
236
236
  operation: n((a) => [
237
237
  C((p(), $("span", {
238
238
  class: "el-button-color",
239
- onClick: (w) => Y(a.data.row)
239
+ onClick: (w) => Z(a.data.row)
240
240
  }, [
241
241
  m(c(e.$t("common.edit")), 1)
242
242
  ], 8, Se)), [
@@ -1,4 +1,4 @@
1
- import { b8 as t, a0 as n } from "./index-Dy5Mc1xa.mjs";
1
+ import { b9 as t, a0 as n } from "./index-CtWKdTKL.mjs";
2
2
  function o(e) {
3
3
  return t({
4
4
  url: "/v1/rbac/module/page",
package/dist/index.mjs CHANGED
@@ -1,37 +1,39 @@
1
- import { cp as e, cn as r, co as t, cj as o, ck as u, cl as c, cm as i, cs as n, ct as g, b9 as p, cq as d, bj as P, ci as S, cw as l, a7 as m, cr as b, b8 as M, cA as k, a8 as v, cx as y, cu as E, cv as L, X as f, cy as A, aX as D, bi as H, aW as T, a9 as U, aU as j, a1 as q, $ as w, a0 as x, cz as V, as as W } from "./index-Dy5Mc1xa.mjs";
1
+ import { cq as e, co as o, cp as r, ck as t, cl as c, cm as u, cn as i, cz as n, ct as g, cu as p, ba as d, cr as l, bk as P, cj as S, cx as b, a7 as k, cs as m, b9 as M, cD as v, a8 as y, cA as E, cv as H, cw as T, X as D, cB as L, aX as f, bj as A, aW as U, a9 as j, aU as q, a1 as w, cy as x, $ as C, a0 as V, cC as W, as as X } from "./index-CtWKdTKL.mjs";
2
2
  export {
3
3
  e as DashboardPage,
4
- r as Error401Page,
5
- t as Error404Page,
6
- o as Layout,
7
- u as LoginPage,
8
- c as MultiFactorLoginPage,
4
+ o as Error401Page,
5
+ r as Error404Page,
6
+ t as Layout,
7
+ c as LoginPage,
8
+ u as MultiFactorLoginPage,
9
9
  i as ProfilePage,
10
- n as addViteMenus,
11
- g as addWebpackMenus,
12
- p as clearEmpty,
13
- d as default,
10
+ n as TableHooks,
11
+ g as addViteMenus,
12
+ p as addWebpackMenus,
13
+ d as clearEmpty,
14
+ l as default,
14
15
  P as dictMap,
15
16
  S as directive,
16
- l as getQueryParams,
17
- m as i18n,
18
- b as menus,
17
+ b as getQueryParams,
18
+ k as i18n,
19
+ m as menus,
19
20
  M as request,
20
- k as resetRouter,
21
- v as router,
22
- y as store,
23
- E as updateMetaEnv,
24
- L as updateSettings,
25
- f as useAppStore,
26
- A as useAppStoreHook,
27
- D as useColumnToggleTable,
28
- H as useDictionary,
29
- T as useListData,
30
- U as usePermissionStore,
31
- j as usePermissionStoreHook,
32
- q as useSettingsStore,
33
- w as useTagsViewStore,
34
- x as useUserStore,
35
- V as useUserStoreHook,
36
- W as vueMetaEnv
21
+ v as resetRouter,
22
+ y as router,
23
+ E as store,
24
+ H as updateMetaEnv,
25
+ T as updateSettings,
26
+ D as useAppStore,
27
+ L as useAppStoreHook,
28
+ f as useColumnToggleTable,
29
+ A as useDictionary,
30
+ U as useListData,
31
+ j as usePermissionStore,
32
+ q as usePermissionStoreHook,
33
+ w as useSettingsStore,
34
+ x as useTableHooks,
35
+ C as useTagsViewStore,
36
+ V as useUserStore,
37
+ W as useUserStoreHook,
38
+ X as vueMetaEnv
37
39
  };
@@ -1,5 +1,5 @@
1
- import { bU as K, L as w, c as j, g as V, bV as g, K as S, W as $, bW as D, b7 as F, b5 as W } from "./index-Dy5Mc1xa.mjs";
2
- import { ref as L, reactive as q, defineComponent as E, h as p, Transition as G, withCtx as k, withDirectives as N, createVNode as H, vShow as M, createApp as U, toRefs as Y, nextTick as P, isRef as Z, openBlock as m, createBlock as y, unref as J, createCommentVNode as C, createElementBlock as T, Fragment as A, renderList as Q, renderSlot as X } from "vue";
1
+ import { bV as K, L as w, c as j, g as V, bW as g, K as S, W as $, bX as D, b8 as F, b6 as W } from "./index-CtWKdTKL.mjs";
2
+ import { ref as L, reactive as q, defineComponent as E, h as p, Transition as G, withCtx as k, withDirectives as N, createVNode as H, vShow as M, createApp as X, toRefs as Y, nextTick as P, isRef as Z, openBlock as m, createBlock as y, unref as J, createCommentVNode as C, createElementBlock as T, Fragment as A, renderList as Q, renderSlot as U } from "vue";
3
3
  function ee(t) {
4
4
  let e;
5
5
  const l = L(!1), o = q({
@@ -77,7 +77,7 @@ function ee(t) {
77
77
  });
78
78
  };
79
79
  }
80
- }), b = U(c), r = b.mount(document.createElement("div"));
80
+ }), b = X(c), r = b.mount(document.createElement("div"));
81
81
  return {
82
82
  ...Y(o),
83
83
  setText: s,
@@ -253,7 +253,7 @@ const te = function(t = {}) {
253
253
  sortable: r.sortable
254
254
  }, {
255
255
  default: k((n) => [
256
- X(i.$slots, r.slotName, { data: n })
256
+ U(i.$slots, r.slotName, { data: n })
257
257
  ]),
258
258
  _: 2
259
259
  }, 1032, ["label", "prop", "width", "fixed", "sortable"])) : C("", !0),
@@ -1,5 +1,5 @@
1
- import { X as m, aj as i, Y as s, Z as g } from "./index-Dy5Mc1xa.mjs";
2
- import { E as f, a as h, b as w } from "./el-dropdown-item-9E9GqcUL.mjs";
1
+ import { X as m, aj as i, Y as s, Z as g } from "./index-CtWKdTKL.mjs";
2
+ import { E as f, a as h, b as w } from "./el-dropdown-item-FWQRV_xf.mjs";
3
3
  import { defineComponent as E, openBlock as b, createBlock as x, withCtx as e, createVNode as o, unref as t, createTextVNode as d, createElementVNode as C } from "vue";
4
4
  const N = /* @__PURE__ */ E({
5
5
  __name: "index",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as ne, markRaw as ve, ref as h, effectScope as ke, shallowRef as Ie, computed as y, watch as ue, nextTick as me, onMounted as pe, openBlock as w, createBlock as ce, Teleport as ze, createVNode as f, Transition as Le, withCtx as L, createElementVNode as p, normalizeClass as v, unref as e, normalizeStyle as de, withModifiers as Ce, createCommentVNode as E, createElementBlock as C, Fragment as ae, resolveDynamicComponent as Ee, renderList as Se, withDirectives as xe, vShow as Ne, renderSlot as te, useAttrs as Oe, toDisplayString as Te, mergeProps as $e } from "vue";
2
- import { av as Ae, q as Re, b as ge, d as P, S as ye, aw as fe, ax as Me, ay as Ve, k as we, u as he, az as Be, E as O, y as Ye, aA as De, O as Xe, aB as Fe, aC as He, aD as Pe, aE as Ke, _ as be, aF as M, A as R, aG as je, w as _e, aH as We, c as H, aI as qe, aJ as Ge, g as Ze, aK as Je } from "./index-Dy5Mc1xa.mjs";
3
- import { i as Ue } from "./position-vpBZqxst.mjs";
2
+ import { av as Ae, q as Re, b as ge, d as P, S as ye, aw as fe, ax as Me, ay as Ve, k as we, u as he, az as Be, E as O, y as Ye, aA as De, O as Xe, aB as Fe, aC as He, aD as Pe, aE as Ke, _ as be, aF as M, A as R, aG as je, w as _e, aH as We, c as H, aI as qe, aJ as Ge, g as Ze, aK as Je } from "./index-CtWKdTKL.mjs";
3
+ import { i as Ue } from "./position-L9vaXHAE.mjs";
4
4
  var Qe = "Expected a function";
5
5
  function ie(u, b, o) {
6
6
  var S = !0, s = !0;
@@ -1,4 +1,4 @@
1
- import { c as o } from "./index-Dy5Mc1xa.mjs";
1
+ import { c as o } from "./index-CtWKdTKL.mjs";
2
2
  const l = (t, i) => {
3
3
  if (!o || !t || !i)
4
4
  return !1;
@@ -1,11 +1,11 @@
1
- import { a0 as q, aL as A, aM as B, Y as F, aN as P, aq as z, E as L, s as O, aO as T, t as G, ai as H, a6 as K } from "./index-Dy5Mc1xa.mjs";
2
- import { E as Q } from "./el-date-picker-BiAhUGOG.mjs";
3
- import { E as W, a as X } from "./el-col-DFdwiQq6.mjs";
4
- import { E as Z } from "./el-tree-select-CC0XwXVL.mjs";
1
+ import { a0 as q, aL as A, aM as B, Y as F, aN as P, aq as z, E as L, s as O, aO as T, t as G, ai as H, a6 as K } from "./index-CtWKdTKL.mjs";
2
+ import { E as Q } from "./el-date-picker-CmbC3yYv.mjs";
3
+ import { E as W, a as X } from "./el-col-DbFjTxbX.mjs";
4
+ import { E as Z } from "./el-tree-select-BHfIurXw.mjs";
5
5
  import "./el-form-item-l0sNRNKZ.mjs";
6
6
  import { defineComponent as x, ref as c, reactive as ee, resolveComponent as y, openBlock as p, createElementBlock as I, createVNode as t, unref as a, withCtx as l, createElementVNode as m, toDisplayString as k, Fragment as te, renderList as oe, createBlock as v, createCommentVNode as le, createTextVNode as ae } from "vue";
7
- import { t as se } from "./index-UYeY7Byx.mjs";
8
- import { t as re } from "./index-ByZF--LW.mjs";
7
+ import { t as se } from "./index-BEToXA_g.mjs";
8
+ import { t as re } from "./index-BgIWEoPN.mjs";
9
9
  const ne = { class: "app-container" }, ue = { class: "positon_name" }, de = { style: { position: "absolute", right: "0", top: "0" } }, pe = /* @__PURE__ */ x({
10
10
  __name: "profile",
11
11
  setup(me) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./runAs.vue_vue_type_script_setup_true_lang-Df5JuFXX.mjs";
1
+ import { _ as f } from "./runAs.vue_vue_type_script_setup_true_lang-Bxepj0Kl.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,5 +1,5 @@
1
- import { aS as _, a5 as g, a0 as o, aT as w, aU as C, Y as v, au as x } from "./index-Dy5Mc1xa.mjs";
2
- import { _ as k } from "./index.vue_vue_type_script_setup_true_lang-KEqvSfud.mjs";
1
+ import { aS as _, a5 as g, a0 as o, aT as w, aU as C, Y as v, au as x } from "./index-CtWKdTKL.mjs";
2
+ import { _ as k } from "./index.vue_vue_type_script_setup_true_lang-CSomPox5.mjs";
3
3
  import { defineComponent as y, ref as c, useModel as T, reactive as V, resolveDirective as B, openBlock as m, createBlock as U, withCtx as d, createVNode as N, unref as i, withDirectives as I, createElementBlock as D, createTextVNode as E } from "vue";
4
4
  const M = ["onClick"], L = /* @__PURE__ */ y({
5
5
  __name: "runAs",
@@ -1,5 +1,5 @@
1
- import { al as x, a0 as b, ar as D, as as U, at as B, s as N, aq as $, t as q, ai as R, au as S } from "./index-Dy5Mc1xa.mjs";
2
- import { _ as z, E as A } from "./picture-B-Z93WvM.mjs";
1
+ import { al as x, a0 as b, ar as D, as as U, at as B, s as N, aq as $, t as q, ai as R, au as S } from "./index-CtWKdTKL.mjs";
2
+ import { _ as z, E as A } from "./picture-BIAwzBkw.mjs";
3
3
  import "./el-form-item-l0sNRNKZ.mjs";
4
4
  import { defineComponent as M, ref as I, reactive as m, openBlock as P, createElementBlock as T, Fragment as j, createVNode as e, withCtx as t, createTextVNode as p, toDisplayString as u, createElementVNode as f } from "vue";
5
5
  const L = { class: "h-[40px]" }, G = { class: "image-slot" }, H = { class: "dialog-footer" }, X = /* @__PURE__ */ M({
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-DqPa62Sx.mjs";
1
+ import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-Dl0ULJRF.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { aV as y, Y as C, s as h, aq as v, ai as x, t as O, au as A } from "./index-Dy5Mc1xa.mjs";
1
+ import { aV as y, Y as C, s as h, aq as v, ai as x, t as O, au as A } from "./index-CtWKdTKL.mjs";
2
2
  import "./el-form-item-l0sNRNKZ.mjs";
3
3
  import { defineComponent as q, ref as B, toRefs as F, reactive as c, openBlock as I, createBlock as R, unref as r, isRef as U, withCtx as a, createElementVNode as D, createVNode as t, createTextVNode as f } from "vue";
4
4
  const $ = { class: "dialog-footer" }, Y = /* @__PURE__ */ q({
@@ -0,0 +1,75 @@
1
+ import type { AxiosPromise } from "axios";
2
+ export interface EntityApi {
3
+ getKey(model: EntityModel): EntityKey;
4
+ findPage?(query: EntityReq): AxiosPromise<EntityPage>;
5
+ findList?(query: EntityReq): AxiosPromise<EntityList>;
6
+ findById(key: EntityKey): AxiosPromise<EntityModel>;
7
+ create(data: EntityCreateReq): AxiosPromise<EntityModel>;
8
+ update(data: EntityUpdateReq): AxiosPromise<EntityModel>;
9
+ delete?(key: EntityKey): AxiosPromise<EntityModel>;
10
+ batchDelete?(keys: EntityKey[]): AxiosPromise<number>;
11
+ enable?(key: EntityKey, enabled: boolean): AxiosPromise<boolean>;
12
+ move?(key: EntityKey, up: boolean): AxiosPromise<boolean>;
13
+ downloadTemplate?(): AxiosPromise;
14
+ exportExcel?(data: EntityExportReq): AxiosPromise;
15
+ exportPdf?(data: EntityExportReq): AxiosPromise;
16
+ importExcel?(data: EntityImportReq): AxiosPromise<string>;
17
+ }
18
+ export interface EnumEntryReq {
19
+ className: string;
20
+ type?: number;
21
+ }
22
+ export interface Entry {
23
+ key: string;
24
+ value: string;
25
+ }
26
+ export interface EntityReq {
27
+ curPage?: number;
28
+ pageSize?: number;
29
+ orderName?: string;
30
+ orderAsc?: boolean;
31
+ }
32
+ export interface EntityModel {
33
+ }
34
+ export interface EntityList {
35
+ results: Array<EntityModel>;
36
+ }
37
+ export interface EntityPage {
38
+ results: Array<EntityModel>;
39
+ curPage: number;
40
+ pageSize: number;
41
+ totalSize: number;
42
+ subTotalDto: EntityTotal;
43
+ totalDto: EntityTotal;
44
+ }
45
+ export interface EntityTotal {
46
+ totalSize: number;
47
+ }
48
+ export interface EntityKey {
49
+ }
50
+ export interface EntityKeyList {
51
+ }
52
+ export interface EntityCreateReq {
53
+ tenant?: string;
54
+ requestId?: string;
55
+ validateOnly?: boolean;
56
+ }
57
+ export interface EntityUpdateReq {
58
+ tenant?: string;
59
+ requestId?: string;
60
+ validateOnly?: boolean;
61
+ updateMask: string;
62
+ }
63
+ export type EntityFormReq = EntityCreateReq | EntityUpdateReq;
64
+ export interface EntityExportReq {
65
+ title?: string;
66
+ fileName?: string;
67
+ req?: EntityReq;
68
+ }
69
+ export interface EntityImportReq {
70
+ tenant?: string;
71
+ requestId: string;
72
+ fileNames?: string;
73
+ addFlag?: boolean;
74
+ updateMask: string;
75
+ }
@@ -0,0 +1,41 @@
1
+ import type { EntityApi, EntityReq, EntityModel, EntityTotal, EntityImportReq } from "../api/types";
2
+ import type { Ref } from "vue";
3
+ /** use table hooks */
4
+ export declare function useTableHooks(t: any, api: EntityApi, query: Ref<EntityReq>): {
5
+ tableHooks: TableHooks;
6
+ multipleTableRef: Ref<any>;
7
+ queryFormRef: Ref<any>;
8
+ listLoading: Ref<boolean>;
9
+ tableData: Ref<EntityModel[]>;
10
+ total: Ref<number>;
11
+ };
12
+ /** 表格Hooks */
13
+ export declare class TableHooks {
14
+ multipleTableRef: Ref<any>;
15
+ queryFormRef: Ref<any>;
16
+ listLoading: Ref<boolean>;
17
+ tableData: Ref<EntityModel[]>;
18
+ total: Ref<number>;
19
+ totalRecord: Ref<EntityTotal>;
20
+ selectionRows: Ref<EntityModel[]>;
21
+ queryData: Ref<EntityReq>;
22
+ api: EntityApi;
23
+ t: any;
24
+ constructor(t: any, api: EntityApi, query: Ref<EntityReq>);
25
+ /** 获取Page列表数据. */
26
+ getList(): void;
27
+ /** 处理查询,如果查询数据中存在当前页数,则重置为第一页. */
28
+ handleQuery(): void;
29
+ handleSort(prop: string, order: string | null): void;
30
+ resetQuery(): void;
31
+ /** 删除记录 */
32
+ deleteRecord(row: EntityModel): void;
33
+ /** 删除多项记录 */
34
+ deleteRecords(): void;
35
+ handleMove(row: EntityModel, up: boolean): void;
36
+ enableRecord(row: EntityModel, enabled: boolean): void;
37
+ handleExport(name: string): void;
38
+ handleExportPdf(name: string): void;
39
+ downloadTemplate(name: string): void;
40
+ importExcel(val: EntityImportReq): Promise<boolean>;
41
+ }
@@ -1,4 +1,5 @@
1
- export type { VueMetaEnv, TableColumn, AppSettings };
1
+ export type { VueMetaEnv, TableColumn, TableSort, AppSettings };
2
+ export type { EntityApi, EnumEntryReq, Entry, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq, EntityFormReq, EntityExportReq, EntityImportReq } from "./api/types";
2
3
  import type { App } from 'vue';
3
4
  export { menus, vueMetaEnv, addViteMenus, addWebpackMenus, updateMetaEnv, updateSettings } from "@/settings";
4
5
  export { getQueryParams, clearEmpty } from '@/utils/grpc';
@@ -8,6 +9,7 @@ export { useDictionary } from "@/utils/common";
8
9
  export { dictMap } from "@/api/system/index";
9
10
  export { useListData } from "@/hooks/useList";
10
11
  export { useColumnToggleTable } from "@/hooks/useColumnToggleTable";
12
+ export { useTableHooks, TableHooks } from "@/hooks/table";
11
13
  export { store } from '@/stores';
12
14
  export { useAppStore, useAppStoreHook } from './stores/modules/app';
13
15
  export { usePermissionStore, usePermissionStoreHook } from './stores/modules/permission';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",
@@ -1,77 +0,0 @@
1
- import { bX as c } from "./index-Dy5Mc1xa.mjs";
2
- var E = { exports: {} };
3
- (function(h, j) {
4
- (function(p, i) {
5
- i();
6
- })(c, function() {
7
- function p(e, t) {
8
- return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
9
- }
10
- function i(e, t, r) {
11
- var n = new XMLHttpRequest();
12
- n.open("GET", e), n.responseType = "blob", n.onload = function() {
13
- u(n.response, t, r);
14
- }, n.onerror = function() {
15
- console.error("could not download file");
16
- }, n.send();
17
- }
18
- function v(e) {
19
- var t = new XMLHttpRequest();
20
- t.open("HEAD", e, !1);
21
- try {
22
- t.send();
23
- } catch {
24
- }
25
- return 200 <= t.status && 299 >= t.status;
26
- }
27
- function l(e) {
28
- try {
29
- e.dispatchEvent(new MouseEvent("click"));
30
- } catch {
31
- var t = document.createEvent("MouseEvents");
32
- t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
33
- }
34
- }
35
- var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof c == "object" && c.global === c ? c : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), u = a.saveAs || (typeof window != "object" || window !== a ? function() {
36
- } : "download" in HTMLAnchorElement.prototype && !w ? function(e, t, r) {
37
- var n = a.URL || a.webkitURL, o = document.createElement("a");
38
- t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? l(o) : v(o.href) ? i(e, t, r) : l(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
39
- n.revokeObjectURL(o.href);
40
- }, 4e4), setTimeout(function() {
41
- l(o);
42
- }, 0));
43
- } : "msSaveOrOpenBlob" in navigator ? function(e, t, r) {
44
- if (t = t || e.name || "download", typeof e != "string")
45
- navigator.msSaveOrOpenBlob(p(e, r), t);
46
- else if (v(e))
47
- i(e, t, r);
48
- else {
49
- var n = document.createElement("a");
50
- n.href = e, n.target = "_blank", setTimeout(function() {
51
- l(n);
52
- });
53
- }
54
- } : function(e, t, r, n) {
55
- if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string")
56
- return i(e, t, r);
57
- var o = e.type === "application/octet-stream", b = /constructor/i.test(a.HTMLElement) || a.safari, m = /CriOS\/[\d]+/.test(navigator.userAgent);
58
- if ((m || o && b || w) && typeof FileReader < "u") {
59
- var d = new FileReader();
60
- d.onloadend = function() {
61
- var s = d.result;
62
- s = m ? s : s.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = s : location = s, n = null;
63
- }, d.readAsDataURL(e);
64
- } else {
65
- var y = a.URL || a.webkitURL, f = y.createObjectURL(e);
66
- n ? n.location = f : location.href = f, n = null, setTimeout(function() {
67
- y.revokeObjectURL(f);
68
- }, 4e4);
69
- }
70
- });
71
- a.saveAs = u.saveAs = u, h.exports = u;
72
- });
73
- })(E);
74
- var R = E.exports;
75
- export {
76
- R as F
77
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BZIGUF15.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-CvQyDvvs.mjs";
2
- export {
3
- f as default
4
- };