@kmkf-fe-packages/services-components 0.21.6-alpha.4 → 0.21.6-alpha.5
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/BsSystemOrder/index.d.ts +7 -6
- package/dist/esm/components/BS/BsSystemOrder/index.js +22 -19
- package/dist/esm/components/BS/DeliveryNo/index.d.ts +6 -5
- package/dist/esm/components/BS/DeliveryNo/index.js +15 -12
- package/dist/esm/components/CommonMultiStatus/index.d.ts +6 -5
- package/dist/esm/components/CommonMultiStatus/index.js +58 -51
- package/dist/esm/components/CommonSystemOrder/index.d.ts +6 -5
- package/dist/esm/components/CommonSystemOrder/index.js +29 -26
- package/dist/esm/components/Input/index.d.ts +3 -2
- package/dist/esm/components/Input/index.js +10 -3
- package/dist/esm/components/JST/JstLogistics/index.d.ts +11 -0
- package/dist/esm/components/JST/JstLogistics/index.js +18 -4
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +12 -2
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +7 -14
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCode.d.ts +7 -7
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCode.js +18 -37
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCompany.d.ts +8 -8
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCompany.js +16 -29
- package/dist/esm/components/LogisticsMoreTrajectory/trajectorySnapshot.d.ts +6 -6
- package/dist/esm/components/LogisticsMoreTrajectory/trajectorySnapshot.js +14 -29
- package/dist/esm/components/Payment/index.d.ts +12 -12
- package/dist/esm/components/Payment/index.js +11 -12
- package/dist/esm/components/PostIng/index.js +1 -1
- package/dist/esm/components/TradeId/index.d.ts +1 -1
- package/dist/esm/components/TradeId/index.js +2 -2
- package/dist/esm/constant.d.ts +1 -0
- package/dist/esm/constant.js +3 -0
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/type.d.ts +14 -14
- package/package.json +4 -4
|
@@ -14,7 +14,7 @@ import { ApaasInput } from "@kmkf-fe-packages/basic-components";
|
|
|
14
14
|
import GetFormItem from "../GetFormItem";
|
|
15
15
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
16
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
|
-
import { SYMBOL } from "../../constant";
|
|
17
|
+
import { SYMBOL, batchInput } from "../../constant";
|
|
18
18
|
import { replaceCheck } from "../../service/api";
|
|
19
19
|
var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
20
20
|
var _this = this,
|
|
@@ -74,17 +74,24 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
74
74
|
});
|
|
75
75
|
_defineProperty(this, "filterConfig", function (item) {
|
|
76
76
|
return {
|
|
77
|
-
searchDefaultConditions: SYMBOL.
|
|
77
|
+
searchDefaultConditions: SYMBOL.in,
|
|
78
78
|
type: item.type,
|
|
79
79
|
id: "".concat(item.id, "_input"),
|
|
80
80
|
// 过滤组件id
|
|
81
81
|
name: item.name,
|
|
82
82
|
// 过滤组件名称
|
|
83
|
-
filterComponentType: "
|
|
83
|
+
filterComponentType: "SelectInput",
|
|
84
84
|
filterFn: function filterFn(value) {
|
|
85
85
|
return function (i) {
|
|
86
86
|
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, "input")).includes(value);
|
|
87
87
|
};
|
|
88
|
+
},
|
|
89
|
+
formatFilterValue: function formatFilterValue(value) {
|
|
90
|
+
if (value.type === "keywords") {
|
|
91
|
+
return batchInput(value.keywords);
|
|
92
|
+
} else {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
88
95
|
}
|
|
89
96
|
};
|
|
90
97
|
});
|
|
@@ -39,6 +39,16 @@ declare class JstLogistics implements ComponentInterface {
|
|
|
39
39
|
options: any[];
|
|
40
40
|
};
|
|
41
41
|
filterFn: (value: string) => (i: Record) => any;
|
|
42
|
+
formatFilterValue?: undefined;
|
|
43
|
+
} | {
|
|
44
|
+
searchDefaultConditions: "in";
|
|
45
|
+
type: string;
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
filterComponentType: "Input";
|
|
49
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
50
|
+
formatFilterValue: (input: string) => string | string[];
|
|
51
|
+
props?: undefined;
|
|
42
52
|
} | {
|
|
43
53
|
searchDefaultConditions: "like";
|
|
44
54
|
type: string;
|
|
@@ -47,6 +57,7 @@ declare class JstLogistics implements ComponentInterface {
|
|
|
47
57
|
filterComponentType: "Input";
|
|
48
58
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
49
59
|
props?: undefined;
|
|
60
|
+
formatFilterValue?: undefined;
|
|
50
61
|
})[];
|
|
51
62
|
}
|
|
52
63
|
export default JstLogistics;
|
|
@@ -14,7 +14,7 @@ import { JstGoodImage } from "../../Common";
|
|
|
14
14
|
import { JstGoods } from "@kmkf-fe-packages/basic-components";
|
|
15
15
|
import ItemView from "../../../commonComponents/ItemView";
|
|
16
16
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
|
-
import { SYMBOL } from "../../../constant";
|
|
17
|
+
import { SYMBOL, batchInput } from "../../../constant";
|
|
18
18
|
var typeMap = {
|
|
19
19
|
JST_LOGISTICS: {
|
|
20
20
|
key: "jstItemList",
|
|
@@ -141,7 +141,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
|
|
|
141
141
|
});
|
|
142
142
|
});
|
|
143
143
|
_defineProperty(this, "filterConfig", function (item) {
|
|
144
|
-
var _typeMap$_this$type5, _typeMap$_this$type6;
|
|
144
|
+
var _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7;
|
|
145
145
|
return [{
|
|
146
146
|
searchDefaultConditions: SYMBOL.in,
|
|
147
147
|
type: item.type,
|
|
@@ -161,12 +161,26 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
|
|
|
161
161
|
});
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
}, {
|
|
165
|
-
searchDefaultConditions: SYMBOL.
|
|
164
|
+
}, _this.type === "REISSUE_LOGISTICS" ? {
|
|
165
|
+
searchDefaultConditions: SYMBOL.in,
|
|
166
166
|
type: item.type,
|
|
167
167
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.code),
|
|
168
168
|
name: "".concat(_this.name, "\u7269\u6D41\u5355\u53F7"),
|
|
169
169
|
filterComponentType: "Input",
|
|
170
|
+
filterFn: function filterFn(value) {
|
|
171
|
+
return function (i) {
|
|
172
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "logisticsCode"), value);
|
|
173
|
+
};
|
|
174
|
+
},
|
|
175
|
+
formatFilterValue: function formatFilterValue(input) {
|
|
176
|
+
return batchInput(input);
|
|
177
|
+
}
|
|
178
|
+
} : {
|
|
179
|
+
searchDefaultConditions: SYMBOL.like,
|
|
180
|
+
type: item.type,
|
|
181
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.code),
|
|
182
|
+
name: "".concat(_this.name, "\u7269\u6D41\u5355\u53F7"),
|
|
183
|
+
filterComponentType: "Input",
|
|
170
184
|
filterFn: function filterFn(value) {
|
|
171
185
|
return function (i) {
|
|
172
186
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "logisticsCode"), value);
|
|
@@ -27,12 +27,22 @@ declare class LogisticsMoreTrajectory implements ComponentInterface {
|
|
|
27
27
|
renderLog: (r: Record) => any;
|
|
28
28
|
getComponentValue: (r: Record) => any;
|
|
29
29
|
renderExport: () => null;
|
|
30
|
-
filterConfig: (item: ColumnConfig) => {
|
|
30
|
+
filterConfig: (item: ColumnConfig) => ({
|
|
31
|
+
searchDefaultConditions: "in";
|
|
32
|
+
type: string;
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
filterComponentType: "MultipleSelect";
|
|
36
|
+
props: {
|
|
37
|
+
options: any[];
|
|
38
|
+
};
|
|
39
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
40
|
+
} | {
|
|
31
41
|
searchDefaultConditions: "like";
|
|
32
42
|
type: string;
|
|
33
43
|
id: string;
|
|
34
44
|
name: string;
|
|
35
45
|
filterComponentType: "Input";
|
|
36
|
-
}[];
|
|
46
|
+
})[];
|
|
37
47
|
}
|
|
38
48
|
export default LogisticsMoreTrajectory;
|
|
@@ -16,7 +16,6 @@ import TrajectorySnapshot from "./trajectorySnapshot";
|
|
|
16
16
|
import GetFormItem from "../GetFormItem";
|
|
17
17
|
import ItemView from "../../commonComponents/ItemView";
|
|
18
18
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
19
|
-
import { SYMBOL } from "../../constant";
|
|
20
19
|
var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTrajectory(options) {
|
|
21
20
|
var _this = this,
|
|
22
21
|
_this$componentConfig3;
|
|
@@ -65,21 +64,15 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
65
64
|
}) : null;
|
|
66
65
|
});
|
|
67
66
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
68
|
-
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
67
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_trajectoryList")];
|
|
69
68
|
});
|
|
70
69
|
_defineProperty(this, "renderExport", function () {
|
|
71
70
|
return null;
|
|
72
71
|
});
|
|
73
72
|
_defineProperty(this, "filterConfig", function (item) {
|
|
74
|
-
return [{
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
id: "".concat(item.id, "_trajectoryList"),
|
|
78
|
-
// 过滤组件id
|
|
79
|
-
name: item.name,
|
|
80
|
-
// 过滤组件名称
|
|
81
|
-
filterComponentType: "Input"
|
|
82
|
-
}];
|
|
73
|
+
return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
74
|
+
subKey: "trajectoryMoreCompany"
|
|
75
|
+
})), _this.expressCode.filterConfig(item), _this.expressSnapshot.filterConfig(item)];
|
|
83
76
|
});
|
|
84
77
|
this.name = options.name;
|
|
85
78
|
this.id = options.id;
|
|
@@ -90,15 +83,15 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
90
83
|
this.expressDateInstance = ExpressData.getInstance();
|
|
91
84
|
this.express = new TrajectoryCompany(_objectSpread(_objectSpread({}, options), {}, {
|
|
92
85
|
name: "".concat(this.name, "-\u516C\u53F8"),
|
|
93
|
-
id: "".concat(this.id, "
|
|
86
|
+
id: "".concat(this.id, "_trajectoryMoreCompany")
|
|
94
87
|
}));
|
|
95
88
|
this.expressCode = new TrajectoryCode(_objectSpread(_objectSpread({}, options), {}, {
|
|
96
89
|
name: "".concat(this.name, "-\u5355\u53F7"),
|
|
97
|
-
id: "".concat(this.id, "
|
|
90
|
+
id: "".concat(this.id, "_trajectoryMoreCode")
|
|
98
91
|
}));
|
|
99
92
|
this.expressSnapshot = new TrajectorySnapshot(_objectSpread(_objectSpread({}, options), {}, {
|
|
100
93
|
name: "".concat(this.name, "-\u5FEB\u7167"),
|
|
101
|
-
id: "".concat(this.id, "
|
|
94
|
+
id: "".concat(this.id, "_trajectoryMoreSnapshot")
|
|
102
95
|
}));
|
|
103
96
|
this.isCombinationComponent = true;
|
|
104
97
|
this.canSort = false;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class TrajectoryCode implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
|
+
parentId: string;
|
|
6
7
|
sortField: string;
|
|
7
8
|
type: string;
|
|
8
9
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
11
|
align: ALignType;
|
|
11
12
|
width: number;
|
|
12
13
|
isCombinationComponent: boolean;
|
|
13
14
|
formField: string;
|
|
14
15
|
canSort: boolean;
|
|
15
16
|
children: ComponentInterface[];
|
|
16
|
-
dataType: ComponentInterface[
|
|
17
|
+
dataType: ComponentInterface["dataType"];
|
|
17
18
|
constructor(options: PickOption);
|
|
18
|
-
renderCode: (
|
|
19
|
-
renderClient: (
|
|
19
|
+
renderCode: (record: any, w?: number) => React.JSX.Element;
|
|
20
|
+
renderClient: () => null;
|
|
20
21
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
21
22
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
22
23
|
getComponentValue: (r: Record) => any;
|
|
@@ -28,7 +29,6 @@ declare class TrajectoryCode implements ComponentInterface {
|
|
|
28
29
|
id: string;
|
|
29
30
|
name: string;
|
|
30
31
|
filterComponentType: "Input";
|
|
31
|
-
filterFn: (value: string) => (i: Record) => boolean;
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
export default TrajectoryCode;
|
|
@@ -1,19 +1,12 @@
|
|
|
1
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
2
|
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
3
|
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
4
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
5
|
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
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
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); }
|
|
14
|
-
import React from
|
|
15
|
-
import
|
|
16
|
-
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
10
|
import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
|
|
18
11
|
import { SYMBOL } from "../../constant";
|
|
19
12
|
var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options) {
|
|
@@ -22,6 +15,7 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
|
|
|
22
15
|
_classCallCheck(this, TrajectoryCode);
|
|
23
16
|
_defineProperty(this, "name", void 0);
|
|
24
17
|
_defineProperty(this, "id", void 0);
|
|
18
|
+
_defineProperty(this, "parentId", void 0);
|
|
25
19
|
_defineProperty(this, "sortField", void 0);
|
|
26
20
|
_defineProperty(this, "type", void 0);
|
|
27
21
|
_defineProperty(this, "rules", void 0);
|
|
@@ -33,48 +27,39 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
|
|
|
33
27
|
_defineProperty(this, "canSort", void 0);
|
|
34
28
|
_defineProperty(this, "children", void 0);
|
|
35
29
|
_defineProperty(this, "dataType", void 0);
|
|
36
|
-
_defineProperty(this, "renderCode", function () {
|
|
37
|
-
var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
30
|
+
_defineProperty(this, "renderCode", function (record) {
|
|
38
31
|
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
32
|
+
var list = (record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryList")]) || [];
|
|
39
33
|
return /*#__PURE__*/React.createElement("div", {
|
|
40
34
|
onClick: function onClick(e) {
|
|
41
35
|
return e.stopPropagation();
|
|
42
36
|
}
|
|
43
37
|
}, list.length ? list.map(function (item, index) {
|
|
44
|
-
return /*#__PURE__*/React.createElement(
|
|
38
|
+
return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
|
|
45
39
|
title: item.trajectoryCode,
|
|
46
40
|
modelWidth: w,
|
|
47
41
|
interceptCompany: item.trajectoryCompany,
|
|
48
42
|
interceptCode: item.trajectoryCode,
|
|
49
43
|
interceptSenderMobile: item.trajectoryPhone
|
|
50
44
|
}));
|
|
51
|
-
}) :
|
|
45
|
+
}) : "--");
|
|
52
46
|
});
|
|
53
|
-
_defineProperty(this, "renderClient", function (
|
|
54
|
-
|
|
55
|
-
_this$id$split2 = _slicedToArray(_this$id$split, 1),
|
|
56
|
-
id = _this$id$split2[0];
|
|
57
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
58
|
-
id: _this.id,
|
|
59
|
-
label: _this.name,
|
|
60
|
-
value: _this.renderCode(record[id])
|
|
61
|
-
}) : null;
|
|
47
|
+
_defineProperty(this, "renderClient", function () {
|
|
48
|
+
return null;
|
|
62
49
|
});
|
|
63
50
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
64
|
-
return _this.renderCode(record
|
|
51
|
+
return _this.renderCode(record || [], 700);
|
|
65
52
|
});
|
|
66
53
|
_defineProperty(this, "renderLog", function (r) {
|
|
67
54
|
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
68
55
|
return _this.renderPc(undefined, r);
|
|
69
56
|
});
|
|
70
57
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
71
|
-
return r === null || r === void 0 ? void 0 : r[_this.id].
|
|
72
|
-
return item.trajectoryCode;
|
|
73
|
-
}).join();
|
|
58
|
+
return ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).join();
|
|
74
59
|
});
|
|
75
60
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
76
61
|
var _this$getComponentVal;
|
|
77
|
-
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
62
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
|
|
78
63
|
});
|
|
79
64
|
_defineProperty(this, "editRender", function () {
|
|
80
65
|
return null;
|
|
@@ -83,18 +68,14 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
|
|
|
83
68
|
return {
|
|
84
69
|
searchDefaultConditions: SYMBOL.like,
|
|
85
70
|
type: item.type,
|
|
86
|
-
id: "".concat(item.id, "
|
|
71
|
+
id: "".concat(item.id, "_trajectoryMoreCode"),
|
|
87
72
|
name: "".concat(item.name, "-\u7269\u6D41\u5355\u53F7"),
|
|
88
|
-
filterComponentType:
|
|
89
|
-
filterFn: function filterFn(value) {
|
|
90
|
-
return function (i) {
|
|
91
|
-
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "trajectoryCode"), value);
|
|
92
|
-
};
|
|
93
|
-
}
|
|
73
|
+
filterComponentType: "Input"
|
|
94
74
|
};
|
|
95
75
|
});
|
|
96
76
|
this.name = options.name;
|
|
97
77
|
this.id = options.id;
|
|
78
|
+
this.parentId = options.id.split("_")[0];
|
|
98
79
|
this.sortField = options.id;
|
|
99
80
|
this.formField = options.id;
|
|
100
81
|
this.type = options.type;
|
|
@@ -104,14 +85,14 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
|
|
|
104
85
|
if (/^[0-9a-zA-Z]*$/.test(value)) {
|
|
105
86
|
return Promise.resolve();
|
|
106
87
|
}
|
|
107
|
-
return Promise.reject(new Error(
|
|
88
|
+
return Promise.reject(new Error("只能输入数字和字母"));
|
|
108
89
|
}
|
|
109
90
|
}] : [];
|
|
110
|
-
this.align =
|
|
91
|
+
this.align = "left";
|
|
111
92
|
this.width = 200;
|
|
112
93
|
this.isCombinationComponent = false;
|
|
113
94
|
this.canSort = false;
|
|
114
|
-
this.dataType =
|
|
95
|
+
this.dataType = "string";
|
|
115
96
|
this.children = [];
|
|
116
97
|
});
|
|
117
98
|
export default TrajectoryCode;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import { ExpressData } from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
4
|
declare class TrajectoryCompany implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
6
6
|
id: string;
|
|
7
7
|
sortField: string;
|
|
8
8
|
type: string;
|
|
9
9
|
rules: any[];
|
|
10
|
-
componentConfig: ComponentInterface[
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
11
11
|
align: ALignType;
|
|
12
12
|
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
13
13
|
width: number;
|
|
@@ -15,11 +15,11 @@ declare class TrajectoryCompany implements ComponentInterface {
|
|
|
15
15
|
formField: string;
|
|
16
16
|
canSort: boolean;
|
|
17
17
|
children: ComponentInterface[];
|
|
18
|
-
dataType: ComponentInterface[
|
|
19
|
-
options: ComponentInterface[
|
|
18
|
+
dataType: ComponentInterface["dataType"];
|
|
19
|
+
options: ComponentInterface["options"];
|
|
20
20
|
constructor(options: PickOption);
|
|
21
|
-
renderCompany: (
|
|
22
|
-
renderClient: (
|
|
21
|
+
renderCompany: (record: any) => any;
|
|
22
|
+
renderClient: () => null;
|
|
23
23
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
24
24
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
25
25
|
getComponentValue: (r: Record) => any;
|
|
@@ -1,20 +1,13 @@
|
|
|
1
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
2
|
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
3
|
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
4
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
5
|
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
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
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); }
|
|
14
|
-
import React from
|
|
15
|
-
import { ExpressData } from
|
|
16
|
-
import
|
|
17
|
-
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
11
|
import { SYMBOL } from "../../constant";
|
|
19
12
|
var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(options) {
|
|
20
13
|
var _this = this;
|
|
@@ -34,39 +27,33 @@ var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(opt
|
|
|
34
27
|
_defineProperty(this, "children", void 0);
|
|
35
28
|
_defineProperty(this, "dataType", void 0);
|
|
36
29
|
_defineProperty(this, "options", void 0);
|
|
37
|
-
_defineProperty(this, "renderCompany", function (
|
|
30
|
+
_defineProperty(this, "renderCompany", function (record) {
|
|
31
|
+
var list = (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || [];
|
|
38
32
|
return list.length ? list.map(function (item, index) {
|
|
39
|
-
return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") :
|
|
40
|
-
}) :
|
|
33
|
+
return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", _this.expressDateInstance.getExpressNameByCode(item));
|
|
34
|
+
}) : "--";
|
|
41
35
|
});
|
|
42
|
-
_defineProperty(this, "renderClient", function (
|
|
43
|
-
|
|
44
|
-
_this$id$split2 = _slicedToArray(_this$id$split, 1),
|
|
45
|
-
id = _this$id$split2[0];
|
|
46
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
47
|
-
id: _this.id,
|
|
48
|
-
label: _this.name,
|
|
49
|
-
value: _this.renderCompany(record[id])
|
|
50
|
-
}) : null;
|
|
36
|
+
_defineProperty(this, "renderClient", function () {
|
|
37
|
+
return null;
|
|
51
38
|
});
|
|
52
39
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
53
40
|
if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
|
|
54
41
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
55
42
|
}
|
|
56
|
-
return /*#__PURE__*/React.createElement("span", null, _this.renderCompany(record
|
|
43
|
+
return /*#__PURE__*/React.createElement("span", null, _this.renderCompany(record || []));
|
|
57
44
|
});
|
|
58
45
|
_defineProperty(this, "renderLog", function (r) {
|
|
59
46
|
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
60
47
|
return _this.renderPc(undefined, r);
|
|
61
48
|
});
|
|
62
49
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
63
|
-
return r === null || r === void 0 ? void 0 : r[_this.id].map(function (item) {
|
|
64
|
-
return _this.expressDateInstance.getExpressNameByCode(item
|
|
50
|
+
return ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).map(function (item) {
|
|
51
|
+
return _this.expressDateInstance.getExpressNameByCode(item);
|
|
65
52
|
}).join();
|
|
66
53
|
});
|
|
67
54
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
68
55
|
var _this$getComponentVal;
|
|
69
|
-
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
56
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
|
|
70
57
|
});
|
|
71
58
|
_defineProperty(this, "editRender", function () {
|
|
72
59
|
return null;
|
|
@@ -78,7 +65,7 @@ var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(opt
|
|
|
78
65
|
type: item.type,
|
|
79
66
|
id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
|
|
80
67
|
name: "".concat(item.name, "-\u7269\u6D41\u516C\u53F8"),
|
|
81
|
-
filterComponentType:
|
|
68
|
+
filterComponentType: "MultipleSelect",
|
|
82
69
|
props: {
|
|
83
70
|
options: _this.expressDateInstance.getExpressData() || []
|
|
84
71
|
},
|
|
@@ -96,13 +83,13 @@ var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(opt
|
|
|
96
83
|
this.type = options.type;
|
|
97
84
|
this.componentConfig = options.componentConfig;
|
|
98
85
|
this.rules = [];
|
|
99
|
-
this.align =
|
|
86
|
+
this.align = "left";
|
|
100
87
|
this.expressDateInstance = ExpressData.getInstance();
|
|
101
88
|
this.width = 200;
|
|
102
89
|
this.isCombinationComponent = false;
|
|
103
90
|
this.canSort = false;
|
|
104
91
|
this.children = [];
|
|
105
|
-
this.dataType =
|
|
92
|
+
this.dataType = "string";
|
|
106
93
|
this.options = this.expressDateInstance.getExpressData() || [];
|
|
107
94
|
});
|
|
108
95
|
export default TrajectoryCompany;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class TrajectorySnapshot 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
|
-
renderCode: (
|
|
18
|
-
renderClient: (
|
|
17
|
+
renderCode: (record: any) => React.JSX.Element;
|
|
18
|
+
renderClient: () => null;
|
|
19
19
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
20
20
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
21
|
getComponentValue: (r: Record) => any;
|
|
@@ -1,19 +1,12 @@
|
|
|
1
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
2
|
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
3
|
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
4
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
5
|
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
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
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); }
|
|
14
|
-
import React from
|
|
15
|
-
import
|
|
16
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
10
|
import { SYMBOL } from "../../constant";
|
|
18
11
|
var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(options) {
|
|
19
12
|
var _this = this;
|
|
@@ -30,36 +23,28 @@ var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(o
|
|
|
30
23
|
_defineProperty(this, "canSort", void 0);
|
|
31
24
|
_defineProperty(this, "children", void 0);
|
|
32
25
|
_defineProperty(this, "dataType", void 0);
|
|
33
|
-
_defineProperty(this, "renderCode", function (
|
|
26
|
+
_defineProperty(this, "renderCode", function (record) {
|
|
27
|
+
var list = (record === null || record === void 0 ? void 0 : record[_this.id]) || [];
|
|
34
28
|
return /*#__PURE__*/React.createElement("div", null, list.length ? list.map(function (item, index) {
|
|
35
|
-
return /*#__PURE__*/React.createElement(
|
|
36
|
-
}) :
|
|
29
|
+
return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", item);
|
|
30
|
+
}) : "--");
|
|
37
31
|
});
|
|
38
|
-
_defineProperty(this, "renderClient", function (
|
|
39
|
-
|
|
40
|
-
_this$id$split2 = _slicedToArray(_this$id$split, 1),
|
|
41
|
-
id = _this$id$split2[0];
|
|
42
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
43
|
-
id: _this.id,
|
|
44
|
-
label: _this.name,
|
|
45
|
-
value: _this.renderCode(record[id])
|
|
46
|
-
}) : null;
|
|
32
|
+
_defineProperty(this, "renderClient", function () {
|
|
33
|
+
return null;
|
|
47
34
|
});
|
|
48
35
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
49
|
-
return _this.renderCode(record
|
|
36
|
+
return _this.renderCode(record || []);
|
|
50
37
|
});
|
|
51
38
|
_defineProperty(this, "renderLog", function (r) {
|
|
52
39
|
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
53
40
|
return _this.renderPc(undefined, r);
|
|
54
41
|
});
|
|
55
42
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
56
|
-
return r === null || r === void 0 ? void 0 : r[_this.id].
|
|
57
|
-
return item.trajectorySnapshot;
|
|
58
|
-
}).join();
|
|
43
|
+
return ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).join();
|
|
59
44
|
});
|
|
60
45
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
61
46
|
var _this$getComponentVal;
|
|
62
|
-
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
47
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
|
|
63
48
|
});
|
|
64
49
|
_defineProperty(this, "editRender", function () {
|
|
65
50
|
return null;
|
|
@@ -70,7 +55,7 @@ var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(o
|
|
|
70
55
|
type: item.type,
|
|
71
56
|
id: item.id,
|
|
72
57
|
name: "".concat(item.name, "-\u7269\u6D41\u5FEB\u7167"),
|
|
73
|
-
filterComponentType:
|
|
58
|
+
filterComponentType: "Input"
|
|
74
59
|
};
|
|
75
60
|
});
|
|
76
61
|
this.name = options.name;
|
|
@@ -79,11 +64,11 @@ var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(o
|
|
|
79
64
|
this.formField = options.id;
|
|
80
65
|
this.type = options.type;
|
|
81
66
|
this.componentConfig = options.componentConfig;
|
|
82
|
-
this.align =
|
|
67
|
+
this.align = "left";
|
|
83
68
|
this.width = 200;
|
|
84
69
|
this.isCombinationComponent = false;
|
|
85
70
|
this.canSort = false;
|
|
86
|
-
this.dataType =
|
|
71
|
+
this.dataType = "string";
|
|
87
72
|
this.children = [];
|
|
88
73
|
});
|
|
89
74
|
export default TrajectorySnapshot;
|