@kmkf-fe-packages/services-components 2.0.54-beta.19 → 2.0.54-beta.20

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.
@@ -53,20 +53,20 @@ var WdtShopSelect = /*#__PURE__*/_createClass(function WdtShopSelect(options) {
53
53
  });
54
54
  _defineProperty(this, "getLabel", function (record) {
55
55
  var _this$optionsMap;
56
- return (_this$optionsMap = _this.optionsMap) === null || _this$optionsMap === void 0 ? void 0 : _this$optionsMap[record === null || record === void 0 ? void 0 : record[_this.id]];
56
+ return (_this$optionsMap = _this.optionsMap) === null || _this$optionsMap === void 0 ? void 0 : _this$optionsMap[record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_shopCode")]];
57
57
  });
58
58
  _defineProperty(this, "renderClient", function (record) {
59
- return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
59
+ return !isNull(_this.getLabel(record)) ? /*#__PURE__*/React.createElement(ItemView, {
60
60
  id: _this.id,
61
61
  label: _this.name,
62
62
  value: _this.getLabel(record)
63
63
  }) : null;
64
64
  });
65
65
  _defineProperty(this, "renderPc", function (value, record) {
66
- return record !== null && record !== void 0 && record[_this.id] ? _this.getLabel(record) : "--";
66
+ return _this.getLabel(record) ? _this.getLabel(record) : "--";
67
67
  });
68
68
  _defineProperty(this, "renderLog", function (r) {
69
- if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
69
+ if (isNull(_this.getLabel(r))) return null;
70
70
  return _this.renderPc(undefined, r);
71
71
  });
72
72
  _defineProperty(this, "getComponentValue", function (r) {
@@ -113,6 +113,6 @@ var WdtShopSelect = /*#__PURE__*/_createClass(function WdtShopSelect(options) {
113
113
  this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
114
114
  options: this.options
115
115
  });
116
- this.dataType = "string_select";
116
+ this.dataType = "array";
117
117
  });
118
118
  export default WdtShopSelect;
@@ -53,7 +53,7 @@ export interface ComponentInterface {
53
53
  rules?: any[];
54
54
  width?: number;
55
55
  align?: ALignType;
56
- dataType: "string" | "number" | "boolean" | "array" | "range" | "object" | "weakenArray" | "arrayObject" | "string_select";
56
+ dataType: "string" | "number" | "boolean" | "array" | "range" | "object" | "weakenArray" | "arrayObject";
57
57
  format?: "dateTime" | "date" | "time" | "cascader" | "shopInput" | "staffGroup" | "object";
58
58
  options?: Array<any>;
59
59
  optionsMap?: Record;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.0.54-beta.19",
3
+ "version": "2.0.54-beta.20",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "c5a09e6f0f062f31e8549ac40d228390f34c46ad",
44
+ "gitHead": "e02190ca0cf02bee776877f3152b1128f268393c",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }