mooho-base-admin-plus 2.4.57 → 2.4.58

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/history.md CHANGED
@@ -89,3 +89,4 @@ mooho-base-admin-plus@2.4.54 - 修复上一版本bug
89
89
  mooho-base-admin-plus@2.4.55 - 改变task-form组件位置,使其允许被项目引用
90
90
  mooho-base-admin-plus@2.4.56 - 列表必填项加星号
91
91
  mooho-base-admin-plus@2.4.57 - 修复多行文本框筛选的bug
92
+ mooho-base-admin-plus@2.4.58 - 如果表单有值,viewForm中loadView的时候不设置默认值
@@ -15285,8 +15285,8 @@ var __glob_5_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
15285
15285
  }, Symbol.toStringTag, { value: "Module" }));
15286
15286
  var vueI18n = {};
15287
15287
  /*!
15288
- * shared v9.8.0
15289
- * (c) 2023 kazuya kawaguchi
15288
+ * shared v9.9.0
15289
+ * (c) 2024 kazuya kawaguchi
15290
15290
  * Released under the MIT License.
15291
15291
  */
15292
15292
  const inBrowser$1 = typeof window !== "undefined";
@@ -15438,14 +15438,16 @@ function deepCopy(src, des) {
15438
15438
  if (isNotObjectOrIsArray(src) || isNotObjectOrIsArray(des)) {
15439
15439
  throw new Error("Invalid value");
15440
15440
  }
15441
- for (const key in src) {
15442
- if (hasOwn$1(src, key)) {
15443
- if (isNotObjectOrIsArray(src[key]) || isNotObjectOrIsArray(des[key])) {
15444
- des[key] = src[key];
15441
+ const stack = [{ src, des }];
15442
+ while (stack.length) {
15443
+ const { src: src2, des: des2 } = stack.pop();
15444
+ Object.keys(src2).forEach((key) => {
15445
+ if (isNotObjectOrIsArray(src2[key]) || isNotObjectOrIsArray(des2[key])) {
15446
+ des2[key] = src2[key];
15445
15447
  } else {
15446
- deepCopy(src[key], des[key]);
15448
+ stack.push({ src: src2[key], des: des2[key] });
15447
15449
  }
15448
- }
15450
+ });
15449
15451
  }
15450
15452
  }
15451
15453
  var shared_esmBrowser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -15490,8 +15492,8 @@ var shared_esmBrowser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
15490
15492
  }, Symbol.toStringTag, { value: "Module" }));
15491
15493
  var require$$0 = /* @__PURE__ */ getAugmentedNamespace(shared_esmBrowser);
15492
15494
  /*!
15493
- * core-base v9.8.0
15494
- * (c) 2023 kazuya kawaguchi
15495
+ * core-base v9.9.0
15496
+ * (c) 2024 kazuya kawaguchi
15495
15497
  * Released under the MIT License.
15496
15498
  */
15497
15499
  const inBrowser = typeof window !== "undefined";
@@ -17408,7 +17410,7 @@ function appendItemToChain(chain, target, blocks) {
17408
17410
  }
17409
17411
  return follow;
17410
17412
  }
17411
- const VERSION$1 = "9.8.0";
17413
+ const VERSION$1 = "9.9.0";
17412
17414
  const NOT_REOSLVED = -1;
17413
17415
  const DEFAULT_LOCALE$1 = "en-US";
17414
17416
  const MISSING_RESOLVE_VALUE = "";
@@ -18338,14 +18340,14 @@ var coreBase_esmBrowser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
18338
18340
  }, Symbol.toStringTag, { value: "Module" }));
18339
18341
  var require$$1$1 = /* @__PURE__ */ getAugmentedNamespace(coreBase_esmBrowser);
18340
18342
  /*!
18341
- * vue-i18n v9.8.0
18342
- * (c) 2023 kazuya kawaguchi
18343
+ * vue-i18n v9.9.0
18344
+ * (c) 2024 kazuya kawaguchi
18343
18345
  * Released under the MIT License.
18344
18346
  */
18345
18347
  var shared = require$$0;
18346
18348
  var coreBase = require$$1$1;
18347
18349
  var vue = require$$0$1;
18348
- const VERSION = "9.8.0";
18350
+ const VERSION = "9.9.0";
18349
18351
  const code$1 = coreBase.CoreWarnCodes.__EXTEND_POINT__;
18350
18352
  const inc$1 = shared.incrementer(code$1);
18351
18353
  const I18nWarnCodes = {
@@ -18546,16 +18548,17 @@ function createComposer(options = {}, VueI18nLegacy) {
18546
18548
  const { __root, __injectWithOption } = options;
18547
18549
  const _isGlobal = __root === void 0;
18548
18550
  const flatJson = options.flatJson;
18551
+ const _ref = shared.inBrowser ? vue.ref : vue.shallowRef;
18549
18552
  let _inheritLocale = shared.isBoolean(options.inheritLocale) ? options.inheritLocale : true;
18550
- const _locale = vue.ref(
18553
+ const _locale = _ref(
18551
18554
  __root && _inheritLocale ? __root.locale.value : shared.isString(options.locale) ? options.locale : coreBase.DEFAULT_LOCALE
18552
18555
  );
18553
- const _fallbackLocale = vue.ref(
18556
+ const _fallbackLocale = _ref(
18554
18557
  __root && _inheritLocale ? __root.fallbackLocale.value : shared.isString(options.fallbackLocale) || shared.isArray(options.fallbackLocale) || shared.isPlainObject(options.fallbackLocale) || options.fallbackLocale === false ? options.fallbackLocale : _locale.value
18555
18558
  );
18556
- const _messages = vue.ref(getLocaleMessages(_locale.value, options));
18557
- const _datetimeFormats = vue.ref(shared.isPlainObject(options.datetimeFormats) ? options.datetimeFormats : { [_locale.value]: {} });
18558
- const _numberFormats = vue.ref(shared.isPlainObject(options.numberFormats) ? options.numberFormats : { [_locale.value]: {} });
18559
+ const _messages = _ref(getLocaleMessages(_locale.value, options));
18560
+ const _datetimeFormats = _ref(shared.isPlainObject(options.datetimeFormats) ? options.datetimeFormats : { [_locale.value]: {} });
18561
+ const _numberFormats = _ref(shared.isPlainObject(options.numberFormats) ? options.numberFormats : { [_locale.value]: {} });
18559
18562
  let _missingWarn = __root ? __root.missingWarn : shared.isBoolean(options.missingWarn) || shared.isRegExp(options.missingWarn) ? options.missingWarn : true;
18560
18563
  let _fallbackWarn = __root ? __root.fallbackWarn : shared.isBoolean(options.fallbackWarn) || shared.isRegExp(options.fallbackWarn) ? options.fallbackWarn : true;
18561
18564
  let _fallbackRoot = __root ? __root.fallbackRoot : shared.isBoolean(options.fallbackRoot) ? options.fallbackRoot : true;
@@ -38864,6 +38867,9 @@ const _sfc_main$12 = {
38864
38867
  }
38865
38868
  });
38866
38869
  }
38870
+ if (column.dataSource.length > 0 && column.isDefaultFirst) {
38871
+ this.setFilterData(this.data, column, column.dataSource[0].id);
38872
+ }
38867
38873
  }
38868
38874
  });
38869
38875
  },
@@ -38885,6 +38891,7 @@ const _sfc_main$12 = {
38885
38891
  });
38886
38892
  },
38887
38893
  async fillDataSource(data2, column, param) {
38894
+ console.log("0");
38888
38895
  let value;
38889
38896
  if (column.controlType === "TreeSelect" || column.controlType === "MultiTreeSelect") {
38890
38897
  value = this.parseTreeFilterData(data2, column);
@@ -38919,6 +38926,7 @@ const _sfc_main$12 = {
38919
38926
  name: this.parseData(item, column.sourceDisplayCode)
38920
38927
  };
38921
38928
  });
38929
+ console.log("1");
38922
38930
  if (data2) {
38923
38931
  if (this.parseFilterData(data2, column) == null && column.isDefaultFirst && res2.length > 0) {
38924
38932
  this.setData(data2, column.code, this.parseData(res2[0], column.sourceDataCode));
@@ -40775,7 +40783,9 @@ const _sfc_main$$ = {
40775
40783
  this.formView.columns = view.viewColumns;
40776
40784
  this.$emit("on-ready", this.formView);
40777
40785
  this.columns = view.viewColumns;
40778
- this.data = this.getDefaultData();
40786
+ if (!this.data) {
40787
+ this.data = this.getDefaultData();
40788
+ }
40779
40789
  setTimeout(() => {
40780
40790
  this.initTab();
40781
40791
  this.initStaticItem();
@@ -41022,6 +41032,9 @@ const _sfc_main$$ = {
41022
41032
  }
41023
41033
  });
41024
41034
  }
41035
+ if (column.dataSource.length > 0 && column.isDefaultFirst) {
41036
+ this.setData(this.data, column.code, column.dataSource[0].id);
41037
+ }
41025
41038
  }
41026
41039
  });
41027
41040
  },