@indfnd/common 1.0.121 → 1.0.123
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 +33 -10
- package/dist/ind-common.umd.cjs +77 -77
- 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
|
+
### [1.0.123](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.122...v1.0.123) (2025-08-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 修复ag-table ([46196eb](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/46196eb27c5d1daf8fa453c3300a91c8ccd45ad6))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* 导出install ([12477be](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/12477be03728074b4b9d8b10f71dd8e1bf123b86))
|
|
16
|
+
|
|
17
|
+
### [1.0.122](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.121...v1.0.122) (2025-07-17)
|
|
18
|
+
|
|
5
19
|
### [1.0.121](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.120...v1.0.121) (2025-07-15)
|
|
6
20
|
|
|
7
21
|
|
package/dist/ind-common.es.js
CHANGED
|
@@ -5460,7 +5460,7 @@ var lodash = { exports: {} };
|
|
|
5460
5460
|
})(lodash, lodash.exports);
|
|
5461
5461
|
var _ = lodash.exports;
|
|
5462
5462
|
const name$1 = "@indfnd/common";
|
|
5463
|
-
const version = "1.0.
|
|
5463
|
+
const version = "1.0.122";
|
|
5464
5464
|
const author = "huxuetong";
|
|
5465
5465
|
const publishConfig = {
|
|
5466
5466
|
registry: "https://registry.npmjs.org/"
|
|
@@ -49227,7 +49227,7 @@ var FormImpl = {
|
|
|
49227
49227
|
});
|
|
49228
49228
|
}
|
|
49229
49229
|
_.forEach(this.fieldList, (d, idx) => {
|
|
49230
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n
|
|
49230
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
49231
49231
|
let itemInner;
|
|
49232
49232
|
if (d.render) {
|
|
49233
49233
|
itemInner = d.render(h, d, this.form);
|
|
@@ -49671,11 +49671,23 @@ var FormImpl = {
|
|
|
49671
49671
|
default: {
|
|
49672
49672
|
let text = this.form[d.formKey];
|
|
49673
49673
|
if (d.enumKey) {
|
|
49674
|
-
|
|
49674
|
+
let temp = text;
|
|
49675
|
+
text = ((this.enumData[d.enumKey] || {}).enumData || {})[text];
|
|
49676
|
+
if ((text === null || text === void 0) && (temp == null ? void 0 : temp.includes(","))) {
|
|
49677
|
+
text = temp.split(",").map((m) => ((this.enumData[d.enumKey] || {}).enumData || {})[m]).join("\u3001");
|
|
49678
|
+
}
|
|
49675
49679
|
} else if (d.enumList && d.enumList.length) {
|
|
49676
|
-
|
|
49680
|
+
let temp = text;
|
|
49681
|
+
text = ((d.enumList || []).find(({ K }) => K === text) || {}).V;
|
|
49682
|
+
if ((text === null || text === void 0) && (temp == null ? void 0 : temp.includes(","))) {
|
|
49683
|
+
text = temp.split(",").map((m) => ((d.enumList || []).find(({ K }) => K === m) || {}).V).join("\u3001");
|
|
49684
|
+
}
|
|
49677
49685
|
} else if (d.enumData) {
|
|
49678
|
-
|
|
49686
|
+
let temp = text;
|
|
49687
|
+
text = d.enumData[text];
|
|
49688
|
+
if ((text === null || text === void 0) && (temp == null ? void 0 : temp.includes(","))) {
|
|
49689
|
+
text = temp.split(",").map((m) => d.enumData[m]).join("\u3001");
|
|
49690
|
+
}
|
|
49679
49691
|
}
|
|
49680
49692
|
if (d.dateFormat) {
|
|
49681
49693
|
text = formatDate$1(text);
|
|
@@ -54786,14 +54798,25 @@ const __vue2_script$14 = {
|
|
|
54786
54798
|
return datasTmp;
|
|
54787
54799
|
}
|
|
54788
54800
|
},
|
|
54801
|
+
flattenData(data) {
|
|
54802
|
+
return _.reduce(
|
|
54803
|
+
data,
|
|
54804
|
+
(rlt, item2) => {
|
|
54805
|
+
let children = item2.children && item2.children.length ? this.flattenData(item2.children) : [];
|
|
54806
|
+
return [...rlt, item2, ...children];
|
|
54807
|
+
},
|
|
54808
|
+
[]
|
|
54809
|
+
);
|
|
54810
|
+
},
|
|
54789
54811
|
async updateTableData(callback, isUpdateOriginValue = true) {
|
|
54790
54812
|
if (!this.rowKey) {
|
|
54791
54813
|
console.warn("\u8BF7\u4F20rowKey\uFF0C\u8C22\u8C22");
|
|
54792
54814
|
return;
|
|
54793
54815
|
}
|
|
54794
54816
|
this.updating = true;
|
|
54817
|
+
const value = this.flattenData(this.value);
|
|
54795
54818
|
const valueDataMap = _.reduce(
|
|
54796
|
-
|
|
54819
|
+
value || [],
|
|
54797
54820
|
(rlt, item2) => {
|
|
54798
54821
|
Object.assign(rlt, { [item2[this.rowKey]]: item2 });
|
|
54799
54822
|
return rlt;
|
|
@@ -54801,14 +54824,14 @@ const __vue2_script$14 = {
|
|
|
54801
54824
|
{}
|
|
54802
54825
|
);
|
|
54803
54826
|
this.gridApi.forEachNode((node) => {
|
|
54804
|
-
callback(node.data, (key,
|
|
54827
|
+
callback(node.data, (key, value2) => {
|
|
54805
54828
|
if (isUpdateOriginValue) {
|
|
54806
54829
|
const valueData = valueDataMap[node.data[this.rowKey]];
|
|
54807
|
-
valueData[key] =
|
|
54830
|
+
valueData[key] = value2;
|
|
54808
54831
|
}
|
|
54809
54832
|
const column = this.gridColumnApi.getColumn(key);
|
|
54810
54833
|
if (column) {
|
|
54811
|
-
node.setDataValue(column,
|
|
54834
|
+
node.setDataValue(column, value2);
|
|
54812
54835
|
}
|
|
54813
54836
|
});
|
|
54814
54837
|
});
|
|
@@ -72298,4 +72321,4 @@ const API = {
|
|
|
72298
72321
|
getDefaultTheme,
|
|
72299
72322
|
doChangeTheme
|
|
72300
72323
|
};
|
|
72301
|
-
export { AppMenu, auditLogModal as AuditLogModal, auditModal as AuditModal, BackTop, backTopPanel as BackTopPanel, BasicLayout, brandInputModal as BrandInputModal, Button, ButtonGroup, Collect, comInputModal as ComInputModal, ConditionPanel, datePicker as DatePicker, detailView as DetailView, Drawer, Dropdown, dropdownItem as DropdownItem, dropdownMenu as DropdownMenu, EmptyLayout, ErrorContent, errorStore as ErrorStore, index$4 as ExcelFlowModal, FormWrap, Fullscreen as FullScreen, helpTableModal as HelpTableModal, helpTreeModal as HelpTreeModal, Icons, imagePreview as ImagePreview, configPlugin as IndConfigPlugin, routerPlugin as IndRouterPlugin, index$2 as ItemCompInputModal, itemInputModal as ItemInputModal, itemTypeCombineSelect as ItemTypeCombineSelect, language as Language, LoadingPanel, Login, materialItemModal as MaterialItemModal, mobileindex as MobileTable, Modal, NotFound, IndOption as Option, optionGroup as OptionGroup, OtherMenu, pageLayout as PageLayout, pageView as PageView, Poptip, reportIndexModal as ReportIndexModal, reportOptionModal as ReportOptionModal, roleAuth as RoleAuth, index$1 as RowSumSettingInputModal, Select, SideMenu, SideMenuItem, SiderTrigger, Sign, signModal as SignModal, index as StepTrack, Table, TagsNav, Tooltip, Tree, index$3 as TreeModal, ImpTreeSelect as TreeSelect, unitRadio as UnitRadio, uploadFile as UploadFile, uploadImg as UploadImg, User, userAuth as UserAuth, editor as WangEditor, zeroRadio as ZeroRadio, addRouterGuards, clickOutside, createMacroBasicRoutes, createMicroBasicRoutes, API as default, permission, print, routerOptions, store, transferDom };
|
|
72324
|
+
export { AppMenu, auditLogModal as AuditLogModal, auditModal as AuditModal, BackTop, backTopPanel as BackTopPanel, BasicLayout, brandInputModal as BrandInputModal, Button, ButtonGroup, Collect, comInputModal as ComInputModal, ConditionPanel, datePicker as DatePicker, detailView as DetailView, Drawer, Dropdown, dropdownItem as DropdownItem, dropdownMenu as DropdownMenu, EmptyLayout, ErrorContent, errorStore as ErrorStore, index$4 as ExcelFlowModal, FormWrap, Fullscreen as FullScreen, helpTableModal as HelpTableModal, helpTreeModal as HelpTreeModal, Icons, imagePreview as ImagePreview, configPlugin as IndConfigPlugin, routerPlugin as IndRouterPlugin, index$2 as ItemCompInputModal, itemInputModal as ItemInputModal, itemTypeCombineSelect as ItemTypeCombineSelect, language as Language, LoadingPanel, Login, materialItemModal as MaterialItemModal, mobileindex as MobileTable, Modal, NotFound, IndOption as Option, optionGroup as OptionGroup, OtherMenu, pageLayout as PageLayout, pageView as PageView, Poptip, reportIndexModal as ReportIndexModal, reportOptionModal as ReportOptionModal, roleAuth as RoleAuth, index$1 as RowSumSettingInputModal, Select, SideMenu, SideMenuItem, SiderTrigger, Sign, signModal as SignModal, index as StepTrack, Table, TagsNav, Tooltip, Tree, index$3 as TreeModal, ImpTreeSelect as TreeSelect, unitRadio as UnitRadio, uploadFile as UploadFile, uploadImg as UploadImg, User, userAuth as UserAuth, editor as WangEditor, zeroRadio as ZeroRadio, addRouterGuards, clickOutside, createMacroBasicRoutes, createMicroBasicRoutes, API as default, install, permission, print, routerOptions, store, transferDom };
|