@okiss/oms 0.0.42 → 0.0.43

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.
package/dist/index.es.js CHANGED
@@ -2,7 +2,7 @@ var $t = Object.defineProperty;
2
2
  var It = (e, t, l) => t in e ? $t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
3
3
  var M = (e, t, l) => (It(e, typeof t != "symbol" ? t + "" : t, l), l);
4
4
  import { defineComponent as q, onBeforeMount as Ke, provide as Ct, resolveComponent as v, openBlock as i, createBlock as f, createVNode as u, computed as j, createTextVNode as g, withCtx as r, TransitionGroup as Tt, createElementBlock as h, Fragment as S, renderList as B, toDisplayString as O, normalizeClass as H, renderSlot as le, mergeProps as G, createCommentVNode as x, toRefs as Ot, ref as L, normalizeStyle as Bt, createElementVNode as b, Transition as At, pushScopeId as We, popScopeId as Ze, resolveDynamicComponent as Qe, normalizeProps as W, guardReactiveProps as Y, unref as k, withDirectives as ie, vModelText as he, resolveDirective as Rt, onMounted as Pt, isRef as Lt, getCurrentInstance as Mt, h as Dt, toRaw as jt, createApp as Nt } from "vue";
5
- import { addNewStyle as Vt, addNewStyleTag as qt, queryParams as Ut, logGroup as Ht, compactObject as Xe, showEleByClassName as $e, waterMarker as Ft, Cache as be, isExternal as qe, getQueryParam as Gt, createIFrame as Jt, strVarReplace as Q, obj2Param as zt, isObject as X, isString as Ie, effectDataTrans as Kt, isArray as Ye } from "@okiss/utils";
5
+ import { addNewStyle as Vt, addNewStyleTag as qt, queryParams as Ut, logGroup as Ht, compactObject as Xe, showEleByClassName as ke, waterMarker as Ft, Cache as be, isExternal as qe, getQueryParam as Gt, createIFrame as Jt, strVarReplace as Q, obj2Param as zt, isObject as X, isString as Ie, effectDataTrans as Kt, isArray as Ye } from "@okiss/utils";
6
6
  import _e from "mockjs";
7
7
  import Wt, { cloneDeep as y, merge as A, get as ne, unset as et } from "lodash";
8
8
  import tt from "element-plus/lib/locale/lang/zh-cn";
@@ -50,7 +50,7 @@ import "element-plus/es/components/tree/style/css";
50
50
  import Ol from "vue3-markdown-it";
51
51
  import { MD5 as Bl } from "crypto-js";
52
52
  import "element-plus/es/components/message/style/css";
53
- import ke from "nprogress";
53
+ import we from "nprogress";
54
54
  import "nprogress/nprogress.css";
55
55
  String.prototype.format || (String.prototype.format = function() {
56
56
  const e = arguments;
@@ -756,11 +756,11 @@ const Rl = {
756
756
  settings: it,
757
757
  plugins: [],
758
758
  mock: !1
759
- }, we = {};
759
+ }, Se = {};
760
760
  function rt(e) {
761
761
  e.forEach((t) => {
762
762
  const l = ct(t);
763
- we[`${t.method}::${l}`] = t;
763
+ Se[`${t.method}::${l}`] = t;
764
764
  });
765
765
  }
766
766
  rt(Vl);
@@ -770,8 +770,8 @@ function ct(e) {
770
770
  return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
771
771
  }
772
772
  function Ul() {
773
- Object.keys(we).forEach((e) => {
774
- const t = we[e], l = ct(t);
773
+ Object.keys(Se).forEach((e) => {
774
+ const t = Se[e], l = ct(t);
775
775
  _e.mock(l, t.method, function(n) {
776
776
  const { url: o, type: a, body: s } = n, c = Ut(o), p = s ? JSON.parse(s) : {}, d = t.response({ query: c, data: p }), m = _e.mock(d);
777
777
  return Ht(o, { type: a, query: c, data: p, response: m }), _e.mock(m);
@@ -1810,7 +1810,7 @@ R(Sn);
1810
1810
  R(xn);
1811
1811
  R($n);
1812
1812
  R(En);
1813
- const Se = mt, Tn = {
1813
+ const xe = mt, Tn = {
1814
1814
  options: {
1815
1815
  labelPosition: "top",
1816
1816
  submitButton: !1,
@@ -1914,8 +1914,8 @@ const ye = {
1914
1914
  submitButton: !1,
1915
1915
  cancelButton: !1
1916
1916
  }, je = [];
1917
- Object.keys(Se).forEach((e) => {
1918
- je.push({ value: e, label: Se[e].name });
1917
+ Object.keys(xe).forEach((e) => {
1918
+ je.push({ value: e, label: xe[e].name });
1919
1919
  });
1920
1920
  const On = {
1921
1921
  options: {
@@ -1982,7 +1982,7 @@ const On = {
1982
1982
  ctrlSchema: {},
1983
1983
  ctrlName: "",
1984
1984
  activeIndex: void 0,
1985
- ctrlMap: Se,
1985
+ ctrlMap: xe,
1986
1986
  activeIndexReg: /(formItems)?\[(\d+)\]/,
1987
1987
  tableStruct: "",
1988
1988
  activeName: "1",
@@ -3367,7 +3367,7 @@ const oo = {
3367
3367
  }
3368
3368
  },
3369
3369
  mounted() {
3370
- $e("el-submenu is-active");
3370
+ ke("el-submenu is-active");
3371
3371
  const e = this.getSetting("navBarNotice");
3372
3372
  e.length > 0 && !this.getSetting("closeNavNotice") && this.showNotice(e) && this.$notify({
3373
3373
  title: "提示",
@@ -3771,7 +3771,7 @@ const Po = {
3771
3771
  }
3772
3772
  },
3773
3773
  methods: {
3774
- onselected: function(e) {
3774
+ onSelected: function(e) {
3775
3775
  this.$router.push(e), this.selected = "";
3776
3776
  }
3777
3777
  }
@@ -3784,7 +3784,7 @@ function Lo(e, t, l, n, o, a) {
3784
3784
  filterable: "",
3785
3785
  placeholder: "搜索菜单...",
3786
3786
  class: "search-menu",
3787
- onChange: a.onselected
3787
+ onChange: a.onSelected
3788
3788
  }, {
3789
3789
  default: r(() => [
3790
3790
  (i(!0), h(S, null, B(a.filterRoutes, (d) => (i(), h(S, {
@@ -3818,7 +3818,7 @@ function Lo(e, t, l, n, o, a) {
3818
3818
  _: 1
3819
3819
  }, 8, ["modelValue", "onChange"]);
3820
3820
  }
3821
- const Mo = /* @__PURE__ */ $(Po, [["render", Lo], ["__scopeId", "data-v-6d6399f4"]]);
3821
+ const Mo = /* @__PURE__ */ $(Po, [["render", Lo], ["__scopeId", "data-v-e8e61700"]]);
3822
3822
  var D = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(D || {}), P = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(P || {});
3823
3823
  const Do = q({
3824
3824
  components: { SidebarItem: Ro, Logo: So, SearchMenu: Mo },
@@ -3840,8 +3840,8 @@ const Do = q({
3840
3840
  const e = this.$route.matched;
3841
3841
  for (let t = e.length - 1; t >= 0; t--) {
3842
3842
  const l = e[t];
3843
- if (l.meta.menuType == P.menu)
3844
- return this.$router.resolve(l.redirect ? l.redirect : l).fullPath;
3843
+ if (l.meta.menuType === P.menu)
3844
+ return ke("is-active"), this.$router.resolve(l.redirect ? l.redirect : l).fullPath;
3845
3845
  }
3846
3846
  return "";
3847
3847
  },
@@ -3860,7 +3860,7 @@ const Do = q({
3860
3860
  }
3861
3861
  },
3862
3862
  mounted() {
3863
- $e("is-active");
3863
+ ke("is-active");
3864
3864
  },
3865
3865
  methods: {
3866
3866
  filterRoute(e) {
@@ -3908,7 +3908,7 @@ function jo(e, t, l, n, o, a) {
3908
3908
  })
3909
3909
  ], 2);
3910
3910
  }
3911
- const No = /* @__PURE__ */ $(Do, [["render", jo], ["__scopeId", "data-v-800716bb"]]);
3911
+ const No = /* @__PURE__ */ $(Do, [["render", jo], ["__scopeId", "data-v-2c68f5d3"]]);
3912
3912
  const Vo = { class: "app-main" }, qo = {
3913
3913
  __name: "AppMain",
3914
3914
  setup(e) {
@@ -4204,15 +4204,15 @@ const da = /* @__PURE__ */ $(sa, [["render", pa], ["__scopeId", "data-v-26068803
4204
4204
  history: sl(),
4205
4205
  routes: ma
4206
4206
  });
4207
- ke.configure({ showSpinner: !1 });
4207
+ we.configure({ showSpinner: !1 });
4208
4208
  function fa(e) {
4209
4209
  e.beforeEach((t, l, n) => {
4210
- ke.start(), t.preHash = location.hash.replace("#", ""), n();
4210
+ we.start(), t.preHash = location.hash.replace("#", ""), n();
4211
4211
  }), e.afterEach((t) => {
4212
4212
  t.matched.length > 0 && E.commit("user/updateState", {
4213
4213
  key: "path",
4214
4214
  value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
4215
- }), ke.done(), $e("is-active");
4215
+ }), we.done();
4216
4216
  });
4217
4217
  }
4218
4218
  function ha() {
@@ -4383,7 +4383,7 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8
4383
4383
  _: 1
4384
4384
  }));
4385
4385
  }
4386
- }, xe = {
4386
+ }, Ee = {
4387
4387
  __name: "form",
4388
4388
  setup(e) {
4389
4389
  const t = pe(), l = (n, o) => {
@@ -5060,13 +5060,13 @@ function Ne(e) {
5060
5060
  function kt(e) {
5061
5061
  return Ye(e) ? e : X(e) ? [e] : [];
5062
5062
  }
5063
- let Ee = {};
5063
+ let $e = {};
5064
5064
  const wt = (e) => {
5065
- const t = Qa[e.type] || Ee[e.type] || e.type;
5065
+ const t = Qa[e.type] || $e[e.type] || e.type;
5066
5066
  return Dt(t, e.props, {
5067
5067
  default: () => kt(e.children).map((l) => wt(l))
5068
5068
  });
5069
- }, es = (e) => (Object.keys(Ee).length === 0 && (Ee = Mt().appContext.components), Ne(Object.values(e.schema)).map((l) => wt(l))), ts = {
5069
+ }, es = (e) => (Object.keys($e).length === 0 && ($e = Mt().appContext.components), Ne(Object.values(e.schema)).map((l) => wt(l))), ts = {
5070
5070
  __name: "custom",
5071
5071
  setup(e) {
5072
5072
  const t = L([]), l = (n, o) => (t.value = jt(n), n);
@@ -5093,7 +5093,7 @@ const ls = (e) => {
5093
5093
  case D.list:
5094
5094
  return gt;
5095
5095
  case D.form:
5096
- return xe;
5096
+ return Ee;
5097
5097
  case D.custom:
5098
5098
  case D.localComp:
5099
5099
  return t(e.view || "");
@@ -5147,7 +5147,7 @@ const St = (e) => {
5147
5147
  }, {
5148
5148
  path: o,
5149
5149
  name: e.name + "新建" + e.id,
5150
- component: xe,
5150
+ component: Ee,
5151
5151
  meta: {
5152
5152
  id: e.id + 99999 + 1,
5153
5153
  title: "新建",
@@ -5160,7 +5160,7 @@ const St = (e) => {
5160
5160
  }, {
5161
5161
  path: a,
5162
5162
  name: e.name + "编辑" + e.id,
5163
- component: xe,
5163
+ component: Ee,
5164
5164
  meta: {
5165
5165
  id: e.id + 99999 + 2,
5166
5166
  title: "编辑",