@kmkf-fe-packages/services-components 2.2.5-beta.21 → 2.2.5-beta.25

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.
@@ -1,18 +1,18 @@
1
- import { ComponentInterface, PickOption, ALignType, Record } from '../../../type';
2
- import React from 'react';
1
+ import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
2
+ import React from "react";
3
3
  declare class HeaderChildPic implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
7
7
  type: string;
8
- componentConfig: ComponentInterface['componentConfig'];
8
+ componentConfig: ComponentInterface["componentConfig"];
9
9
  align: ALignType;
10
10
  width: number;
11
11
  isCombinationComponent: boolean;
12
12
  formField: string;
13
13
  canSort: boolean;
14
14
  children: ComponentInterface[];
15
- dataType: ComponentInterface['dataType'];
15
+ dataType: ComponentInterface["dataType"];
16
16
  parentName?: string;
17
17
  transformValue: (val: any, record?: any, parentName?: string) => any;
18
18
  export: (val: any, record?: any, parentName?: string) => any;
@@ -11,10 +11,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
11
11
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
12
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
13
  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); }
14
- import React from 'react';
15
- import { Image } from 'antd';
14
+ import React from "react";
15
+ import { Image } from "antd";
16
16
  import ItemView from "../../../commonComponents/ItemView";
17
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
17
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
18
18
  var HeaderChildPic = /*#__PURE__*/_createClass(function HeaderChildPic(options) {
19
19
  var _this = this;
20
20
  _classCallCheck(this, HeaderChildPic);
@@ -38,7 +38,7 @@ var HeaderChildPic = /*#__PURE__*/_createClass(function HeaderChildPic(options)
38
38
  return val;
39
39
  });
40
40
  _defineProperty(this, "getParentId", function () {
41
- var _this$id$split = _this.id.split('_'),
41
+ var _this$id$split = _this.id.split("_"),
42
42
  _this$id$split2 = _slicedToArray(_this$id$split, 3),
43
43
  key = _this$id$split2[0],
44
44
  name = _this$id$split2[1],
@@ -75,7 +75,7 @@ var HeaderChildPic = /*#__PURE__*/_createClass(function HeaderChildPic(options)
75
75
  _defineProperty(this, "getComponentValue", function (r) {
76
76
  var picList = (r === null || r === void 0 ? void 0 : r[_this.id]) || [];
77
77
  return picList === null || picList === void 0 ? void 0 : picList.map(function (url) {
78
- return url.startsWith('http') ? url : url.startsWith('/') ? "https://kefu.kuaimai.com".concat(url) : "https://kefu.kuaimai.com/".concat(url);
78
+ return url.startsWith("http") ? url : url.startsWith("/") ? "https://kefu.kuaimai.com".concat(url) : "https://kefu.kuaimai.com/".concat(url);
79
79
  });
80
80
  });
81
81
  _defineProperty(this, "getComponentExport", function (r) {
@@ -83,7 +83,7 @@ var HeaderChildPic = /*#__PURE__*/_createClass(function HeaderChildPic(options)
83
83
  });
84
84
  _defineProperty(this, "renderExport", function (value, record) {
85
85
  var picList = _this.getComponentValue(record);
86
- return picList.join(',');
86
+ return picList.join(",");
87
87
  });
88
88
  _defineProperty(this, "editRender", function () {
89
89
  return null;
@@ -95,16 +95,16 @@ var HeaderChildPic = /*#__PURE__*/_createClass(function HeaderChildPic(options)
95
95
  this.id = options.id;
96
96
  this.sortField = options.id;
97
97
  this.formField = options.id;
98
- this.type = 'SubPicture';
98
+ this.type = options.type;
99
99
  if (options.parentName) {
100
100
  this.parentName = options.parentName;
101
101
  }
102
102
  this.componentConfig = options.componentConfig;
103
- this.align = 'left';
103
+ this.align = "left";
104
104
  this.width = (options === null || options === void 0 ? void 0 : options.width) || 100;
105
105
  this.isCombinationComponent = false;
106
106
  this.canSort = false;
107
- this.dataType = 'string';
107
+ this.dataType = "string";
108
108
  this.children = [];
109
109
  if (options.transformValue) {
110
110
  this.transformValue = options.transformValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.2.5-beta.21",
3
+ "version": "2.2.5-beta.25",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "2.2.5-beta.21",
25
- "@kmkf-fe-packages/kmkf-utils": "2.2.5-beta.18",
24
+ "@kmkf-fe-packages/basic-components": "2.2.5-beta.25",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.2.5-beta.24",
26
26
  "b64-to-blob": "^1.2.19",
27
27
  "html2canvas": "^1.4.1",
28
28
  "react-pdf-js": "^5.1.0"
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "52e09d850c3d64732636822d50585dc02cfd234f",
44
+ "gitHead": "b32079adba4b6bbd9e1b9ed355162e72e85170e4",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }