@kmkf-fe-packages/services-components 0.7.15-alpha.81 → 0.7.15-alpha.82
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/dist/esm/components/BS/BsExchange/index.d.ts +6 -6
- package/dist/esm/components/BS/BsExchange/index.js +26 -199
- package/dist/esm/components/BS/BsGoods/index.d.ts +6 -6
- package/dist/esm/components/BS/BsGoods/index.js +8 -65
- package/dist/esm/components/BS/BsReissue/index.d.ts +6 -6
- package/dist/esm/components/BS/BsReissue/index.js +15 -75
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +4 -4
- package/dist/esm/components/BS/common/BsHeaderChild.js +8 -8
- package/dist/esm/components/BS/common/BsHeaderGood.d.ts +4 -4
- package/dist/esm/components/BS/common/BsHeaderGood.js +41 -41
- package/dist/esm/components/BS/common/BsHeaderPic.js +1 -1
- package/dist/esm/components/BS/common/BsMemo.js +1 -1
- package/dist/esm/components/BS/common/BsType.js +1 -1
- package/dist/esm/components/BS/common/index.d.ts +5 -12
- package/dist/esm/components/BS/common/index.js +7 -7
- package/package.json +2 -2
- package/dist/esm/components/BS/common/BsHeaderCode.d.ts +0 -26
- package/dist/esm/components/BS/common/BsHeaderCode.js +0 -88
- package/dist/esm/components/BS/common/BsHeaderMoney.d.ts +0 -26
- package/dist/esm/components/BS/common/BsHeaderMoney.js +0 -88
- package/dist/esm/components/BS/common/BsHeaderName.d.ts +0 -26
- package/dist/esm/components/BS/common/BsHeaderName.js +0 -88
- package/dist/esm/components/BS/common/BsHeaderNumber.d.ts +0 -26
- package/dist/esm/components/BS/common/BsHeaderNumber.js +0 -88
- package/dist/esm/components/BS/common/BsHeaderShare.d.ts +0 -26
- package/dist/esm/components/BS/common/BsHeaderShare.js +0 -88
- package/dist/esm/components/BS/common/BsHeaderSku.d.ts +0 -26
- package/dist/esm/components/BS/common/BsHeaderSku.js +0 -88
- package/dist/esm/components/BS/common/BsHeaderType.d.ts +0 -26
- package/dist/esm/components/BS/common/BsHeaderType.js +0 -88
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
9
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
10
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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 ItemView from "../../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
|
-
var BsChildName = /*#__PURE__*/_createClass(function BsChildName(options) {
|
|
18
|
-
var _this = this;
|
|
19
|
-
_classCallCheck(this, BsChildName);
|
|
20
|
-
_defineProperty(this, "name", void 0);
|
|
21
|
-
_defineProperty(this, "id", void 0);
|
|
22
|
-
_defineProperty(this, "sortField", void 0);
|
|
23
|
-
_defineProperty(this, "type", void 0);
|
|
24
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
25
|
-
_defineProperty(this, "align", void 0);
|
|
26
|
-
_defineProperty(this, "width", void 0);
|
|
27
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
-
_defineProperty(this, "formField", void 0);
|
|
29
|
-
_defineProperty(this, "canSort", void 0);
|
|
30
|
-
_defineProperty(this, "children", void 0);
|
|
31
|
-
_defineProperty(this, "dataType", void 0);
|
|
32
|
-
_defineProperty(this, "getParentId", function () {
|
|
33
|
-
var _this$id$split = _this.id.split("_"),
|
|
34
|
-
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
35
|
-
key = _this$id$split2[0],
|
|
36
|
-
name = _this$id$split2[1],
|
|
37
|
-
code = _this$id$split2[2];
|
|
38
|
-
return "".concat(key, "_").concat(name);
|
|
39
|
-
});
|
|
40
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
41
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
42
|
-
id: _this.id,
|
|
43
|
-
label: _this.name,
|
|
44
|
-
value: _this.getComponentValue(record)
|
|
45
|
-
}) : null;
|
|
46
|
-
});
|
|
47
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
48
|
-
var _this$getComponentVal;
|
|
49
|
-
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
|
|
50
|
-
});
|
|
51
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
52
|
-
var id = _this.getParentId();
|
|
53
|
-
if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
|
|
54
|
-
return _this.renderPc(undefined, r);
|
|
55
|
-
});
|
|
56
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
57
|
-
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
58
|
-
var id = _this.getParentId();
|
|
59
|
-
var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
|
|
60
|
-
next["name"] && prv.push(next["name"]);
|
|
61
|
-
return prv;
|
|
62
|
-
}, []);
|
|
63
|
-
return list.join(",");
|
|
64
|
-
});
|
|
65
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
66
|
-
var _this$getComponentVal2;
|
|
67
|
-
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
|
|
68
|
-
});
|
|
69
|
-
_defineProperty(this, "editRender", function () {
|
|
70
|
-
return null;
|
|
71
|
-
});
|
|
72
|
-
_defineProperty(this, "filterConfig", function () {
|
|
73
|
-
return [];
|
|
74
|
-
});
|
|
75
|
-
this.name = options.name;
|
|
76
|
-
this.id = options.id;
|
|
77
|
-
this.sortField = options.id;
|
|
78
|
-
this.formField = options.id;
|
|
79
|
-
this.type = options.type;
|
|
80
|
-
this.componentConfig = options.componentConfig;
|
|
81
|
-
this.align = "left";
|
|
82
|
-
this.width = 200;
|
|
83
|
-
this.isCombinationComponent = false;
|
|
84
|
-
this.canSort = false;
|
|
85
|
-
this.dataType = "string";
|
|
86
|
-
this.children = [];
|
|
87
|
-
});
|
|
88
|
-
export default BsChildName;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ALignType, Record } from '../../../type';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare class BsChildCode implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
id: string;
|
|
6
|
-
sortField: string;
|
|
7
|
-
type: string;
|
|
8
|
-
componentConfig: ComponentInterface['componentConfig'];
|
|
9
|
-
align: ALignType;
|
|
10
|
-
width: number;
|
|
11
|
-
isCombinationComponent: boolean;
|
|
12
|
-
formField: string;
|
|
13
|
-
canSort: boolean;
|
|
14
|
-
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface['dataType'];
|
|
16
|
-
constructor(options: PickOption);
|
|
17
|
-
getParentId: () => string;
|
|
18
|
-
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
|
-
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
20
|
-
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
|
-
getComponentValue: (r: Record) => any;
|
|
22
|
-
renderExport: (value: string, record: Record) => any;
|
|
23
|
-
editRender: () => null;
|
|
24
|
-
filterConfig: () => never[];
|
|
25
|
-
}
|
|
26
|
-
export default BsChildCode;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
9
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
10
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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 ItemView from "../../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
|
-
var BsChildCode = /*#__PURE__*/_createClass(function BsChildCode(options) {
|
|
18
|
-
var _this = this;
|
|
19
|
-
_classCallCheck(this, BsChildCode);
|
|
20
|
-
_defineProperty(this, "name", void 0);
|
|
21
|
-
_defineProperty(this, "id", void 0);
|
|
22
|
-
_defineProperty(this, "sortField", void 0);
|
|
23
|
-
_defineProperty(this, "type", void 0);
|
|
24
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
25
|
-
_defineProperty(this, "align", void 0);
|
|
26
|
-
_defineProperty(this, "width", void 0);
|
|
27
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
-
_defineProperty(this, "formField", void 0);
|
|
29
|
-
_defineProperty(this, "canSort", void 0);
|
|
30
|
-
_defineProperty(this, "children", void 0);
|
|
31
|
-
_defineProperty(this, "dataType", void 0);
|
|
32
|
-
_defineProperty(this, "getParentId", function () {
|
|
33
|
-
var _this$id$split = _this.id.split('_'),
|
|
34
|
-
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
35
|
-
key = _this$id$split2[0],
|
|
36
|
-
name = _this$id$split2[1],
|
|
37
|
-
code = _this$id$split2[2];
|
|
38
|
-
return "".concat(key, "_").concat(name);
|
|
39
|
-
});
|
|
40
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
41
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
42
|
-
id: _this.id,
|
|
43
|
-
label: _this.name,
|
|
44
|
-
value: _this.getComponentValue(record)
|
|
45
|
-
}) : null;
|
|
46
|
-
});
|
|
47
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
48
|
-
var _this$getComponentVal;
|
|
49
|
-
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--');
|
|
50
|
-
});
|
|
51
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
52
|
-
var id = _this.getParentId();
|
|
53
|
-
if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
|
|
54
|
-
return _this.renderPc(undefined, r);
|
|
55
|
-
});
|
|
56
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
57
|
-
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
58
|
-
var id = _this.getParentId();
|
|
59
|
-
var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
|
|
60
|
-
next['number'] && prv.push(next['number']);
|
|
61
|
-
return prv;
|
|
62
|
-
}, []);
|
|
63
|
-
return list.join(',');
|
|
64
|
-
});
|
|
65
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
66
|
-
var _this$getComponentVal2;
|
|
67
|
-
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : '--';
|
|
68
|
-
});
|
|
69
|
-
_defineProperty(this, "editRender", function () {
|
|
70
|
-
return null;
|
|
71
|
-
});
|
|
72
|
-
_defineProperty(this, "filterConfig", function () {
|
|
73
|
-
return [];
|
|
74
|
-
});
|
|
75
|
-
this.name = options.name;
|
|
76
|
-
this.id = options.id;
|
|
77
|
-
this.sortField = options.id;
|
|
78
|
-
this.formField = options.id;
|
|
79
|
-
this.type = options.type;
|
|
80
|
-
this.componentConfig = options.componentConfig;
|
|
81
|
-
this.align = 'left';
|
|
82
|
-
this.width = 200;
|
|
83
|
-
this.isCombinationComponent = false;
|
|
84
|
-
this.canSort = false;
|
|
85
|
-
this.dataType = 'string';
|
|
86
|
-
this.children = [];
|
|
87
|
-
});
|
|
88
|
-
export default BsChildCode;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ALignType, Record } from '../../../type';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare class BsChildShare implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
id: string;
|
|
6
|
-
sortField: string;
|
|
7
|
-
type: string;
|
|
8
|
-
componentConfig: ComponentInterface['componentConfig'];
|
|
9
|
-
align: ALignType;
|
|
10
|
-
width: number;
|
|
11
|
-
isCombinationComponent: boolean;
|
|
12
|
-
formField: string;
|
|
13
|
-
canSort: boolean;
|
|
14
|
-
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface['dataType'];
|
|
16
|
-
constructor(options: PickOption);
|
|
17
|
-
getParentId: () => string;
|
|
18
|
-
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
|
-
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
20
|
-
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
|
-
getComponentValue: (r: Record) => any;
|
|
22
|
-
renderExport: (value: string, record: Record) => any;
|
|
23
|
-
editRender: () => null;
|
|
24
|
-
filterConfig: () => never[];
|
|
25
|
-
}
|
|
26
|
-
export default BsChildShare;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
9
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
10
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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 ItemView from "../../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
|
-
var BsChildShare = /*#__PURE__*/_createClass(function BsChildShare(options) {
|
|
18
|
-
var _this = this;
|
|
19
|
-
_classCallCheck(this, BsChildShare);
|
|
20
|
-
_defineProperty(this, "name", void 0);
|
|
21
|
-
_defineProperty(this, "id", void 0);
|
|
22
|
-
_defineProperty(this, "sortField", void 0);
|
|
23
|
-
_defineProperty(this, "type", void 0);
|
|
24
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
25
|
-
_defineProperty(this, "align", void 0);
|
|
26
|
-
_defineProperty(this, "width", void 0);
|
|
27
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
-
_defineProperty(this, "formField", void 0);
|
|
29
|
-
_defineProperty(this, "canSort", void 0);
|
|
30
|
-
_defineProperty(this, "children", void 0);
|
|
31
|
-
_defineProperty(this, "dataType", void 0);
|
|
32
|
-
_defineProperty(this, "getParentId", function () {
|
|
33
|
-
var _this$id$split = _this.id.split('_'),
|
|
34
|
-
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
35
|
-
key = _this$id$split2[0],
|
|
36
|
-
name = _this$id$split2[1],
|
|
37
|
-
code = _this$id$split2[2];
|
|
38
|
-
return "".concat(key, "_").concat(name);
|
|
39
|
-
});
|
|
40
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
41
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
42
|
-
id: _this.id,
|
|
43
|
-
label: _this.name,
|
|
44
|
-
value: _this.getComponentValue(record)
|
|
45
|
-
}) : null;
|
|
46
|
-
});
|
|
47
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
48
|
-
var _this$getComponentVal;
|
|
49
|
-
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--');
|
|
50
|
-
});
|
|
51
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
52
|
-
var id = _this.getParentId();
|
|
53
|
-
if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
|
|
54
|
-
return _this.renderPc(undefined, r);
|
|
55
|
-
});
|
|
56
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
57
|
-
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
58
|
-
var id = _this.getParentId();
|
|
59
|
-
var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
|
|
60
|
-
next['share'] && prv.push(next['share']);
|
|
61
|
-
return prv;
|
|
62
|
-
}, []);
|
|
63
|
-
return list.join(',');
|
|
64
|
-
});
|
|
65
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
66
|
-
var _this$getComponentVal2;
|
|
67
|
-
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : '--';
|
|
68
|
-
});
|
|
69
|
-
_defineProperty(this, "editRender", function () {
|
|
70
|
-
return null;
|
|
71
|
-
});
|
|
72
|
-
_defineProperty(this, "filterConfig", function () {
|
|
73
|
-
return [];
|
|
74
|
-
});
|
|
75
|
-
this.name = options.name;
|
|
76
|
-
this.id = options.id;
|
|
77
|
-
this.sortField = options.id;
|
|
78
|
-
this.formField = options.id;
|
|
79
|
-
this.type = options.type;
|
|
80
|
-
this.componentConfig = options.componentConfig;
|
|
81
|
-
this.align = 'left';
|
|
82
|
-
this.width = 200;
|
|
83
|
-
this.isCombinationComponent = false;
|
|
84
|
-
this.canSort = false;
|
|
85
|
-
this.dataType = 'string';
|
|
86
|
-
this.children = [];
|
|
87
|
-
});
|
|
88
|
-
export default BsChildShare;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ALignType, Record } from '../../../type';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare class BsChildSku implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
id: string;
|
|
6
|
-
sortField: string;
|
|
7
|
-
type: string;
|
|
8
|
-
componentConfig: ComponentInterface['componentConfig'];
|
|
9
|
-
align: ALignType;
|
|
10
|
-
width: number;
|
|
11
|
-
isCombinationComponent: boolean;
|
|
12
|
-
formField: string;
|
|
13
|
-
canSort: boolean;
|
|
14
|
-
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface['dataType'];
|
|
16
|
-
constructor(options: PickOption);
|
|
17
|
-
getParentId: () => string;
|
|
18
|
-
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
|
-
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
20
|
-
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
|
-
getComponentValue: (r: Record) => any;
|
|
22
|
-
renderExport: (value: string, record: Record) => any;
|
|
23
|
-
editRender: () => null;
|
|
24
|
-
filterConfig: () => never[];
|
|
25
|
-
}
|
|
26
|
-
export default BsChildSku;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
9
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
10
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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 ItemView from "../../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
|
-
var BsChildSku = /*#__PURE__*/_createClass(function BsChildSku(options) {
|
|
18
|
-
var _this = this;
|
|
19
|
-
_classCallCheck(this, BsChildSku);
|
|
20
|
-
_defineProperty(this, "name", void 0);
|
|
21
|
-
_defineProperty(this, "id", void 0);
|
|
22
|
-
_defineProperty(this, "sortField", void 0);
|
|
23
|
-
_defineProperty(this, "type", void 0);
|
|
24
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
25
|
-
_defineProperty(this, "align", void 0);
|
|
26
|
-
_defineProperty(this, "width", void 0);
|
|
27
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
-
_defineProperty(this, "formField", void 0);
|
|
29
|
-
_defineProperty(this, "canSort", void 0);
|
|
30
|
-
_defineProperty(this, "children", void 0);
|
|
31
|
-
_defineProperty(this, "dataType", void 0);
|
|
32
|
-
_defineProperty(this, "getParentId", function () {
|
|
33
|
-
var _this$id$split = _this.id.split('_'),
|
|
34
|
-
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
35
|
-
key = _this$id$split2[0],
|
|
36
|
-
name = _this$id$split2[1],
|
|
37
|
-
code = _this$id$split2[2];
|
|
38
|
-
return "".concat(key, "_").concat(name);
|
|
39
|
-
});
|
|
40
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
41
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
42
|
-
id: _this.id,
|
|
43
|
-
label: _this.name,
|
|
44
|
-
value: _this.getComponentValue(record)
|
|
45
|
-
}) : null;
|
|
46
|
-
});
|
|
47
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
48
|
-
var _this$getComponentVal;
|
|
49
|
-
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--');
|
|
50
|
-
});
|
|
51
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
52
|
-
var id = _this.getParentId();
|
|
53
|
-
if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
|
|
54
|
-
return _this.renderPc(undefined, r);
|
|
55
|
-
});
|
|
56
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
57
|
-
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
58
|
-
var id = _this.getParentId();
|
|
59
|
-
var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
|
|
60
|
-
next['sku'] && prv.push(next['sku']);
|
|
61
|
-
return prv;
|
|
62
|
-
}, []);
|
|
63
|
-
return list.join(',');
|
|
64
|
-
});
|
|
65
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
66
|
-
var _this$getComponentVal2;
|
|
67
|
-
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : '--';
|
|
68
|
-
});
|
|
69
|
-
_defineProperty(this, "editRender", function () {
|
|
70
|
-
return null;
|
|
71
|
-
});
|
|
72
|
-
_defineProperty(this, "filterConfig", function () {
|
|
73
|
-
return [];
|
|
74
|
-
});
|
|
75
|
-
this.name = options.name;
|
|
76
|
-
this.id = options.id;
|
|
77
|
-
this.sortField = options.id;
|
|
78
|
-
this.formField = options.id;
|
|
79
|
-
this.type = options.type;
|
|
80
|
-
this.componentConfig = options.componentConfig;
|
|
81
|
-
this.align = 'left';
|
|
82
|
-
this.width = 200;
|
|
83
|
-
this.isCombinationComponent = false;
|
|
84
|
-
this.canSort = false;
|
|
85
|
-
this.dataType = 'string';
|
|
86
|
-
this.children = [];
|
|
87
|
-
});
|
|
88
|
-
export default BsChildSku;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ALignType, Record } from '../../../type';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare class BsChildType implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
id: string;
|
|
6
|
-
sortField: string;
|
|
7
|
-
type: string;
|
|
8
|
-
componentConfig: ComponentInterface['componentConfig'];
|
|
9
|
-
align: ALignType;
|
|
10
|
-
width: number;
|
|
11
|
-
isCombinationComponent: boolean;
|
|
12
|
-
formField: string;
|
|
13
|
-
canSort: boolean;
|
|
14
|
-
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface['dataType'];
|
|
16
|
-
constructor(options: PickOption);
|
|
17
|
-
getParentId: () => string;
|
|
18
|
-
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
|
-
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
20
|
-
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
|
-
getComponentValue: (r: Record) => any;
|
|
22
|
-
renderExport: (value: string, record: Record) => any;
|
|
23
|
-
editRender: () => null;
|
|
24
|
-
filterConfig: () => never[];
|
|
25
|
-
}
|
|
26
|
-
export default BsChildType;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
9
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
10
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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 ItemView from "../../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
|
-
var BsChildType = /*#__PURE__*/_createClass(function BsChildType(options) {
|
|
18
|
-
var _this = this;
|
|
19
|
-
_classCallCheck(this, BsChildType);
|
|
20
|
-
_defineProperty(this, "name", void 0);
|
|
21
|
-
_defineProperty(this, "id", void 0);
|
|
22
|
-
_defineProperty(this, "sortField", void 0);
|
|
23
|
-
_defineProperty(this, "type", void 0);
|
|
24
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
25
|
-
_defineProperty(this, "align", void 0);
|
|
26
|
-
_defineProperty(this, "width", void 0);
|
|
27
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
-
_defineProperty(this, "formField", void 0);
|
|
29
|
-
_defineProperty(this, "canSort", void 0);
|
|
30
|
-
_defineProperty(this, "children", void 0);
|
|
31
|
-
_defineProperty(this, "dataType", void 0);
|
|
32
|
-
_defineProperty(this, "getParentId", function () {
|
|
33
|
-
var _this$id$split = _this.id.split('_'),
|
|
34
|
-
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
35
|
-
key = _this$id$split2[0],
|
|
36
|
-
name = _this$id$split2[1],
|
|
37
|
-
code = _this$id$split2[2];
|
|
38
|
-
return "".concat(key, "_").concat(name);
|
|
39
|
-
});
|
|
40
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
41
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
42
|
-
id: _this.id,
|
|
43
|
-
label: _this.name,
|
|
44
|
-
value: _this.getComponentValue(record)
|
|
45
|
-
}) : null;
|
|
46
|
-
});
|
|
47
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
48
|
-
var _this$getComponentVal;
|
|
49
|
-
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--');
|
|
50
|
-
});
|
|
51
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
52
|
-
var id = _this.getParentId();
|
|
53
|
-
if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
|
|
54
|
-
return _this.renderPc(undefined, r);
|
|
55
|
-
});
|
|
56
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
57
|
-
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
58
|
-
var id = _this.getParentId();
|
|
59
|
-
var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
|
|
60
|
-
next['type'] && prv.push(next['type']);
|
|
61
|
-
return prv;
|
|
62
|
-
}, []);
|
|
63
|
-
return list.join(',');
|
|
64
|
-
});
|
|
65
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
66
|
-
var _this$getComponentVal2;
|
|
67
|
-
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : '--';
|
|
68
|
-
});
|
|
69
|
-
_defineProperty(this, "editRender", function () {
|
|
70
|
-
return null;
|
|
71
|
-
});
|
|
72
|
-
_defineProperty(this, "filterConfig", function () {
|
|
73
|
-
return [];
|
|
74
|
-
});
|
|
75
|
-
this.name = options.name;
|
|
76
|
-
this.id = options.id;
|
|
77
|
-
this.sortField = options.id;
|
|
78
|
-
this.formField = options.id;
|
|
79
|
-
this.type = options.type;
|
|
80
|
-
this.componentConfig = options.componentConfig;
|
|
81
|
-
this.align = 'left';
|
|
82
|
-
this.width = 200;
|
|
83
|
-
this.isCombinationComponent = false;
|
|
84
|
-
this.canSort = false;
|
|
85
|
-
this.dataType = 'string';
|
|
86
|
-
this.children = [];
|
|
87
|
-
});
|
|
88
|
-
export default BsChildType;
|