@kmkf-fe-packages/services-components 2.0.50 → 2.0.52
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/commonComponents/OperationLog/index.d.ts +2 -1
- package/dist/esm/commonComponents/OperationLog/index.js +6 -2
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +4 -4
- package/dist/esm/components/BS/common/BsHeaderChild.js +8 -10
- package/dist/esm/components/BS/common/BsHeaderPic.d.ts +6 -6
- package/dist/esm/components/BS/common/BsHeaderPic.js +7 -16
- package/dist/esm/components/Common/index.d.ts +3 -2
- package/dist/esm/components/Common/index.js +187 -143
- package/dist/esm/components/Common/index.module.less +1 -0
- package/dist/esm/components/Picture/index.d.ts +5 -5
- package/dist/esm/components/Picture/index.js +19 -19
- package/dist/esm/components/PicturePro/PictureName.d.ts +30 -0
- package/dist/esm/components/PicturePro/PictureName.js +132 -0
- package/dist/esm/components/PicturePro/PictureUrl.d.ts +26 -0
- package/dist/esm/components/PicturePro/PictureUrl.js +93 -0
- package/dist/esm/components/PicturePro/index.d.ts +40 -0
- package/dist/esm/components/PicturePro/index.js +180 -0
- package/dist/esm/components/PicturePro/index.less +63 -0
- package/dist/esm/components/Public/Exchange/index.d.ts +1 -1
- package/dist/esm/components/Select/index.js +3 -0
- package/dist/esm/components/StatusSelect/index.js +4 -0
- package/dist/esm/components/TradeId/index.d.ts +10 -7
- package/dist/esm/components/TradeId/index.js +12 -12
- package/dist/esm/constant.d.ts +1 -0
- package/dist/esm/constant.js +14 -13
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +5 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/type.d.ts +14 -14
- package/package.json +4 -4
|
@@ -3,6 +3,7 @@ declare type OperationLogProps = {
|
|
|
3
3
|
content: string;
|
|
4
4
|
operation: string;
|
|
5
5
|
componentDtoList: any[];
|
|
6
|
+
plat: any;
|
|
6
7
|
};
|
|
7
|
-
declare const OperationLog: ({ content, operation, componentDtoList, }: OperationLogProps) => React.JSX.Element | null;
|
|
8
|
+
declare const OperationLog: ({ content, operation, componentDtoList, plat, }: OperationLogProps) => React.JSX.Element | null;
|
|
8
9
|
export default OperationLog;
|
|
@@ -10,7 +10,8 @@ import { isNull, unTransField } from "@kmkf-fe-packages/kmkf-utils";
|
|
|
10
10
|
var OperationLog = function OperationLog(_ref) {
|
|
11
11
|
var content = _ref.content,
|
|
12
12
|
operation = _ref.operation,
|
|
13
|
-
componentDtoList = _ref.componentDtoList
|
|
13
|
+
componentDtoList = _ref.componentDtoList,
|
|
14
|
+
plat = _ref.plat;
|
|
14
15
|
if (!content) return null;
|
|
15
16
|
try {
|
|
16
17
|
//todo过滤一些固定字段 展示不确定
|
|
@@ -77,7 +78,10 @@ var OperationLog = function OperationLog(_ref) {
|
|
|
77
78
|
id: item.uniqueKey,
|
|
78
79
|
name: item.name,
|
|
79
80
|
componentConfig: item.componentConfig,
|
|
80
|
-
type: item.workOrderComponentType
|
|
81
|
+
type: item.workOrderComponentType,
|
|
82
|
+
effects: {
|
|
83
|
+
env: plat.platform
|
|
84
|
+
}
|
|
81
85
|
});
|
|
82
86
|
if (operation !== null && operation !== void 0 && operation.startsWith("UPDATE")) {
|
|
83
87
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from '../../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class BsHeaderChild implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
|
-
componentConfig: ComponentInterface[
|
|
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[
|
|
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,9 +11,9 @@ 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
|
|
14
|
+
import React from 'react';
|
|
15
15
|
import ItemView from "../../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from
|
|
16
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
17
|
var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
18
18
|
var _this = this;
|
|
19
19
|
_classCallCheck(this, BsHeaderChild);
|
|
@@ -37,7 +37,7 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
37
37
|
return val;
|
|
38
38
|
});
|
|
39
39
|
_defineProperty(this, "getParentId", function () {
|
|
40
|
-
var _this$id$split = _this.id.split(
|
|
40
|
+
var _this$id$split = _this.id.split('_'),
|
|
41
41
|
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
42
42
|
key = _this$id$split2[0],
|
|
43
43
|
name = _this$id$split2[1],
|
|
@@ -53,7 +53,7 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
53
53
|
});
|
|
54
54
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
55
55
|
var _this$getComponentVal;
|
|
56
|
-
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
56
|
+
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--');
|
|
57
57
|
});
|
|
58
58
|
_defineProperty(this, "renderLog", function (r) {
|
|
59
59
|
var id = _this.getParentId();
|
|
@@ -68,8 +68,8 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
68
68
|
});
|
|
69
69
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
70
70
|
var _this$getComponentExp;
|
|
71
|
-
var val = (_this$getComponentExp = _this.getComponentExport(record)) !== null && _this$getComponentExp !== void 0 ? _this$getComponentExp :
|
|
72
|
-
return typeof val ===
|
|
71
|
+
var val = (_this$getComponentExp = _this.getComponentExport(record)) !== null && _this$getComponentExp !== void 0 ? _this$getComponentExp : '--';
|
|
72
|
+
return typeof val === 'number' ? val + '' : val;
|
|
73
73
|
});
|
|
74
74
|
_defineProperty(this, "editRender", function () {
|
|
75
75
|
return null;
|
|
@@ -86,11 +86,11 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
86
86
|
this.parentName = options.parentName;
|
|
87
87
|
}
|
|
88
88
|
this.componentConfig = options.componentConfig;
|
|
89
|
-
this.align =
|
|
89
|
+
this.align = 'left';
|
|
90
90
|
this.width = (options === null || options === void 0 ? void 0 : options.width) || 100;
|
|
91
91
|
this.isCombinationComponent = false;
|
|
92
92
|
this.canSort = false;
|
|
93
|
-
this.dataType =
|
|
93
|
+
this.dataType = 'string';
|
|
94
94
|
this.children = [];
|
|
95
95
|
if (options.transformValue) {
|
|
96
96
|
this.transformValue = options.transformValue;
|
|
@@ -98,7 +98,5 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
98
98
|
if (options.renderExport) {
|
|
99
99
|
this.export = options.renderExport;
|
|
100
100
|
}
|
|
101
|
-
// this.export = (options as any).renderExport;
|
|
102
101
|
});
|
|
103
|
-
|
|
104
102
|
export default BsHeaderChild;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class BsChildPic implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
|
-
componentConfig: ComponentInterface[
|
|
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[
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
getParentId: () => string;
|
|
18
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
|
-
renderPc: (value: unknown, record: Record) => React.JSX.Element
|
|
20
|
-
renderLog: (r: Record) => React.JSX.Element |
|
|
19
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
20
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
21
|
getComponentValue: (r: Record) => any;
|
|
22
22
|
renderExport: (value: string, record: Record) => any;
|
|
23
23
|
editRender: () => null;
|
|
@@ -11,11 +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
|
|
15
|
-
import { Image } from
|
|
14
|
+
import React from "react";
|
|
15
|
+
import { Image } from "antd";
|
|
16
16
|
import ItemView from "../../../commonComponents/ItemView";
|
|
17
|
-
import {
|
|
18
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
19
18
|
var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
20
19
|
var _this = this;
|
|
21
20
|
_classCallCheck(this, BsChildPic);
|
|
@@ -32,7 +31,7 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
32
31
|
_defineProperty(this, "children", void 0);
|
|
33
32
|
_defineProperty(this, "dataType", void 0);
|
|
34
33
|
_defineProperty(this, "getParentId", function () {
|
|
35
|
-
var _this$id$split = _this.id.split(
|
|
34
|
+
var _this$id$split = _this.id.split("_"),
|
|
36
35
|
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
37
36
|
key = _this$id$split2[0],
|
|
38
37
|
name = _this$id$split2[1],
|
|
@@ -47,7 +46,6 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
47
46
|
}) : null;
|
|
48
47
|
});
|
|
49
48
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
50
|
-
var _BsGoodPic;
|
|
51
49
|
return /*#__PURE__*/React.createElement("span", {
|
|
52
50
|
onClick: function onClick(e) {
|
|
53
51
|
return e.stopPropagation();
|
|
@@ -56,7 +54,6 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
56
54
|
width: 60,
|
|
57
55
|
src: _this.getComponentValue(record)
|
|
58
56
|
}));
|
|
59
|
-
return (_BsGoodPic = BsGoodPic(_this.getComponentValue(record))) !== null && _BsGoodPic !== void 0 ? _BsGoodPic : '--';
|
|
60
57
|
});
|
|
61
58
|
_defineProperty(this, "renderLog", function (r) {
|
|
62
59
|
var id = _this.getParentId();
|
|
@@ -65,16 +62,10 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
65
62
|
});
|
|
66
63
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
67
64
|
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
68
|
-
var id = _this.getParentId();
|
|
69
|
-
var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
|
|
70
|
-
next['pic'] && prv.push(next['pic']);
|
|
71
|
-
return prv;
|
|
72
|
-
}, []);
|
|
73
|
-
return list;
|
|
74
65
|
});
|
|
75
66
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
76
67
|
var _this$getComponentVal;
|
|
77
|
-
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
68
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
|
|
78
69
|
});
|
|
79
70
|
_defineProperty(this, "editRender", function () {
|
|
80
71
|
return null;
|
|
@@ -88,11 +79,11 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
88
79
|
this.formField = options.id;
|
|
89
80
|
this.type = options.type;
|
|
90
81
|
this.componentConfig = options.componentConfig;
|
|
91
|
-
this.align =
|
|
82
|
+
this.align = "left";
|
|
92
83
|
this.width = 100;
|
|
93
84
|
this.isCombinationComponent = false;
|
|
94
85
|
this.canSort = false;
|
|
95
|
-
this.dataType =
|
|
86
|
+
this.dataType = "string";
|
|
96
87
|
this.children = [];
|
|
97
88
|
});
|
|
98
89
|
export default BsChildPic;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ShowHeaderObjType } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ShowHeaderObjType } from '../../type';
|
|
3
3
|
declare type getFormItemProps = {
|
|
4
4
|
name: string;
|
|
5
5
|
title: string;
|
|
@@ -42,4 +42,5 @@ export declare const FileRender: ({ fileList, canDownload }: any) => React.JSX.E
|
|
|
42
42
|
export declare const BsSystemOrderTable: ({ value, type }: any) => React.JSX.Element;
|
|
43
43
|
export declare const MsgContent: ({ horizontal, list, valueKey, failValue, options, }: any) => React.JSX.Element;
|
|
44
44
|
export declare const AlipayBill: (props: any) => React.JSX.Element;
|
|
45
|
+
export declare const RenderPicturePro: (props: any) => React.JSX.Element;
|
|
45
46
|
export {};
|