mooho-base-admin-plus 0.1.51 → 0.1.52

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 (31) hide show
  1. package/dist/mooho-base-admin-plus.min.esm.js +20 -25
  2. package/dist/mooho-base-admin-plus.min.js +3 -3
  3. package/dist/style.css +1 -1
  4. package/package.json +2 -2
  5. package/src/i18n/locale/en-US.js +1 -1
  6. package/src/i18n/locale/lang.js +1 -1
  7. package/src/i18n/locale/zh-CN.js +1 -1
  8. package/src/layouts/basic-layout/index.vue +1 -1
  9. package/src/layouts/basic-layout/mixins/click-item.js +21 -21
  10. package/src/layouts/basic-layout/mixins/sider-menu-badge.js +13 -13
  11. package/src/layouts/basic-layout/mixins/translate-title.js +11 -11
  12. package/src/layouts/basic-layout/water-mark/index.vue +29 -29
  13. package/src/libs/random_str.js +10 -10
  14. package/src/libs/water-mark.js +44 -44
  15. package/src/plugins/log/index.js +25 -0
  16. package/src/styles/common.less +47 -47
  17. package/src/styles/default/index.less +6 -6
  18. package/src/styles/font/demo.css +539 -539
  19. package/src/styles/font/demo_index.html +372 -372
  20. package/src/styles/font/icon-demo/demo.css +539 -539
  21. package/src/styles/font/icon-demo/demo_index.html +423 -423
  22. package/src/styles/font/icon-demo/iconfont.css +61 -61
  23. package/src/styles/font/icon-demo/iconfont.svg +59 -59
  24. package/src/styles/font/iconfont.css +47 -47
  25. package/src/styles/font/iconfont.json +65 -65
  26. package/src/styles/font/ionicons.svg +869 -869
  27. package/src/styles/index.less +7 -7
  28. package/src/styles/layout/basic-layout/layout.less +527 -527
  29. package/src/styles/layout/basic-layout/menu.less +274 -274
  30. package/src/styles/layout/index.less +2 -2
  31. package/src/styles/setting.less +6 -6
@@ -27156,9 +27156,8 @@ var __glob_43_34 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
27156
27156
  __proto__: null,
27157
27157
  "default": _404
27158
27158
  }, Symbol.toStringTag, { value: "Module" }));
27159
- const isClient = typeof window !== "undefined";
27160
27159
  const on$1 = function() {
27161
- if (isClient && document.addEventListener) {
27160
+ if (document.addEventListener) {
27162
27161
  return function(element, event, handler, useCapture = false) {
27163
27162
  if (element && event && handler) {
27164
27163
  element.addEventListener(event, handler, useCapture);
@@ -27173,7 +27172,7 @@ const on$1 = function() {
27173
27172
  }
27174
27173
  }();
27175
27174
  const off$1 = function() {
27176
- if (isClient && document.removeEventListener) {
27175
+ if (document.removeEventListener) {
27177
27176
  return function(element, event, handler, useCapture = false) {
27178
27177
  if (element && event) {
27179
27178
  element.removeEventListener(event, handler, useCapture);
@@ -27203,8 +27202,6 @@ function camelCase(name) {
27203
27202
  }).replace(MOZ_HACK_REGEXP, "Moz$1");
27204
27203
  }
27205
27204
  function getStyle$1(element, styleName) {
27206
- if (!isClient)
27207
- return;
27208
27205
  if (!element || !styleName)
27209
27206
  return null;
27210
27207
  styleName = camelCase(styleName);
@@ -27234,19 +27231,19 @@ function findComponentUpward(context, componentName, componentNames) {
27234
27231
  return parent;
27235
27232
  }
27236
27233
  function setMatchMedia() {
27237
- if (!isClient)
27238
- return;
27239
- const matchMediaPolyfill = (mediaQuery) => {
27240
- return {
27241
- media: mediaQuery,
27242
- matches: false,
27243
- on() {
27244
- },
27245
- off() {
27246
- }
27234
+ if (typeof window !== "undefined") {
27235
+ const matchMediaPolyfill = (mediaQuery) => {
27236
+ return {
27237
+ media: mediaQuery,
27238
+ matches: false,
27239
+ on() {
27240
+ },
27241
+ off() {
27242
+ }
27243
+ };
27247
27244
  };
27248
- };
27249
- window.matchMedia = window.matchMedia || matchMediaPolyfill;
27245
+ window.matchMedia = window.matchMedia || matchMediaPolyfill;
27246
+ }
27250
27247
  }
27251
27248
  setMatchMedia();
27252
27249
  const _sfc_main$F = {
@@ -30853,8 +30850,6 @@ var mixinsLink = {
30853
30850
  },
30854
30851
  methods: {
30855
30852
  handleOpenTo() {
30856
- if (!isClient)
30857
- return;
30858
30853
  const router2 = this.$router;
30859
30854
  let to = this.to;
30860
30855
  if (router2) {
@@ -30868,8 +30863,6 @@ var mixinsLink = {
30868
30863
  },
30869
30864
  handleClick(new_window = false) {
30870
30865
  const router2 = this.$router;
30871
- if (!isClient)
30872
- return;
30873
30866
  if (new_window) {
30874
30867
  this.handleOpenTo();
30875
30868
  } else {
@@ -50123,7 +50116,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
50123
50116
  createVNode$1(_component_router_view, null, {
50124
50117
  default: withCtx(({ Component }) => [
50125
50118
  (openBlock(), createBlock(KeepAlive, { include: _ctx.keepAlive }, [
50126
- $data.loadRouter ? (openBlock(), createBlock(resolveDynamicComponent(Component), { key: 0 })) : createCommentVNode("", true)
50119
+ $data.loadRouter ? (openBlock(), createBlock(resolveDynamicComponent(Component), {
50120
+ key: _ctx.$route.name
50121
+ })) : createCommentVNode("", true)
50127
50122
  ], 1032, ["include"]))
50128
50123
  ]),
50129
50124
  _: 1
@@ -73177,8 +73172,8 @@ var idBase = +new Date() - 0;
73177
73172
  var groupIdBase = +new Date() - 0;
73178
73173
  var DOM_ATTRIBUTE_KEY = "_echarts_instance_";
73179
73174
  function init$1(dom, theme2, opts) {
73180
- var isClient2 = !(opts && opts.ssr);
73181
- if (isClient2) {
73175
+ var isClient = !(opts && opts.ssr);
73176
+ if (isClient) {
73182
73177
  var existInstance = getInstanceByDom(dom);
73183
73178
  if (existInstance) {
73184
73179
  return existInstance;
@@ -73187,7 +73182,7 @@ function init$1(dom, theme2, opts) {
73187
73182
  var chart = new ECharts(dom, theme2, opts);
73188
73183
  chart.id = "ec_" + idBase++;
73189
73184
  instances[chart.id] = chart;
73190
- isClient2 && setAttribute(dom, DOM_ATTRIBUTE_KEY, chart.id);
73185
+ isClient && setAttribute(dom, DOM_ATTRIBUTE_KEY, chart.id);
73191
73186
  enableConnect(chart);
73192
73187
  lifecycle$1.trigger("afterinit", chart);
73193
73188
  return chart;