@kmkf-fe-packages/services-components 1.8.2-beta.4 → 1.8.2-beta.5

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.
@@ -15,7 +15,6 @@ declare class PaymentVoucherCode implements ComponentInterface {
15
15
  templateId?: string;
16
16
  workOrderUniqueKey?: string;
17
17
  effects: ComponentInterface["effects"];
18
- platform: ComponentInterface["platform"];
19
18
  constructor(options: PickOption);
20
19
  renderPc: (value: any, record: Record) => React.JSX.Element | "--";
21
20
  renderLog: (r: Record) => React.JSX.Element | "--" | null;
@@ -32,7 +32,6 @@ var PaymentVoucherCode = /*#__PURE__*/_createClass(function PaymentVoucherCode(o
32
32
  _defineProperty(this, "templateId", void 0);
33
33
  _defineProperty(this, "workOrderUniqueKey", void 0);
34
34
  _defineProperty(this, "effects", void 0);
35
- _defineProperty(this, "platform", void 0);
36
35
  _defineProperty(this, "renderPc", function (value, record) {
37
36
  var _this$effects;
38
37
  if (isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_paymentVoucherCode")])) return "--";
@@ -57,12 +56,13 @@ var PaymentVoucherCode = /*#__PURE__*/_createClass(function PaymentVoucherCode(o
57
56
  return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_paymentVoucherCode")]) !== null && _record !== void 0 ? _record : "--";
58
57
  });
59
58
  _defineProperty(this, "renderClient", function (record) {
59
+ var _this$effects2;
60
60
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
61
61
  id: _this.id,
62
62
  label: _this.name,
63
63
  value: /*#__PURE__*/React.createElement(OperatePreview, {
64
64
  id: record === null || record === void 0 ? void 0 : record[_this.id],
65
- showPdf: _this.platform !== PlatForm.FXG
65
+ showPdf: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.env) !== PlatForm.FXG
66
66
  })
67
67
  }) : null;
68
68
  });
@@ -107,6 +107,5 @@ var PaymentVoucherCode = /*#__PURE__*/_createClass(function PaymentVoucherCode(o
107
107
  this.children = [];
108
108
  this.dataType = "string";
109
109
  this.effects = options.effects;
110
- this.platform = options.platform;
111
110
  });
112
111
  export default PaymentVoucherCode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.8.2-beta.4",
3
+ "version": "1.8.2-beta.5",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -40,7 +40,7 @@
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "76cb906f2cfa9255cf5704a1f9ca035b95ec555c",
43
+ "gitHead": "92ba4df2dad7544c582f5a5c0fc71a571c4cfe05",
44
44
  "gitHooks": {
45
45
  "pre-commit": "lint-staged"
46
46
  }