@kmkf-fe-packages/services-components 0.8.17-alpha.36 → 0.8.17-alpha.37
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.
|
@@ -42,14 +42,15 @@ var Calculation = /*#__PURE__*/_createClass(function Calculation(options) {
|
|
|
42
42
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_numericalCalculation")]) !== null && _record2 !== void 0 ? _record2 : "--";
|
|
43
43
|
});
|
|
44
44
|
_defineProperty(this, "renderClient", function (record) {
|
|
45
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3;
|
|
45
46
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
46
47
|
id: _this.id,
|
|
47
48
|
label: _this.name,
|
|
48
|
-
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
49
|
+
value: "".concat(record === null || record === void 0 ? void 0 : record[_this.id], " ").concat((_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : (_this$componentConfig3 = _this$componentConfig2.config) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.unit) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : '')
|
|
49
50
|
}) : null;
|
|
50
51
|
});
|
|
51
52
|
_defineProperty(this, "editRender", function (p) {
|
|
52
|
-
var _this$
|
|
53
|
+
var _this$componentConfig4, _this$componentConfig5;
|
|
53
54
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
54
55
|
title: _this.name,
|
|
55
56
|
name: _this.id,
|
|
@@ -57,7 +58,7 @@ var Calculation = /*#__PURE__*/_createClass(function Calculation(options) {
|
|
|
57
58
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
58
59
|
required: false,
|
|
59
60
|
style: {
|
|
60
|
-
display: (_this$
|
|
61
|
+
display: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && (_this$componentConfig5 = _this$componentConfig4.config) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.display ? 'unset' : 'none'
|
|
61
62
|
} // TODO: 样式隐藏
|
|
62
63
|
,
|
|
63
64
|
component: /*#__PURE__*/React.createElement(CalculationInput, _extends({}, _this.componentConfig, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.8.17-alpha.
|
|
3
|
+
"version": "0.8.17-alpha.37",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"father": "^4.1.7"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@kmkf-fe-packages/basic-components": "^0.8.17-alpha.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.8.17-alpha.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.8.17-alpha.37",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.8.17-alpha.37"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@ant-design/icons": "^4.7.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "60e5090f3c0cbf9811c7c389e228a8630060ec88"
|
|
44
44
|
}
|