cloud-web-corejs 1.0.54-dev.683 → 1.0.54-dev.684

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.683",
4
+ "version": "1.0.54-dev.684",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -261,8 +261,8 @@ export default {
261
261
  },
262
262
  canNextLevel() {
263
263
  return (
264
- this.activeLevel < this.browseLevelCount
265
- && this.isTabEnabled(this.activeLevel + 1)
264
+ this.activeLevel < this.browseLevelCount &&
265
+ this.isTabEnabled(this.activeLevel + 1)
266
266
  );
267
267
  },
268
268
  browseLevelCount() {
@@ -337,10 +337,10 @@ export default {
337
337
  },
338
338
  isLegacyPathValue(val) {
339
339
  return (
340
- this.valueFormat === "path"
341
- && val != null
342
- && String(val).includes(",")
343
- && !String(val).startsWith(",")
340
+ this.valueFormat === "path" &&
341
+ val != null &&
342
+ String(val).includes(",") &&
343
+ !String(val).startsWith(",")
344
344
  );
345
345
  },
346
346
  parseTreePathIds(treePath) {
@@ -416,8 +416,8 @@ export default {
416
416
  },
417
417
  formatAreaPathResult(value, path, label) {
418
418
  const result = this.createEmptyAreaPathResult(value);
419
- result.label
420
- = label != null && label !== ""
419
+ result.label =
420
+ label != null && label !== ""
421
421
  ? label
422
422
  : this.buildPathLabel(path) || this.labelValue || null;
423
423
  result.path = path || [];
@@ -451,10 +451,10 @@ export default {
451
451
  const leafId = this.getLeafIdFromValue(val);
452
452
  let path = null;
453
453
  if (
454
- leafId != null
455
- && this.isValueSynced(leafId)
456
- && !this.shouldResyncBrowsePath()
457
- && this.selectedPath.length
454
+ leafId != null &&
455
+ this.isValueSynced(leafId) &&
456
+ !this.shouldResyncBrowsePath() &&
457
+ this.selectedPath.length
458
458
  ) {
459
459
  path = this.selectedPath.map((item) => ({ ...item }));
460
460
  }
@@ -747,18 +747,18 @@ export default {
747
747
  buildAreaPath(item, depthLimit) {
748
748
  const limit = depthLimit == null ? this.maxLevel : depthLimit;
749
749
  if (
750
- item.pathList
751
- && Array.isArray(item.pathList)
752
- && item.pathList.length > 1
750
+ item.pathList &&
751
+ Array.isArray(item.pathList) &&
752
+ item.pathList.length > 1
753
753
  ) {
754
754
  if (this.isAreaObject(item.pathList[0])) {
755
755
  return item.pathList.slice(0, limit);
756
756
  }
757
757
  }
758
758
  if (
759
- item.areaPath
760
- && Array.isArray(item.areaPath)
761
- && item.areaPath.length > 1
759
+ item.areaPath &&
760
+ Array.isArray(item.areaPath) &&
761
+ item.areaPath.length > 1
762
762
  ) {
763
763
  if (this.isAreaObject(item.areaPath[0])) {
764
764
  return item.areaPath.slice(0, limit);
@@ -868,8 +868,8 @@ export default {
868
868
  if (this.isPathResolvedForItem(parentPath, item)) {
869
869
  return parentPath;
870
870
  }
871
- const depthLimit
872
- = options.depthLimit != null
871
+ const depthLimit =
872
+ options.depthLimit != null
873
873
  ? options.depthLimit
874
874
  : this.getResolveDepthLimit(item);
875
875
  if (item.treePath) {
@@ -925,10 +925,10 @@ export default {
925
925
  const token = ++this.syncToken;
926
926
  let seed = item || {};
927
927
  if (
928
- seed.id != null
929
- && !seed.fullName
930
- && !seed.name
931
- && !this.getParentIdFromRow(seed)
928
+ seed.id != null &&
929
+ !seed.fullName &&
930
+ !seed.name &&
931
+ !this.getParentIdFromRow(seed)
932
932
  ) {
933
933
  const detail = await this.fetchAreaById(seed.id);
934
934
  if (detail) {
@@ -1035,7 +1035,7 @@ export default {
1035
1035
  },
1036
1036
  doSearch(keyword) {
1037
1037
  this.searchLoading = true;
1038
- this.requestAreaList({ name: keyword, size: 20 }).then((rows) => {
1038
+ this.requestAreaList({ fullName: keyword, size: 20 }).then((rows) => {
1039
1039
  this.searchList = rows;
1040
1040
  this.searchLoading = false;
1041
1041
  });