@kmkf-fe-packages/services-components 1.0.3-alpha.7 → 1.0.3-alpha.8

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.
@@ -20,8 +20,8 @@ declare class Label implements ComponentInterface {
20
20
  editRender: (p: any) => React.JSX.Element;
21
21
  renderClient: (record: any) => React.JSX.Element | null;
22
22
  renderPc: (value: any, record: Record) => React.JSX.Element;
23
- renderLog: (r: Record) => null;
24
- renderExport: (value: any, record: Record) => string;
23
+ renderLog: (r: Record) => React.JSX.Element;
24
+ renderExport: (value: any, record: Record) => any;
25
25
  filterConfig: (item: ColumnConfig) => never[];
26
26
  }
27
27
  export default Label;
@@ -7,7 +7,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
7
7
  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); }
8
8
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
9
9
  import React from "react";
10
- import { Tag, Select } from 'antd';
10
+ import { Tag, Select, Space } from 'antd';
11
11
  import { LabelData, isNull } from "@kmkf-fe-packages/kmkf-utils";
12
12
  import GetFormItem from "../GetFormItem";
13
13
  import ItemView from "../../commonComponents/ItemView";
@@ -89,7 +89,7 @@ var Label = /*#__PURE__*/_createClass(function Label(options) {
89
89
  });
90
90
  _defineProperty(this, "renderPc", function (value, record) {
91
91
  var _record;
92
- return /*#__PURE__*/React.createElement("span", null, Array.isArray(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_label")]) ? record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_label")]) === null || _record === void 0 ? void 0 : _record.map(function (v) {
92
+ return /*#__PURE__*/React.createElement(Space, null, Array.isArray(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_label")]) ? record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_label")]) === null || _record === void 0 ? void 0 : _record.map(function (v) {
93
93
  var _this$labelDateInstan;
94
94
  var label = ((_this$labelDateInstan = _this.labelDateInstance.labelData) === null || _this$labelDateInstan === void 0 ? void 0 : _this$labelDateInstan.find(function (item) {
95
95
  return item.value === v;
@@ -101,12 +101,12 @@ var Label = /*#__PURE__*/_createClass(function Label(options) {
101
101
  }) : "--");
102
102
  });
103
103
  _defineProperty(this, "renderLog", function (r) {
104
- console.debug('renderLog', r);
105
- return null;
104
+ return _this.renderPc(undefined, r);
106
105
  });
107
106
  _defineProperty(this, "renderExport", function (value, record) {
107
+ var _record2;
108
108
  console.debug('renderExport', record);
109
- return '--';
109
+ return record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id, "_label")]) === null || _record2 === void 0 ? void 0 : _record2.join('');
110
110
  });
111
111
  _defineProperty(this, "filterConfig", function (item) {
112
112
  return [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.0.3-alpha.7",
3
+ "version": "1.0.3-alpha.8",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -37,7 +37,7 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "26156b4b0673e71a2f55b6770ed8e90df3cac581",
40
+ "gitHead": "40f39b76aab29bee92fdb62395475f61f0688ed6",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }