@kmkf-fe-packages/services-components 2.10.6 → 2.10.8
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.
|
@@ -23,9 +23,9 @@ export declare const ShowTotalImage: ({ total, allImage, type, showHeader, }: {
|
|
|
23
23
|
showHeader: string[];
|
|
24
24
|
}) => React.JSX.Element;
|
|
25
25
|
export declare const GoodImage: ({ list, type, showHeader }: any) => React.JSX.Element | null;
|
|
26
|
-
export declare const JstGoodImage: ({ list, type, platformType, logisticsCompanyFormType, }: any) =>
|
|
27
|
-
export declare const BsExpressRender: ({ list, showField, platformType, logisticsCompanyFormType, }: any) =>
|
|
28
|
-
export declare const CommonOrderContent: ({ list, valueKey: initValueKey, failValue, options, isShowPopover, idKey, }: any) =>
|
|
26
|
+
export declare const JstGoodImage: ({ list, type, platformType, logisticsCompanyFormType, }: any) => React.JSX.Element[] | null;
|
|
27
|
+
export declare const BsExpressRender: ({ list, showField, platformType, logisticsCompanyFormType, }: any) => React.JSX.Element[] | null;
|
|
28
|
+
export declare const CommonOrderContent: ({ list, valueKey: initValueKey, failValue, options, isShowPopover, idKey, }: any) => React.JSX.Element[] | null;
|
|
29
29
|
export declare const BsGoodImage: ({ item, index }: {
|
|
30
30
|
item: any;
|
|
31
31
|
index: number;
|
|
@@ -219,7 +219,7 @@ export var GoodImage = function GoodImage(_ref5) {
|
|
|
219
219
|
}
|
|
220
220
|
return dataIndexList;
|
|
221
221
|
}, [showHeader]);
|
|
222
|
-
return (list === null || list === void 0 ? void 0 : list.length) > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
222
|
+
return Array.isArray(list) && (list === null || list === void 0 ? void 0 : list.length) > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
223
223
|
style: {
|
|
224
224
|
display: type === "itemSelect" ? "flex" : "block"
|
|
225
225
|
}
|
|
@@ -267,7 +267,7 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
267
267
|
var getSendName = function getSendName(item) {
|
|
268
268
|
return SendDataCenter.getInstance(platformType).getSendNameByCode(item.sendName);
|
|
269
269
|
};
|
|
270
|
-
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
270
|
+
return Array.isArray(list) && list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
271
271
|
var logisticsCompany = item.logisticsCompany,
|
|
272
272
|
logisticsCompanyName = item.logisticsCompanyName;
|
|
273
273
|
var company = "";
|
|
@@ -305,7 +305,7 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
|
305
305
|
_ref7$platformType = _ref7.platformType,
|
|
306
306
|
platformType = _ref7$platformType === void 0 ? "default" : _ref7$platformType,
|
|
307
307
|
logisticsCompanyFormType = _ref7.logisticsCompanyFormType;
|
|
308
|
-
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
308
|
+
return Array.isArray(list) && list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
309
309
|
var logisticsCompany = item.logisticsCompany,
|
|
310
310
|
logisticsCompanyName = item.logisticsCompanyName;
|
|
311
311
|
var company = logisticsCompanyFormType === "input" ? logisticsCompany : ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany, false) || logisticsCompanyName || logisticsCompany;
|
|
@@ -357,7 +357,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
357
357
|
}
|
|
358
358
|
}, contentData.text ? "".concat(contentData.text, "\uFF1A") : "", contentData.id));
|
|
359
359
|
};
|
|
360
|
-
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
360
|
+
return Array.isArray(list) && list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
361
361
|
var _options$find;
|
|
362
362
|
var valueKey = "";
|
|
363
363
|
if (Array.isArray(initValueKey)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.8",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "2.10.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.10.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.10.8",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.10.8",
|
|
26
26
|
"b64-to-blob": "^1.2.19",
|
|
27
27
|
"html2canvas": "^1.4.1",
|
|
28
28
|
"react-pdf-js": "^5.1.0"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "fcdfb6ed797689b6cfcca1b25d410c59999271aa",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|