@indfnd/common 0.1.38 → 0.1.40
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
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
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.40](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.39...v0.1.40) (2024-04-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 列筛选问题修复 ([d4d4c85](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/d4d4c852c17cbf7b2e9e09f4dcd1088bc995cd75))
|
|
11
|
+
|
|
12
|
+
### [0.1.39](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.38...v0.1.39) (2024-04-15)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* 表格表头样式问题修复 ([868b1a4](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/868b1a4fd12f9782536c3b6086cc1ad1ed4716c9))
|
|
18
|
+
* 表格表头永久换行,不支持不换行 ([f735b7b](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/f735b7b0dc382d33c9e1ad689e581c5e807e74be))
|
|
19
|
+
* 表格列筛选bug修复 ([9fdbfb1](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/9fdbfb15546ea16459d91b1b4ef08bea0ee8ee49))
|
|
20
|
+
* 表头自动换行支持单元格合并 ([cee1680](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/cee1680f1f37fce440d8d12815f4c3a04f4d40b8))
|
|
21
|
+
* 样式 ([f7fc6c1](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/f7fc6c1378c7d7e52991afb7d52d64a5af753611))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* 更新依赖 ([4428331](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/4428331e55c11071813c8a344ef6fcf3437bbe74))
|
|
27
|
+
* 修改行合计设置和卷烟框点击遮罩层条件清空的问题 ([07bca20](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/07bca2093d4d184e958d40244461abcb9d17655e))
|
|
28
|
+
|
|
5
29
|
### [0.1.38](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.37...v0.1.38) (2024-04-12)
|
|
6
30
|
|
|
7
31
|
|
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, getLocalStorage, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, isFunction, isString, uuid, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, putOssFileApi, isEqual, getCaptchaURL, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getToken, putOssFileUrl, getOssFileUrl, responseInterceptors, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, getSessionStorage, setSessionStorage, getAppListApi, getPermissionCache, 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.39";
|
|
6
6
|
const author = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -62,7 +62,7 @@ const dependencies = {
|
|
|
62
62
|
"xlsx-populate": "^1.11.0"
|
|
63
63
|
};
|
|
64
64
|
const devDependencies = {
|
|
65
|
-
"@indfnd/utils": "^0.1.
|
|
65
|
+
"@indfnd/utils": "^0.1.3",
|
|
66
66
|
"ag-grid-community": "^30.1.0",
|
|
67
67
|
"ag-grid-enterprise": "^30.1.0",
|
|
68
68
|
"ag-grid-vue": "^30.1.0",
|
|
@@ -49074,13 +49074,17 @@ var render$10 = function() {
|
|
|
49074
49074
|
var _vm = this;
|
|
49075
49075
|
var _h = _vm.$createElement;
|
|
49076
49076
|
var _c = _vm._self._c || _h;
|
|
49077
|
-
return !_vm.lazyRender || _vm.isInit ? _c("div", [_c("Modal", _vm._b({ staticClass: "ind-modal", style: _vm.transfer ? _vm.style : null, attrs: { "value": _vm.isShow, "transfer": _vm.transfer, "footerHide": _vm.footerHide }, on: { "on-visible-change": _vm.visibleChange, "on-ok": _vm.ok, "on-cancel":
|
|
49077
|
+
return !_vm.lazyRender || _vm.isInit ? _c("div", [_c("Modal", _vm._b({ staticClass: "ind-modal", style: _vm.transfer ? _vm.style : null, attrs: { "value": _vm.isShow, "transfer": _vm.transfer, "footerHide": _vm.footerHide }, on: { "on-visible-change": _vm.visibleChange, "on-ok": _vm.ok, "on-cancel": function($event) {
|
|
49078
|
+
return _vm.cancel("modal");
|
|
49079
|
+
} }, scopedSlots: _vm._u([{ key: "header", fn: function() {
|
|
49078
49080
|
return void 0;
|
|
49079
49081
|
}, proxy: true }, { key: "close", fn: function() {
|
|
49080
49082
|
return void 0;
|
|
49081
49083
|
}, proxy: true }, { key: "footer", fn: function() {
|
|
49082
49084
|
return [_vm._t("footer", function() {
|
|
49083
|
-
return [_c("ButtonGroup", { attrs: { "right": "" } }, [_vm.showCancel ? _c("Button", { attrs: { "bizType": "cancel", "loading": _vm.saving }, on: { "click":
|
|
49085
|
+
return [_c("ButtonGroup", { attrs: { "right": "" } }, [_vm.showCancel ? _c("Button", { attrs: { "bizType": "cancel", "loading": _vm.saving }, on: { "click": function($event) {
|
|
49086
|
+
return _vm.cancel("footer-btn");
|
|
49087
|
+
} } }, [_vm._v(_vm._s(_vm.cancelText))]) : _vm._e(), _c("Button", { attrs: { "bizType": "confirm", "loading": _vm.saving }, on: { "click": _vm.ok } }, [_vm._v(_vm._s(_vm.okText))])], 1)];
|
|
49084
49088
|
})];
|
|
49085
49089
|
}, proxy: true }], null, true) }, "Modal", _vm.$attrs, false), [_vm._t("default")], 2)], 1) : _vm._e();
|
|
49086
49090
|
};
|
|
@@ -49148,8 +49152,8 @@ const __vue2_script$1a = {
|
|
|
49148
49152
|
ok() {
|
|
49149
49153
|
this.$emit("on-ok");
|
|
49150
49154
|
},
|
|
49151
|
-
cancel() {
|
|
49152
|
-
this.$emit("on-cancel");
|
|
49155
|
+
cancel(type) {
|
|
49156
|
+
this.$emit("on-cancel", type);
|
|
49153
49157
|
if (!this.cancelNotClose) {
|
|
49154
49158
|
this.close();
|
|
49155
49159
|
}
|
|
@@ -52508,9 +52512,10 @@ const __vue2_script$W = {
|
|
|
52508
52512
|
let srcColumn = columnDataMap[d.field || d.key || d.type || d.headerName || d.title];
|
|
52509
52513
|
srcColumn.hide = !d.checked;
|
|
52510
52514
|
if (d.pinned && d.pinned != "none" || (p == null ? void 0 : p.pinned) && (p == null ? void 0 : p.pinned) != "none") {
|
|
52511
|
-
srcColumn.pinned = d.pinned == "none" ? (p == null ? void 0 : p.pinned) == "none" ? void 0 : p == null ? void 0 : p.pinned : d.pinned;
|
|
52515
|
+
srcColumn.pinned.fixed = srcColumn.pinned = d.pinned == "none" ? (p == null ? void 0 : p.pinned) == "none" ? void 0 : p == null ? void 0 : p.pinned : d.pinned;
|
|
52512
52516
|
} else {
|
|
52513
52517
|
delete srcColumn.pinned;
|
|
52518
|
+
delete srcColumn.fixed;
|
|
52514
52519
|
}
|
|
52515
52520
|
if (d.width) {
|
|
52516
52521
|
srcColumn.width = d.width;
|
|
@@ -53139,8 +53144,8 @@ const __vue2_script$W = {
|
|
|
53139
53144
|
var _a, _b;
|
|
53140
53145
|
return ((_a = d.children) == null ? void 0 : _a.length) || ((_b = d.treeLevelFlag) == null ? void 0 : _b.length);
|
|
53141
53146
|
});
|
|
53147
|
+
this.renderTreeFlag(val);
|
|
53142
53148
|
if (this.treeData) {
|
|
53143
|
-
this.renderTreeFlag(val);
|
|
53144
53149
|
let rlt = [];
|
|
53145
53150
|
deepEach$3(null, val, (d, p, idx) => {
|
|
53146
53151
|
d.seq = idx;
|
|
@@ -53153,13 +53158,13 @@ const __vue2_script$W = {
|
|
|
53153
53158
|
},
|
|
53154
53159
|
renderTreeFlag(datas) {
|
|
53155
53160
|
let treeColDef = _.find(this.columns, { tree: true });
|
|
53161
|
+
deepEach$3(null, datas, (d, parentNode, idx) => {
|
|
53162
|
+
d.uuid = d.uuid || uuid();
|
|
53163
|
+
});
|
|
53156
53164
|
if (_.isEmpty(treeColDef)) {
|
|
53157
53165
|
return;
|
|
53158
53166
|
}
|
|
53159
53167
|
let treeCol = (treeColDef == null ? void 0 : treeColDef.field) || (treeColDef == null ? void 0 : treeColDef.key);
|
|
53160
|
-
deepEach$3(null, datas, (d, parentNode, idx) => {
|
|
53161
|
-
d.uuid = d.uuid || uuid();
|
|
53162
|
-
});
|
|
53163
53168
|
deepEach$3(null, datas, (d, parentNode, idx) => {
|
|
53164
53169
|
d.treeLevelFlag = parentNode ? [...parentNode.treeLevelFlag, d[treeCol]] : [d[treeCol]];
|
|
53165
53170
|
if (parentNode) {
|
|
@@ -62537,7 +62542,7 @@ var render$7 = function() {
|
|
|
62537
62542
|
var _vm = this;
|
|
62538
62543
|
var _h = _vm.$createElement;
|
|
62539
62544
|
var _c = _vm._self._c || _h;
|
|
62540
|
-
return _c("div", [_c("Input", { staticClass: "selected-input", class: { readonly: _vm.readonly }, attrs: { "value": _vm.selectedTitles, "title": _vm.selectedTitles, "readonly": "", "clearable": !_vm.readonly, "placeholder": "\u8BF7\u9009\u62E9" }, on: { "on-focus": _vm.openModal, "on-clear": _vm.doClear } }), _c("Modal", { attrs: { "title": "\u9009\u62E9\u5377\u70DF", "width": 900, "cancelText": "\u6E05\u9664", "cancelNotClose": "" }, on: { "on-ok": _vm.ok, "on-cancel": _vm.
|
|
62545
|
+
return _c("div", [_c("Input", { staticClass: "selected-input", class: { readonly: _vm.readonly }, attrs: { "value": _vm.selectedTitles, "title": _vm.selectedTitles, "readonly": "", "clearable": !_vm.readonly, "placeholder": "\u8BF7\u9009\u62E9" }, on: { "on-focus": _vm.openModal, "on-clear": _vm.doClear } }), _c("Modal", { attrs: { "title": "\u9009\u62E9\u5377\u70DF", "width": 900, "mask-closable": false, "cancelText": "\u6E05\u9664", "cancelNotClose": "" }, on: { "on-ok": _vm.ok, "on-cancel": _vm.cancel }, model: { value: _vm.showPanel, callback: function($$v) {
|
|
62541
62546
|
_vm.showPanel = $$v;
|
|
62542
62547
|
}, expression: "showPanel" } }, [_c("ConditionPanel", { attrs: { "conditionDefs": _vm.conditionDefs }, model: { value: _vm.params, callback: function($$v) {
|
|
62543
62548
|
_vm.params = $$v;
|
|
@@ -62610,6 +62615,13 @@ const __vue2_script$7 = {
|
|
|
62610
62615
|
this.clear();
|
|
62611
62616
|
this.emitChange();
|
|
62612
62617
|
},
|
|
62618
|
+
cancel(type) {
|
|
62619
|
+
if (type === "footer-btn") {
|
|
62620
|
+
this.clear();
|
|
62621
|
+
} else {
|
|
62622
|
+
this.close();
|
|
62623
|
+
}
|
|
62624
|
+
},
|
|
62613
62625
|
clear() {
|
|
62614
62626
|
this.params = {};
|
|
62615
62627
|
},
|
|
@@ -62649,7 +62661,7 @@ var render$6 = function() {
|
|
|
62649
62661
|
var _vm = this;
|
|
62650
62662
|
var _h = _vm.$createElement;
|
|
62651
62663
|
var _c = _vm._self._c || _h;
|
|
62652
|
-
return _c("div", [_c("Input", { staticClass: "selected-input", class: { readonly: _vm.readonly }, attrs: { "value": _vm.selectedTitles, "title": _vm.selectedTitles, "readonly": "", "clearable": !_vm.readonly, "placeholder": "\u8BF7\u9009\u62E9" }, on: { "on-focus": _vm.openModal, "on-clear": _vm.doClear } }), _c("Modal", { attrs: { "title": "\u9009\u62E9\u884C\u5C55\u793A", "width": 900, "cancelText": "\u6E05\u9664", "cancelNotClose": "" }, on: { "on-ok": _vm.ok, "on-cancel": _vm.
|
|
62664
|
+
return _c("div", [_c("Input", { staticClass: "selected-input", class: { readonly: _vm.readonly }, attrs: { "value": _vm.selectedTitles, "title": _vm.selectedTitles, "readonly": "", "clearable": !_vm.readonly, "placeholder": "\u8BF7\u9009\u62E9" }, on: { "on-focus": _vm.openModal, "on-clear": _vm.doClear } }), _c("Modal", { attrs: { "title": "\u9009\u62E9\u884C\u5C55\u793A", "width": 900, "mask-closable": false, "cancelText": "\u6E05\u9664", "cancelNotClose": "" }, on: { "on-ok": _vm.ok, "on-cancel": _vm.cancel }, model: { value: _vm.showPanel, callback: function($$v) {
|
|
62653
62665
|
_vm.showPanel = $$v;
|
|
62654
62666
|
}, expression: "showPanel" } }, [_c("ConditionPanel", { attrs: { "conditionDefs": _vm.conditionDefs, "isLabelCheckAll": "" }, model: { value: _vm.params, callback: function($$v) {
|
|
62655
62667
|
_vm.params = $$v;
|
|
@@ -62721,6 +62733,13 @@ const __vue2_script$6 = {
|
|
|
62721
62733
|
this.clear();
|
|
62722
62734
|
this.emitChange();
|
|
62723
62735
|
},
|
|
62736
|
+
cancel(type) {
|
|
62737
|
+
if (type === "footer-btn") {
|
|
62738
|
+
this.clear();
|
|
62739
|
+
} else {
|
|
62740
|
+
this.close();
|
|
62741
|
+
}
|
|
62742
|
+
},
|
|
62724
62743
|
clear() {
|
|
62725
62744
|
this.params = {};
|
|
62726
62745
|
},
|