@indfnd/common 0.1.86 → 0.1.89
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/CHANGELOG.md +14 -0
- package/dist/ind-common.es.js +27 -15
- package/dist/ind-common.umd.cjs +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.89](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.87...v0.1.89) (2024-06-11)
|
|
6
|
+
|
|
7
|
+
### [0.1.88](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.87...v0.1.88) (2024-06-11)
|
|
8
|
+
|
|
9
|
+
### [0.1.87](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.88...v0.1.87) (2024-06-11)
|
|
10
|
+
|
|
11
|
+
### [0.1.88](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.86...v0.1.88) (2024-06-11)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* 地市树增加默认省内和根节点展开属性 ([6af9249](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/6af92493cc7039beec253941c66fb49ccbcd6ef9))
|
|
17
|
+
* 地市树增加默认省内和根节点展开属性 ([88074e5](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/88074e5096b478f17f15ae785f9986f80c237ae8))
|
|
18
|
+
|
|
5
19
|
### [0.1.86](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.85...v0.1.86) (2024-06-07)
|
|
6
20
|
|
|
7
21
|
### [0.1.85](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.84...v0.1.85) (2024-06-07)
|
package/dist/ind-common.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Button as Button$1, ButtonGroup as ButtonGroup$1, Input, Drawer as Draw
|
|
|
2
2
|
import { isNil, formatDate as formatDate$1, useConfig, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, isFunction, isString, uuid, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, getPermissionCache, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, putOssFileApi, isEqual, getCaptchaURL, getLocalStorage, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getToken, putOssFileUrl, getOssFileUrl, responseInterceptors, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, getSessionStorage, setSessionStorage, getAppListApi, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, getIndexDescCache, listIndexDescApi, setIndexDescCache } from "@indfnd/utils";
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
const name$1 = "@indfnd/common";
|
|
5
|
-
const version = "0.1.
|
|
5
|
+
const version = "0.1.88";
|
|
6
6
|
const author = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -54219,6 +54219,7 @@ const __vue2_script$V = {
|
|
|
54219
54219
|
selectFirstLeaf: Boolean,
|
|
54220
54220
|
hideFirstLevel: Boolean,
|
|
54221
54221
|
foldFirstLevel: Boolean,
|
|
54222
|
+
expandProvincial: Boolean,
|
|
54222
54223
|
expandAll: Boolean,
|
|
54223
54224
|
defaultExpandLevel: Number,
|
|
54224
54225
|
showCheckbox: Boolean,
|
|
@@ -54349,10 +54350,15 @@ const __vue2_script$V = {
|
|
|
54349
54350
|
node.status = "";
|
|
54350
54351
|
node.statusName = "";
|
|
54351
54352
|
node.statusColor = "";
|
|
54353
|
+
if (this.expandProvincial) {
|
|
54354
|
+
node.expand = node.comIsImported == "0" || node.id == "ALL";
|
|
54355
|
+
} else {
|
|
54356
|
+
node.expand = node.id == "ALL";
|
|
54357
|
+
}
|
|
54352
54358
|
if (!node.expand) {
|
|
54353
54359
|
node.expand = false;
|
|
54354
54360
|
}
|
|
54355
|
-
if (this.expandAll) {
|
|
54361
|
+
if (this.expandAll || node.expand) {
|
|
54356
54362
|
node.expand = true;
|
|
54357
54363
|
} else if (this.defaultExpandLevel != void 0) {
|
|
54358
54364
|
node.expand = node.level <= this.defaultExpandLevel;
|
|
@@ -54424,7 +54430,7 @@ const __vue2_script$V = {
|
|
|
54424
54430
|
},
|
|
54425
54431
|
setDefaultValue2Nodes() {
|
|
54426
54432
|
deepEach$2(this.treeData, (node) => {
|
|
54427
|
-
node.expand = this.expandAll ? true : node.expand;
|
|
54433
|
+
node.expand = this.expandAll || node.expand ? true : node.expand;
|
|
54428
54434
|
if (this.defaultExpandLevel != void 0) {
|
|
54429
54435
|
node.expand = node.level <= this.defaultExpandLevel;
|
|
54430
54436
|
}
|
|
@@ -54440,7 +54446,7 @@ const __vue2_script$V = {
|
|
|
54440
54446
|
}
|
|
54441
54447
|
});
|
|
54442
54448
|
deepEach$2(this.backupTreeData, (node) => {
|
|
54443
|
-
node.expand = this.expandAll ? true : node.expand;
|
|
54449
|
+
node.expand = this.expandAll || node.expand ? true : node.expand;
|
|
54444
54450
|
if (this.defaultExpandLevel != void 0) {
|
|
54445
54451
|
node.expand = node.level <= this.defaultExpandLevel;
|
|
54446
54452
|
}
|
|
@@ -54864,7 +54870,7 @@ const __vue2_script$V = {
|
|
|
54864
54870
|
},
|
|
54865
54871
|
clearCheckedAndSelectedNodes(byDefault) {
|
|
54866
54872
|
deepEach$2(this.treeData, (node) => {
|
|
54867
|
-
node.expand = this.expandAll ? true : false;
|
|
54873
|
+
node.expand = this.expandAll || node.expand ? true : false;
|
|
54868
54874
|
if (this.defaultExpandLevel != void 0) {
|
|
54869
54875
|
node.expand = node.level <= this.defaultExpandLevel;
|
|
54870
54876
|
}
|
|
@@ -54880,7 +54886,7 @@ const __vue2_script$V = {
|
|
|
54880
54886
|
}
|
|
54881
54887
|
}
|
|
54882
54888
|
deepEach$2(this.backupTreeData, (node) => {
|
|
54883
|
-
node.expand = this.expandAll ? true : false;
|
|
54889
|
+
node.expand = this.expandAll || node.expand ? true : false;
|
|
54884
54890
|
if (this.defaultExpandLevel != void 0) {
|
|
54885
54891
|
node.expand = node.level <= this.defaultExpandLevel;
|
|
54886
54892
|
}
|
|
@@ -54949,7 +54955,7 @@ const __vue2_script$V = {
|
|
|
54949
54955
|
if (node.matched) {
|
|
54950
54956
|
node.expand = true;
|
|
54951
54957
|
} else {
|
|
54952
|
-
node.expand = this.expandAll ? true : false;
|
|
54958
|
+
node.expand = this.expandAll || node.expand ? true : false;
|
|
54953
54959
|
}
|
|
54954
54960
|
});
|
|
54955
54961
|
}
|
|
@@ -62208,6 +62214,7 @@ const __vue2_script$a = {
|
|
|
62208
62214
|
singleSel: Boolean,
|
|
62209
62215
|
expandNode: Boolean,
|
|
62210
62216
|
defaultExpandLevel: Number,
|
|
62217
|
+
expandProvincial: Boolean,
|
|
62211
62218
|
expandAll: Boolean,
|
|
62212
62219
|
selectFirstLeaf: Boolean,
|
|
62213
62220
|
hideFirstLevel: Boolean,
|
|
@@ -62323,10 +62330,15 @@ const __vue2_script$a = {
|
|
|
62323
62330
|
node.status = "";
|
|
62324
62331
|
node.statusName = "";
|
|
62325
62332
|
node.statusColor = "";
|
|
62333
|
+
if (this.expandProvincial) {
|
|
62334
|
+
node.expand = node.comIsImported == "0" || node.id == "ALL";
|
|
62335
|
+
} else {
|
|
62336
|
+
node.expand = node.id == "ALL";
|
|
62337
|
+
}
|
|
62326
62338
|
if (!node.expand) {
|
|
62327
62339
|
node.expand = false;
|
|
62328
62340
|
}
|
|
62329
|
-
if (this.expandAll) {
|
|
62341
|
+
if (this.expandAll || node.expand) {
|
|
62330
62342
|
node.expand = true;
|
|
62331
62343
|
} else if (this.defaultExpandLevel) {
|
|
62332
62344
|
node.expand = node.level <= this.defaultExpandLevel;
|
|
@@ -62421,7 +62433,7 @@ const __vue2_script$a = {
|
|
|
62421
62433
|
node.selected = true;
|
|
62422
62434
|
}
|
|
62423
62435
|
} else {
|
|
62424
|
-
node.expand = this.expandAll ? true : false;
|
|
62436
|
+
node.expand = this.expandAll || node.expand ? true : false;
|
|
62425
62437
|
if (this.defaultExpandLevel) {
|
|
62426
62438
|
node.expand = node.level <= this.defaultExpandLevel;
|
|
62427
62439
|
}
|
|
@@ -62438,7 +62450,7 @@ const __vue2_script$a = {
|
|
|
62438
62450
|
node.selected = true;
|
|
62439
62451
|
}
|
|
62440
62452
|
} else {
|
|
62441
|
-
node.expand = this.expandAll ? true : false;
|
|
62453
|
+
node.expand = this.expandAll || node.expand ? true : false;
|
|
62442
62454
|
if (this.defaultExpandLevel) {
|
|
62443
62455
|
node.expand = node.level <= this.defaultExpandLevel;
|
|
62444
62456
|
}
|
|
@@ -62497,7 +62509,7 @@ const __vue2_script$a = {
|
|
|
62497
62509
|
return matched = true;
|
|
62498
62510
|
}
|
|
62499
62511
|
});
|
|
62500
|
-
node.expand = this.expandAll ? true : matched;
|
|
62512
|
+
node.expand = this.expandAll || node.expand ? true : matched;
|
|
62501
62513
|
});
|
|
62502
62514
|
deepEach(this.backupTreeData, (node) => {
|
|
62503
62515
|
let matched = false;
|
|
@@ -62506,7 +62518,7 @@ const __vue2_script$a = {
|
|
|
62506
62518
|
return matched = true;
|
|
62507
62519
|
}
|
|
62508
62520
|
});
|
|
62509
|
-
node.expand = this.expandAll ? true : matched;
|
|
62521
|
+
node.expand = this.expandAll || node.expand ? true : matched;
|
|
62510
62522
|
});
|
|
62511
62523
|
},
|
|
62512
62524
|
watchDataProp() {
|
|
@@ -62827,7 +62839,7 @@ const __vue2_script$a = {
|
|
|
62827
62839
|
},
|
|
62828
62840
|
clearCheckedAndSelectedNodes() {
|
|
62829
62841
|
deepEach(this.treeData || [], (node) => {
|
|
62830
|
-
node.expand = this.expandAll ? true : false;
|
|
62842
|
+
node.expand = this.expandAll || node.expand ? true : false;
|
|
62831
62843
|
node.checked = false;
|
|
62832
62844
|
node.selected = false;
|
|
62833
62845
|
node.indeterminate = false;
|
|
@@ -62838,7 +62850,7 @@ const __vue2_script$a = {
|
|
|
62838
62850
|
this.$emit("on-select-change", [], null);
|
|
62839
62851
|
}
|
|
62840
62852
|
deepEach(this.backupTreeData || [], (node) => {
|
|
62841
|
-
node.expand = this.expandAll ? true : false;
|
|
62853
|
+
node.expand = this.expandAll || node.expand ? true : false;
|
|
62842
62854
|
node.checked = false;
|
|
62843
62855
|
node.selected = false;
|
|
62844
62856
|
node.indeterminate = false;
|
|
@@ -62901,7 +62913,7 @@ const __vue2_script$a = {
|
|
|
62901
62913
|
if (node.matched) {
|
|
62902
62914
|
node.expand = true;
|
|
62903
62915
|
} else {
|
|
62904
|
-
node.expand = this.expandAll ? true : false;
|
|
62916
|
+
node.expand = this.expandAll || node.expand ? true : false;
|
|
62905
62917
|
}
|
|
62906
62918
|
});
|
|
62907
62919
|
}
|