@kmkf-fe-packages/services-components 2.2.5-beta.0 → 2.2.5-beta.2
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.
|
@@ -16,12 +16,12 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
16
16
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
17
17
|
import React from "react";
|
|
18
18
|
import { Table } from "antd";
|
|
19
|
-
import { SubForm as SubFormComponent } from "@kmkf-fe-packages/basic-components";
|
|
19
|
+
import { SubForm as SubFormComponent, renderMap } from "@kmkf-fe-packages/basic-components";
|
|
20
20
|
import BsHeaderChild from "../BS/common/BsHeaderChild";
|
|
21
21
|
import GetFormItem from "../GetFormItem";
|
|
22
22
|
import ItemView from "../../commonComponents/ItemView";
|
|
23
23
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
24
|
-
import { difference } from
|
|
24
|
+
import { difference } from "lodash";
|
|
25
25
|
import { SYMBOL } from "../../constant";
|
|
26
26
|
var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
27
27
|
var _this = this;
|
|
@@ -80,7 +80,12 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
80
80
|
ellipsis: true,
|
|
81
81
|
width: item.width,
|
|
82
82
|
render: function render(val) {
|
|
83
|
-
return /*#__PURE__*/React.createElement("
|
|
83
|
+
return renderMap[item.workOrderComponentType] ? /*#__PURE__*/React.createElement("div", {
|
|
84
|
+
style: {
|
|
85
|
+
width: "100%",
|
|
86
|
+
overflow: "auto"
|
|
87
|
+
}
|
|
88
|
+
}, renderMap[item.workOrderComponentType](val)) : /*#__PURE__*/React.createElement("span", null, val);
|
|
84
89
|
}
|
|
85
90
|
};
|
|
86
91
|
})) || []));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.2.5-beta.
|
|
3
|
+
"version": "2.2.5-beta.2",
|
|
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.2.5-beta.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.2.5-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.2.5-beta.2",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.5-beta.2",
|
|
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": "25af86e0250188e7f3985986c8851bf486913647",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|