wt-enjoy-link-antd-repack 4.1.88 → 4.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.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAQN,MAAM,OAAO,CAAA;AAMd,OAAO,KAAK,EACV,kBAAkB,EAGlB,aAAa,EACd,WAAmB;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAQN,MAAM,OAAO,CAAA;AAMd,OAAO,KAAK,EACV,kBAAkB,EAGlB,aAAa,EACd,WAAmB;AAsJpB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;+FAoTzB,CAAA;AAMD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;+FAsHpB,CAAA;AAGD,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA"}
|
@@ -32,6 +32,7 @@ import { BiuForm, BiuPagination, BiuResizeTable, stretchRestructureColumns } fro
|
|
32
32
|
import { GATEWAY_ROUTE_MDM } from "../../constant";
|
33
33
|
import { useUserInfo } from "../../hooks";
|
34
34
|
import { request as httpRequest } from "../../package";
|
35
|
+
import { cloneDeep } from 'lodash';
|
35
36
|
import { jsx as _jsx } from "react/jsx-runtime";
|
36
37
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
37
38
|
var ContainerWrapper = styled.div.withConfig({
|
@@ -449,7 +450,8 @@ export var BiuTable = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function
|
|
449
450
|
});
|
450
451
|
}, [defaultColumns]);
|
451
452
|
var formColumns = useMemo(function () {
|
452
|
-
|
453
|
+
var temColumns = cloneDeep(baseColumns);
|
454
|
+
return temColumns.filter(function (n) {
|
453
455
|
return !n.noSearch;
|
454
456
|
}).sort(function (_ref2, _ref3) {
|
455
457
|
var preFormOrder = _ref2.formOrder;
|
@@ -458,18 +460,16 @@ export var BiuTable = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function
|
|
458
460
|
});
|
459
461
|
}, [baseColumns]);
|
460
462
|
var showColumns = useMemo(function () {
|
461
|
-
var columnHashMap =
|
462
|
-
|
463
|
-
|
464
|
-
}
|
463
|
+
var columnHashMap = new Map();
|
464
|
+
selectedLayout === null || selectedLayout === void 0 || selectedLayout.forEach(function (item) {
|
465
|
+
columnHashMap.set(item.dataIndex, item);
|
466
|
+
});
|
465
467
|
var currentColumns = [];
|
466
|
-
var hashMapKeys = Object.keys(columnHashMap);
|
467
468
|
baseColumns.forEach(function (baseColumn) {
|
468
|
-
if (
|
469
|
-
|
469
|
+
if (columnHashMap.has(baseColumn.dataIndex)) {
|
470
|
+
currentColumns.push(_objectSpread(_objectSpread({}, baseColumn), columnHashMap.get(baseColumn.dataIndex)));
|
470
471
|
}
|
471
472
|
});
|
472
|
-
currentColumns = Object.values(columnHashMap);
|
473
473
|
return currentColumns;
|
474
474
|
}, [baseColumns, selectedLayout]);
|
475
475
|
var tableColumns = useMemo(function () {
|