@kmkf-fe-packages/services-components 0.8.17-alpha.30 → 0.8.17-alpha.34

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/README.md CHANGED
@@ -1,2 +1,2 @@
1
1
  ### 关于组件后缀
2
- - 针对于自定义组件的后缀,在提交的时候是以组件类型的驼峰式来命名的
2
+ - 针对于自定义组件的后缀,在提交的时候是以组件类型的驼峰式来命名的
@@ -12,13 +12,6 @@ import GetFormItem from "../GetFormItem";
12
12
  import ItemView from "../../commonComponents/ItemView";
13
13
  import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
14
14
  import { SYMBOL } from "../../constant";
15
-
16
- // const CalculationInput = (props: any) => {
17
- // return <span style={{
18
- // display: 'flex',
19
- // alignItems: 'center',
20
- // }}><ApaasInput {...props} /><span style={{marginLeft: '4px', width: '88px'}}>{props?.unit}</span></span>
21
- // }
22
15
  var Calculation = /*#__PURE__*/_createClass(function Calculation(options) {
23
16
  var _this = this;
24
17
  _classCallCheck(this, Calculation);
@@ -67,9 +60,9 @@ var Calculation = /*#__PURE__*/_createClass(function Calculation(options) {
67
60
  display: (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && (_this$componentConfig2 = _this$componentConfig.config) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.display ? 'unset' : 'none'
68
61
  } // TODO: 样式隐藏
69
62
  ,
70
- component: /*#__PURE__*/React.createElement(CalculationInput, _extends({
63
+ component: /*#__PURE__*/React.createElement(CalculationInput, _extends({}, _this.componentConfig, {
71
64
  disabled: true
72
- }, _this.componentConfig))
65
+ }))
73
66
  });
74
67
  });
75
68
  _defineProperty(this, "filterConfig", function (item) {
@@ -26,6 +26,7 @@ var HandlerDeadLine = /*#__PURE__*/_createClass(function HandlerDeadLine(options
26
26
  _defineProperty(this, "options", void 0);
27
27
  _defineProperty(this, "renderPc", function (value, record) {
28
28
  var _record, _record2;
29
+ if (!(record !== null && record !== void 0 && record.hasHandlerDeadLine)) return /*#__PURE__*/React.createElement("span", null, "\u672A\u8BBE\u7F6E");
29
30
  return /*#__PURE__*/React.createElement("span", {
30
31
  className: record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record.includes('已超时') ? 'timeout' : ''
31
32
  }, (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--');
@@ -26,6 +26,7 @@ var NodeDeadLine = /*#__PURE__*/_createClass(function NodeDeadLine(options) {
26
26
  _defineProperty(this, "options", void 0);
27
27
  _defineProperty(this, "renderPc", function (value, record) {
28
28
  var _record, _record2;
29
+ if (!(record !== null && record !== void 0 && record.hasNodeDeadLine)) return /*#__PURE__*/React.createElement("span", null, "\u672A\u8BBE\u7F6E");
29
30
  return /*#__PURE__*/React.createElement("span", {
30
31
  className: record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record.includes('已超时') ? 'timeout' : ''
31
32
  }, (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.8.17-alpha.30",
3
+ "version": "0.8.17-alpha.34",
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",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.8.17-alpha.29"
29
+ "@kmkf-fe-packages/basic-components": "^0.8.17-alpha.34",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.8.17-alpha.34"
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": "38cb33bd42efa896dceaed74c24ec423f46593af"
43
+ "gitHead": "97d89bbdb7e055af772f63804b8f17790ee31564"
44
44
  }