mooho-base-admin-plus 0.1.50 → 0.1.51
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/.env +1 -1
- package/dist/mooho-base-admin-plus.min.esm.js +24 -17
- package/dist/mooho-base-admin-plus.min.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/i18n/locale/en-US.js +1 -1
- package/src/i18n/locale/lang.js +1 -1
- package/src/i18n/locale/zh-CN.js +1 -1
- package/src/layouts/basic-layout/mixins/click-item.js +21 -21
- package/src/layouts/basic-layout/mixins/sider-menu-badge.js +13 -13
- package/src/layouts/basic-layout/mixins/translate-title.js +11 -11
- package/src/layouts/basic-layout/water-mark/index.vue +29 -29
- package/src/libs/random_str.js +10 -10
- package/src/libs/water-mark.js +44 -44
- package/src/styles/common.less +47 -47
- package/src/styles/default/index.less +6 -6
- package/src/styles/font/demo.css +539 -539
- package/src/styles/font/demo_index.html +372 -372
- package/src/styles/font/icon-demo/demo.css +539 -539
- package/src/styles/font/icon-demo/demo_index.html +423 -423
- package/src/styles/font/icon-demo/iconfont.css +61 -61
- package/src/styles/font/icon-demo/iconfont.svg +59 -59
- package/src/styles/font/iconfont.css +47 -47
- package/src/styles/font/iconfont.json +65 -65
- package/src/styles/font/ionicons.svg +869 -869
- package/src/styles/index.less +7 -7
- package/src/styles/layout/basic-layout/layout.less +527 -527
- package/src/styles/layout/basic-layout/menu.less +274 -274
- package/src/styles/layout/index.less +2 -2
- package/src/styles/setting.less +6 -6
- package/test/main.js +0 -1
- package/src/plugins/log/index.js +0 -25
package/.env
CHANGED
|
@@ -27156,8 +27156,9 @@ 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";
|
|
27159
27160
|
const on$1 = function() {
|
|
27160
|
-
if (document.addEventListener) {
|
|
27161
|
+
if (isClient && document.addEventListener) {
|
|
27161
27162
|
return function(element, event, handler, useCapture = false) {
|
|
27162
27163
|
if (element && event && handler) {
|
|
27163
27164
|
element.addEventListener(event, handler, useCapture);
|
|
@@ -27172,7 +27173,7 @@ const on$1 = function() {
|
|
|
27172
27173
|
}
|
|
27173
27174
|
}();
|
|
27174
27175
|
const off$1 = function() {
|
|
27175
|
-
if (document.removeEventListener) {
|
|
27176
|
+
if (isClient && document.removeEventListener) {
|
|
27176
27177
|
return function(element, event, handler, useCapture = false) {
|
|
27177
27178
|
if (element && event) {
|
|
27178
27179
|
element.removeEventListener(event, handler, useCapture);
|
|
@@ -27202,6 +27203,8 @@ function camelCase(name) {
|
|
|
27202
27203
|
}).replace(MOZ_HACK_REGEXP, "Moz$1");
|
|
27203
27204
|
}
|
|
27204
27205
|
function getStyle$1(element, styleName) {
|
|
27206
|
+
if (!isClient)
|
|
27207
|
+
return;
|
|
27205
27208
|
if (!element || !styleName)
|
|
27206
27209
|
return null;
|
|
27207
27210
|
styleName = camelCase(styleName);
|
|
@@ -27231,19 +27234,19 @@ function findComponentUpward(context, componentName, componentNames) {
|
|
|
27231
27234
|
return parent;
|
|
27232
27235
|
}
|
|
27233
27236
|
function setMatchMedia() {
|
|
27234
|
-
if (
|
|
27235
|
-
|
|
27236
|
-
|
|
27237
|
-
|
|
27238
|
-
|
|
27239
|
-
|
|
27240
|
-
|
|
27241
|
-
|
|
27242
|
-
|
|
27243
|
-
}
|
|
27237
|
+
if (!isClient)
|
|
27238
|
+
return;
|
|
27239
|
+
const matchMediaPolyfill = (mediaQuery) => {
|
|
27240
|
+
return {
|
|
27241
|
+
media: mediaQuery,
|
|
27242
|
+
matches: false,
|
|
27243
|
+
on() {
|
|
27244
|
+
},
|
|
27245
|
+
off() {
|
|
27246
|
+
}
|
|
27244
27247
|
};
|
|
27245
|
-
|
|
27246
|
-
|
|
27248
|
+
};
|
|
27249
|
+
window.matchMedia = window.matchMedia || matchMediaPolyfill;
|
|
27247
27250
|
}
|
|
27248
27251
|
setMatchMedia();
|
|
27249
27252
|
const _sfc_main$F = {
|
|
@@ -30850,6 +30853,8 @@ var mixinsLink = {
|
|
|
30850
30853
|
},
|
|
30851
30854
|
methods: {
|
|
30852
30855
|
handleOpenTo() {
|
|
30856
|
+
if (!isClient)
|
|
30857
|
+
return;
|
|
30853
30858
|
const router2 = this.$router;
|
|
30854
30859
|
let to = this.to;
|
|
30855
30860
|
if (router2) {
|
|
@@ -30863,6 +30868,8 @@ var mixinsLink = {
|
|
|
30863
30868
|
},
|
|
30864
30869
|
handleClick(new_window = false) {
|
|
30865
30870
|
const router2 = this.$router;
|
|
30871
|
+
if (!isClient)
|
|
30872
|
+
return;
|
|
30866
30873
|
if (new_window) {
|
|
30867
30874
|
this.handleOpenTo();
|
|
30868
30875
|
} else {
|
|
@@ -73170,8 +73177,8 @@ var idBase = +new Date() - 0;
|
|
|
73170
73177
|
var groupIdBase = +new Date() - 0;
|
|
73171
73178
|
var DOM_ATTRIBUTE_KEY = "_echarts_instance_";
|
|
73172
73179
|
function init$1(dom, theme2, opts) {
|
|
73173
|
-
var
|
|
73174
|
-
if (
|
|
73180
|
+
var isClient2 = !(opts && opts.ssr);
|
|
73181
|
+
if (isClient2) {
|
|
73175
73182
|
var existInstance = getInstanceByDom(dom);
|
|
73176
73183
|
if (existInstance) {
|
|
73177
73184
|
return existInstance;
|
|
@@ -73180,7 +73187,7 @@ function init$1(dom, theme2, opts) {
|
|
|
73180
73187
|
var chart = new ECharts(dom, theme2, opts);
|
|
73181
73188
|
chart.id = "ec_" + idBase++;
|
|
73182
73189
|
instances[chart.id] = chart;
|
|
73183
|
-
|
|
73190
|
+
isClient2 && setAttribute(dom, DOM_ATTRIBUTE_KEY, chart.id);
|
|
73184
73191
|
enableConnect(chart);
|
|
73185
73192
|
lifecycle$1.trigger("afterinit", chart);
|
|
73186
73193
|
return chart;
|