@indfnd/common 0.1.87 → 0.1.90
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 +16 -0
- package/dist/ind-common.es.js +42 -16
- package/dist/ind-common.umd.cjs +25 -25
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
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.90](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.89...v0.1.90) (2024-06-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 地市公司选择改为弹出 ([02803db](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/02803dbc11981cadf46068a5efc7ea505db4e295))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* 地市树增加默认省内和根节点展开属性 ([6c0b47e](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/6c0b47ed44a88bbbf50aac6bc9962d4c8bd1f23d))
|
|
16
|
+
|
|
17
|
+
### [0.1.89](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.87...v0.1.89) (2024-06-11)
|
|
18
|
+
|
|
19
|
+
### [0.1.88](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.87...v0.1.88) (2024-06-11)
|
|
20
|
+
|
|
5
21
|
### [0.1.87](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.88...v0.1.87) (2024-06-11)
|
|
6
22
|
|
|
7
23
|
### [0.1.88](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.86...v0.1.88) (2024-06-11)
|
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.89";
|
|
6
6
|
const author = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -49017,6 +49017,7 @@ var FormImpl = {
|
|
|
49017
49017
|
props: {
|
|
49018
49018
|
...d.props || {},
|
|
49019
49019
|
value: this.form[d.formKey],
|
|
49020
|
+
selectTitle: "\u8BF7\u9009\u62E9" + d.title,
|
|
49020
49021
|
disabled
|
|
49021
49022
|
},
|
|
49022
49023
|
attrs: {
|
|
@@ -54219,6 +54220,7 @@ const __vue2_script$V = {
|
|
|
54219
54220
|
selectFirstLeaf: Boolean,
|
|
54220
54221
|
hideFirstLevel: Boolean,
|
|
54221
54222
|
foldFirstLevel: Boolean,
|
|
54223
|
+
expandProvincial: Boolean,
|
|
54222
54224
|
expandAll: Boolean,
|
|
54223
54225
|
defaultExpandLevel: Number,
|
|
54224
54226
|
showCheckbox: Boolean,
|
|
@@ -54349,7 +54351,11 @@ const __vue2_script$V = {
|
|
|
54349
54351
|
node.status = "";
|
|
54350
54352
|
node.statusName = "";
|
|
54351
54353
|
node.statusColor = "";
|
|
54352
|
-
|
|
54354
|
+
if (this.expandProvincial) {
|
|
54355
|
+
node.expand = node.comIsImported == "0" || node.id == "ALL";
|
|
54356
|
+
} else {
|
|
54357
|
+
node.expand = node.id == "ALL";
|
|
54358
|
+
}
|
|
54353
54359
|
if (!node.expand) {
|
|
54354
54360
|
node.expand = false;
|
|
54355
54361
|
}
|
|
@@ -57825,17 +57831,15 @@ var render$u = function() {
|
|
|
57825
57831
|
var _vm = this;
|
|
57826
57832
|
var _h = _vm.$createElement;
|
|
57827
57833
|
var _c = _vm._self._c || _h;
|
|
57828
|
-
return _c("
|
|
57829
|
-
_vm.
|
|
57830
|
-
}, "on-
|
|
57831
|
-
_vm.
|
|
57832
|
-
}
|
|
57833
|
-
|
|
57834
|
-
|
|
57835
|
-
|
|
57836
|
-
},
|
|
57837
|
-
_vm.visible = $$v;
|
|
57838
|
-
}, expression: "visible" } }, [_vm.loading ? _c("Spin", { attrs: { "fix": "" } }) : _vm._e(), _c("Input", { staticClass: "selected-input", class: { readonly: _vm.readonly }, attrs: { "value": _vm.selectedTitles, "title": _vm.selectedTitles, "icon": _vm.readonly ? "" : _vm.inputIcon, "clearable": !_vm.readonly, "placeholder": "\u8BF7\u9009\u62E9", "readonly": "" }, on: { "on-clear": _vm.clearSelected } })], 1);
|
|
57834
|
+
return _c("div", { staticClass: "tree-select-poptip" }, [_vm.loading ? _c("Spin", { attrs: { "fix": "" } }) : _vm._e(), _c("Input", { staticClass: "selected-input", class: { readonly: _vm.readonly }, attrs: { "value": _vm.selectedTitles, "title": _vm.selectedTitles, "icon": _vm.readonly ? "" : _vm.inputIcon, "clearable": !_vm.readonly, "disabled": _vm.readonly, "placeholder": "\u8BF7\u9009\u62E9", "readonly": "" }, on: { "on-clear": _vm.clearSelected, "on-focus": function($event) {
|
|
57835
|
+
_vm.visible = true;
|
|
57836
|
+
} } }), _c("Modal", { staticClass: "ind-modal", attrs: { "value": _vm.visible, "title": _vm.selectTitle, "footerHide": _vm.footerHide }, on: { "on-visible-change": _vm.visibleChange, "on-ok": function($event) {
|
|
57837
|
+
_vm.visible = false;
|
|
57838
|
+
}, "on-cancel": function($event) {
|
|
57839
|
+
_vm.visible = false;
|
|
57840
|
+
} } }, [_c("div", { ref: "treeWrapper", staticClass: "tree-select-wrapper" }, [_c("Input", { staticClass: "tree-select-input", attrs: { "placeholder": "\u591A\u4E2A\u7528\u7A7A\u683C\u5206\u9694,\u56DE\u8F66\u952E\u641C\u7D22", "clearable": "", "search": "" }, on: { "on-clear": _vm.clearHighlightNodes, "on-change": _vm.onSearchChange, "on-search": _vm.search }, model: { value: _vm.searchValue, callback: function($$v) {
|
|
57841
|
+
_vm.searchValue = typeof $$v === "string" ? $$v.trim() : $$v;
|
|
57842
|
+
}, expression: "searchValue" } }), _vm.searchNum > 0 ? _c("div", { staticClass: "global-desc-text" }, [_vm._v(_vm._s(_vm.searchNum) + "\u4E2A\u7ED3\u679C")]) : _vm._e(), _c("Tree", _vm._b({ ref: "tree", attrs: { "height": "400px", "defaultValue": _vm.value || _vm.defaultValue, "expandAll": _vm.expandAll, "defaultExpandLevel": _vm.defaultExpandLevel, "expandNode": _vm.expandNode, "singleSel": _vm.singleSel, "isShowHeader": false, "show-checkbox": _vm.showCheckbox, "is-show-search": false, "check-directly": "" }, on: { "on-select-change": _vm.onSelectChange, "on-check-change": _vm.onCheckChange, "on-load": _vm.initSelectedTitles, "on-default-change": _vm.onCheckChange } }, "Tree", _vm.$attrs, false))], 1)])], 1);
|
|
57839
57843
|
};
|
|
57840
57844
|
var staticRenderFns$u = [];
|
|
57841
57845
|
var treeSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
@@ -57851,7 +57855,21 @@ const __vue2_script$v = {
|
|
|
57851
57855
|
showCheckbox: Boolean,
|
|
57852
57856
|
selectLeafOnly: { type: Boolean, default: true },
|
|
57853
57857
|
expandAll: Boolean,
|
|
57854
|
-
defaultExpandLevel: Number
|
|
57858
|
+
defaultExpandLevel: Number,
|
|
57859
|
+
footerHide: Boolean,
|
|
57860
|
+
showCancel: { type: Boolean, default: true },
|
|
57861
|
+
transfer: {
|
|
57862
|
+
type: Boolean,
|
|
57863
|
+
default() {
|
|
57864
|
+
return !this.$IVIEW || this.$IVIEW.transfer === "" ? true : this.$IVIEW.transfer;
|
|
57865
|
+
}
|
|
57866
|
+
},
|
|
57867
|
+
selectTitle: { type: String, default: "\u8BF7\u9009\u62E9" },
|
|
57868
|
+
cancelText: { type: String, default: "\u53D6\u6D88" },
|
|
57869
|
+
okText: { type: String, default: "\u786E\u5B9A" },
|
|
57870
|
+
lazyRender: { type: Boolean, default: true },
|
|
57871
|
+
saving: Boolean,
|
|
57872
|
+
cancelNotClose: Boolean
|
|
57855
57873
|
},
|
|
57856
57874
|
data() {
|
|
57857
57875
|
return {
|
|
@@ -57876,6 +57894,9 @@ const __vue2_script$v = {
|
|
|
57876
57894
|
}
|
|
57877
57895
|
},
|
|
57878
57896
|
methods: {
|
|
57897
|
+
visibleChange(value) {
|
|
57898
|
+
this.visible = value;
|
|
57899
|
+
},
|
|
57879
57900
|
initSelectedTitles(tree, selected) {
|
|
57880
57901
|
this.updateSelectedTitles(selected);
|
|
57881
57902
|
this.loading = false;
|
|
@@ -57952,7 +57973,7 @@ var __component__$v = /* @__PURE__ */ normalizeComponent(
|
|
|
57952
57973
|
staticRenderFns$u,
|
|
57953
57974
|
false,
|
|
57954
57975
|
__vue2_injectStyles$v,
|
|
57955
|
-
"
|
|
57976
|
+
"2ba3c6d8",
|
|
57956
57977
|
null,
|
|
57957
57978
|
null
|
|
57958
57979
|
);
|
|
@@ -62209,6 +62230,7 @@ const __vue2_script$a = {
|
|
|
62209
62230
|
singleSel: Boolean,
|
|
62210
62231
|
expandNode: Boolean,
|
|
62211
62232
|
defaultExpandLevel: Number,
|
|
62233
|
+
expandProvincial: Boolean,
|
|
62212
62234
|
expandAll: Boolean,
|
|
62213
62235
|
selectFirstLeaf: Boolean,
|
|
62214
62236
|
hideFirstLevel: Boolean,
|
|
@@ -62324,7 +62346,11 @@ const __vue2_script$a = {
|
|
|
62324
62346
|
node.status = "";
|
|
62325
62347
|
node.statusName = "";
|
|
62326
62348
|
node.statusColor = "";
|
|
62327
|
-
|
|
62349
|
+
if (this.expandProvincial) {
|
|
62350
|
+
node.expand = node.comIsImported == "0" || node.id == "ALL";
|
|
62351
|
+
} else {
|
|
62352
|
+
node.expand = node.id == "ALL";
|
|
62353
|
+
}
|
|
62328
62354
|
if (!node.expand) {
|
|
62329
62355
|
node.expand = false;
|
|
62330
62356
|
}
|