mooho-base-admin-plus 2.0.43 → 2.0.45

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.
@@ -1297,105 +1297,6 @@ function init$4(converter, defaultAttributes) {
1297
1297
  );
1298
1298
  }
1299
1299
  var api = init$4(defaultConverter, { path: "/" });
1300
- const Setting = {
1301
- info: {},
1302
- appID: "app",
1303
- titleSuffix: "Admin Plus",
1304
- routerMode: "history",
1305
- showProgressBar: true,
1306
- cookiesExpires: 1,
1307
- i18n: {
1308
- default: "zh-CN",
1309
- auto: false,
1310
- refresh: false
1311
- },
1312
- lodop: {
1313
- name: "\u5357\u4EAC\u6469\u8D6B\u4FE1\u606F\u6280\u672F\u6709\u9650\u516C\u53F8",
1314
- key: "58C4DF8932E17DEBE409D1E7F683CAFE"
1315
- },
1316
- menuSideWidth: 256,
1317
- headerHeight: 64,
1318
- menuSideCollapseWidth: 80,
1319
- layout: {
1320
- siderTheme: "dark",
1321
- headerTheme: "light",
1322
- headerStick: false,
1323
- tabs: false,
1324
- showTabsIcon: true,
1325
- tabsFix: true,
1326
- tabsReload: false,
1327
- tabsOrder: true,
1328
- siderFix: true,
1329
- headerFix: true,
1330
- headerHide: true,
1331
- headerMenu: false,
1332
- menuAccordion: true,
1333
- showSiderCollapse: true,
1334
- menuCollapse: false,
1335
- menuSiderReload: false,
1336
- menuHeaderReload: false,
1337
- showCollapseMenuTitle: false,
1338
- showReload: false,
1339
- showSearch: false,
1340
- showNotice: false,
1341
- showFullscreen: true,
1342
- showMobileLogo: true,
1343
- showBreadcrumb: true,
1344
- showBreadcrumbIcon: false,
1345
- showLog: false,
1346
- showI18n: false,
1347
- enableSetting: false,
1348
- logoutConfirm: true,
1349
- autoFixRatio: true,
1350
- maskClosable: true,
1351
- draggable: true,
1352
- alertStyle: "SweetAlert",
1353
- filterWidth: 125
1354
- },
1355
- page: {
1356
- opened: [],
1357
- loadOpenedTabs: true
1358
- },
1359
- waterMark: {
1360
- show: false,
1361
- text: "MOOHO",
1362
- options: {}
1363
- },
1364
- sameRouteForceUpdate: false
1365
- };
1366
- const copyTo = (source2, target) => {
1367
- for (let key in source2) {
1368
- if (typeof source2[key] === "object") {
1369
- if (target[key] == null) {
1370
- target[key] = {};
1371
- }
1372
- copyTo(source2[key], target[key]);
1373
- } else {
1374
- target[key] = source2[key];
1375
- }
1376
- }
1377
- };
1378
- let localSetting = window.setting;
1379
- if (localSetting) {
1380
- copyTo(localSetting, Setting);
1381
- }
1382
- const cookies$2 = {};
1383
- cookies$2.set = function(name = "default", value = "", cookieSetting = {}) {
1384
- let currentCookieSetting = {};
1385
- if (Setting.cookiesExpires !== 0)
1386
- currentCookieSetting.expires = Setting.cookiesExpires;
1387
- Object.assign(currentCookieSetting, cookieSetting);
1388
- api.set(`admin-plus-${Setting.appID}-${name}`, value, currentCookieSetting);
1389
- };
1390
- cookies$2.get = function(name = "default") {
1391
- return api.get(`admin-plus-${Setting.appID}-${name}`);
1392
- };
1393
- cookies$2.getAll = function() {
1394
- return api.get();
1395
- };
1396
- cookies$2.remove = function(name = "default") {
1397
- return api.remove(`admin-plus-${Setting.appID}-${name}`);
1398
- };
1399
1300
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
1400
1301
  function getDefaultExportFromCjs(x2) {
1401
1302
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
@@ -6853,6 +6754,93 @@ var lodash$1 = { exports: {} };
6853
6754
  }
6854
6755
  }).call(commonjsGlobal);
6855
6756
  })(lodash$1, lodash$1.exports);
6757
+ const Setting = {
6758
+ info: {},
6759
+ appID: "app",
6760
+ titleSuffix: "Admin Plus",
6761
+ routerMode: "history",
6762
+ showProgressBar: true,
6763
+ cookiesExpires: 1,
6764
+ i18n: {
6765
+ default: "zh-CN",
6766
+ auto: false,
6767
+ refresh: false
6768
+ },
6769
+ lodop: {
6770
+ name: "\u5357\u4EAC\u6469\u8D6B\u4FE1\u606F\u6280\u672F\u6709\u9650\u516C\u53F8",
6771
+ key: "58C4DF8932E17DEBE409D1E7F683CAFE"
6772
+ },
6773
+ menuSideWidth: 256,
6774
+ headerHeight: 64,
6775
+ menuSideCollapseWidth: 80,
6776
+ layout: {
6777
+ siderTheme: "dark",
6778
+ headerTheme: "light",
6779
+ headerStick: false,
6780
+ tabs: false,
6781
+ showTabsIcon: true,
6782
+ tabsFix: true,
6783
+ tabsReload: false,
6784
+ tabsOrder: true,
6785
+ siderFix: true,
6786
+ headerFix: true,
6787
+ headerHide: true,
6788
+ headerMenu: false,
6789
+ menuAccordion: true,
6790
+ showSiderCollapse: true,
6791
+ menuCollapse: false,
6792
+ menuSiderReload: false,
6793
+ menuHeaderReload: false,
6794
+ showCollapseMenuTitle: false,
6795
+ showReload: false,
6796
+ showSearch: false,
6797
+ showNotice: false,
6798
+ showFullscreen: true,
6799
+ showMobileLogo: true,
6800
+ showBreadcrumb: true,
6801
+ showBreadcrumbIcon: false,
6802
+ showLog: false,
6803
+ showI18n: false,
6804
+ enableSetting: false,
6805
+ logoutConfirm: true,
6806
+ autoFixRatio: true,
6807
+ maskClosable: true,
6808
+ draggable: true,
6809
+ alertStyle: "SweetAlert",
6810
+ filterWidth: 125
6811
+ },
6812
+ page: {
6813
+ opened: [],
6814
+ loadOpenedTabs: true
6815
+ },
6816
+ waterMark: {
6817
+ show: false,
6818
+ text: "MOOHO",
6819
+ options: {}
6820
+ },
6821
+ sameRouteForceUpdate: false
6822
+ };
6823
+ let localSetting = window.setting;
6824
+ if (localSetting) {
6825
+ lodash$1.exports.defaultsDeep(Setting, localSetting);
6826
+ }
6827
+ const cookies$2 = {};
6828
+ cookies$2.set = function(name = "default", value = "", cookieSetting = {}) {
6829
+ let currentCookieSetting = {};
6830
+ if (Setting.cookiesExpires !== 0)
6831
+ currentCookieSetting.expires = Setting.cookiesExpires;
6832
+ Object.assign(currentCookieSetting, cookieSetting);
6833
+ api.set(`admin-plus-${Setting.appID}-${name}`, value, currentCookieSetting);
6834
+ };
6835
+ cookies$2.get = function(name = "default") {
6836
+ return api.get(`admin-plus-${Setting.appID}-${name}`);
6837
+ };
6838
+ cookies$2.getAll = function() {
6839
+ return api.get();
6840
+ };
6841
+ cookies$2.remove = function(name = "default") {
6842
+ return api.remove(`admin-plus-${Setting.appID}-${name}`);
6843
+ };
6856
6844
  var isPromise$4 = { exports: {} };
6857
6845
  isPromise$4.exports = isPromise$3;
6858
6846
  isPromise$4.exports.default = isPromise$3;
@@ -35483,6 +35471,11 @@ const _sfc_main$C = {
35483
35471
  this.selectedData = null;
35484
35472
  return;
35485
35473
  } else if (this.multi) {
35474
+ if (!this.isJSON(this.modelValue)) {
35475
+ this.selected = null;
35476
+ this.selectedData = null;
35477
+ return;
35478
+ }
35486
35479
  let filter2 = {
35487
35480
  page: 1,
35488
35481
  per: 999