@kmkf-fe-packages/services-components 2.3.0-rc.0 → 2.3.0-rc.4
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/Hooks/index.d.ts +2 -0
- package/dist/esm/Hooks/index.js +2 -0
- package/dist/esm/Hooks/useColumnsConfig.d.ts +26 -0
- package/dist/esm/Hooks/useColumnsConfig.js +243 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.d.ts +29 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.js +441 -0
- package/dist/esm/components/BS/BsLogistics/index.d.ts +7 -2
- package/dist/esm/components/BS/BsLogistics/index.js +34 -1
- 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/BsHeaderPic.js +4 -9
- package/dist/esm/components/BS/common/expressCode.d.ts +4 -1
- package/dist/esm/components/BS/common/expressCode.js +10 -4
- package/dist/esm/components/BS/common/expressCompany.d.ts +5 -2
- package/dist/esm/components/BS/common/expressCompany.js +11 -4
- package/dist/esm/components/Common/index.d.ts +1 -1
- package/dist/esm/components/Common/index.js +10 -5
- package/dist/esm/components/CommonHeaderGood/index.js +17 -1
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
- package/dist/esm/components/ErpTradeId/index.js +7 -4
- package/dist/esm/components/File/index.d.ts +6 -6
- package/dist/esm/components/File/index.js +9 -9
- package/dist/esm/components/GY/GyGoods/index.js +2 -0
- package/dist/esm/components/GY/GyReissue/index.js +2 -0
- package/dist/esm/components/GY/GyReturn/index.js +2 -0
- package/dist/esm/components/OrderSubForm/index.d.ts +49 -0
- package/dist/esm/components/OrderSubForm/index.js +271 -0
- package/dist/esm/components/SKX/SkxGoods/index.js +4 -0
- package/dist/esm/components/SKX/SkxIdInputSelect/index.js +4 -0
- package/dist/esm/components/Select/index.js +3 -0
- package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
- package/dist/esm/components/SubForm/index.js +86 -6
- package/dist/esm/components/TradeId/index.d.ts +5 -5
- package/dist/esm/components/TradeId/index.js +17 -14
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +9 -1
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/type.d.ts +37 -0
- package/package.json +4 -4
|
@@ -0,0 +1,271 @@
|
|
|
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 _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
+
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); }
|
|
6
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
7
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
8
|
+
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; }
|
|
9
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
14
|
+
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; }
|
|
15
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
|
+
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); }
|
|
17
|
+
import moment from "moment";
|
|
18
|
+
import React from "react";
|
|
19
|
+
import { Table } from "antd";
|
|
20
|
+
import { OrderSubForm as SubFormComponent } from "@kmkf-fe-packages/basic-components";
|
|
21
|
+
import BsHeaderChild from "../BS/common/BsHeaderChild";
|
|
22
|
+
import BsHeaderPic from "../BS/common/BsHeaderPic";
|
|
23
|
+
import GetFormItem from "../GetFormItem";
|
|
24
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
25
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
26
|
+
import { difference } from "lodash";
|
|
27
|
+
import { SYMBOL } from "../../constant";
|
|
28
|
+
import { OrderSubFormUtils, orderSubFormConstants } from "@kmkf-fe-packages/basic-components";
|
|
29
|
+
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
30
|
+
var renderDetailItem = OrderSubFormUtils.renderDetailItem;
|
|
31
|
+
var getSelectWidgetMap = orderSubFormConstants.getSelectWidgetMap,
|
|
32
|
+
getOrderSubformColumns = orderSubFormConstants.getOrderSubformColumns;
|
|
33
|
+
var OrderSubForm = /*#__PURE__*/_createClass(
|
|
34
|
+
// workOrderUniqueKey?: string;
|
|
35
|
+
function OrderSubForm(options) {
|
|
36
|
+
var _this = this;
|
|
37
|
+
_classCallCheck(this, OrderSubForm);
|
|
38
|
+
_defineProperty(this, "name", void 0);
|
|
39
|
+
_defineProperty(this, "id", void 0);
|
|
40
|
+
_defineProperty(this, "sortField", void 0);
|
|
41
|
+
_defineProperty(this, "type", void 0);
|
|
42
|
+
_defineProperty(this, "rules", void 0);
|
|
43
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
44
|
+
_defineProperty(this, "effects", void 0);
|
|
45
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
46
|
+
_defineProperty(this, "formField", void 0);
|
|
47
|
+
_defineProperty(this, "canSort", void 0);
|
|
48
|
+
_defineProperty(this, "expressDateInstance", void 0);
|
|
49
|
+
_defineProperty(this, "children", void 0);
|
|
50
|
+
_defineProperty(this, "dataType", void 0);
|
|
51
|
+
_defineProperty(this, "renderTransformItem", function (item, val) {
|
|
52
|
+
var _getSelectWidgetMap;
|
|
53
|
+
var mapValue = (_getSelectWidgetMap = getSelectWidgetMap(_this.expressDateInstance)) === null || _getSelectWidgetMap === void 0 ? void 0 : _getSelectWidgetMap[item.dataIndex];
|
|
54
|
+
var selectValue;
|
|
55
|
+
if (mapValue && typeof mapValue === "function") {
|
|
56
|
+
selectValue = mapValue === null || mapValue === void 0 ? void 0 : mapValue(val);
|
|
57
|
+
} else {
|
|
58
|
+
selectValue = mapValue === null || mapValue === void 0 ? void 0 : mapValue[val];
|
|
59
|
+
}
|
|
60
|
+
return selectValue;
|
|
61
|
+
});
|
|
62
|
+
_defineProperty(this, "getNewTableHeader", function () {
|
|
63
|
+
var _this$componentConfig, _ref2;
|
|
64
|
+
var orderSubformColumns = getOrderSubformColumns();
|
|
65
|
+
var orderSubformColumnMap = orderSubformColumns.reduce(function (prv, next) {
|
|
66
|
+
prv[next.dataIndex] = next;
|
|
67
|
+
return prv;
|
|
68
|
+
}, {});
|
|
69
|
+
var _ref = ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.subConfig) || {},
|
|
70
|
+
_ref$correlationList = _ref.correlationList,
|
|
71
|
+
correlationList = _ref$correlationList === void 0 ? [] : _ref$correlationList;
|
|
72
|
+
var columns = correlationList && correlationList !== null && correlationList !== void 0 && correlationList.length ? correlationList.map(function (t) {
|
|
73
|
+
return orderSubformColumnMap[t.dataIndex];
|
|
74
|
+
}) : orderSubformColumns;
|
|
75
|
+
return (_ref2 = columns || []) === null || _ref2 === void 0 ? void 0 : _ref2.reduce(function (prv, item) {
|
|
76
|
+
var _this$componentConfig2, _this$componentConfig3;
|
|
77
|
+
var t = ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : (_this$componentConfig3 = _this$componentConfig2.tableHeader) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.find(function (v) {
|
|
78
|
+
return v.key === item.dataIndex;
|
|
79
|
+
})) || {
|
|
80
|
+
isShow: true,
|
|
81
|
+
isEdit: false,
|
|
82
|
+
isRequired: false,
|
|
83
|
+
width: item !== null && item !== void 0 && item.width ? Number(item === null || item === void 0 ? void 0 : item.width) : 150
|
|
84
|
+
};
|
|
85
|
+
if (t.isShow) {
|
|
86
|
+
prv.push(_objectSpread(_objectSpread({}, item), t));
|
|
87
|
+
}
|
|
88
|
+
return prv;
|
|
89
|
+
}, []);
|
|
90
|
+
});
|
|
91
|
+
_defineProperty(this, "renderTabel", function (list) {
|
|
92
|
+
var _ref3, _ref3$filter;
|
|
93
|
+
var columns = [{
|
|
94
|
+
dataIndex: "",
|
|
95
|
+
title: "序号",
|
|
96
|
+
align: "center",
|
|
97
|
+
ellipsis: true,
|
|
98
|
+
width: 50,
|
|
99
|
+
render: function render(val, record, index) {
|
|
100
|
+
return /*#__PURE__*/React.createElement("span", null, index + 1);
|
|
101
|
+
}
|
|
102
|
+
}].concat(_toConsumableArray(((_ref3 = _this.getNewTableHeader() || []) === null || _ref3 === void 0 ? void 0 : (_ref3$filter = _ref3.filter(function (t) {
|
|
103
|
+
return t.isShow;
|
|
104
|
+
})) === null || _ref3$filter === void 0 ? void 0 : _ref3$filter.map(function (item) {
|
|
105
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
106
|
+
align: "center",
|
|
107
|
+
ellipsis: true,
|
|
108
|
+
title: (item === null || item === void 0 ? void 0 : item.settingName) || item.title,
|
|
109
|
+
render: function render(val) {
|
|
110
|
+
return renderDetailItem({
|
|
111
|
+
item: item,
|
|
112
|
+
val: val
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
})) || []));
|
|
117
|
+
return /*#__PURE__*/React.createElement(Table, {
|
|
118
|
+
columns: columns,
|
|
119
|
+
dataSource: list,
|
|
120
|
+
rowKey: "uuid",
|
|
121
|
+
size: "small",
|
|
122
|
+
pagination: false,
|
|
123
|
+
scroll: {
|
|
124
|
+
x: "100%"
|
|
125
|
+
},
|
|
126
|
+
locale: {
|
|
127
|
+
emptyText: "暂无数据"
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
_defineProperty(this, "renderPc", function () {
|
|
132
|
+
return null;
|
|
133
|
+
});
|
|
134
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
135
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_subOrderList")])) return null;
|
|
136
|
+
return _this.renderTabel(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_subOrderList")]);
|
|
137
|
+
});
|
|
138
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
139
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_subOrderList")];
|
|
140
|
+
});
|
|
141
|
+
_defineProperty(this, "renderExport", function () {
|
|
142
|
+
return null;
|
|
143
|
+
});
|
|
144
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
145
|
+
var _record;
|
|
146
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
147
|
+
id: _this.id,
|
|
148
|
+
label: _this.name,
|
|
149
|
+
value: _this.renderTabel(record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id)]) === null || _record === void 0 ? void 0 : _record.subOrderList)
|
|
150
|
+
}) : null;
|
|
151
|
+
});
|
|
152
|
+
_defineProperty(this, "editRender", function (p) {
|
|
153
|
+
var _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _this$componentConfig7;
|
|
154
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
155
|
+
title: _this.name,
|
|
156
|
+
name: _this.id,
|
|
157
|
+
rules: _this.rules,
|
|
158
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
159
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
160
|
+
required: (_this$componentConfig4 = (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.required) !== null && _this$componentConfig4 !== void 0 ? _this$componentConfig4 : false,
|
|
161
|
+
tooltip: (_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.showTooltip ? (_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.tooltip : "",
|
|
162
|
+
component: /*#__PURE__*/React.createElement(SubFormComponent, _extends({
|
|
163
|
+
effects: _this.effects
|
|
164
|
+
}, _this.componentConfig, {
|
|
165
|
+
platform: p === null || p === void 0 ? void 0 : p.platform
|
|
166
|
+
}))
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
170
|
+
return [{
|
|
171
|
+
searchDefaultConditions: SYMBOL.like,
|
|
172
|
+
type: item.type,
|
|
173
|
+
id: "".concat(item.id, "_subOrderList"),
|
|
174
|
+
// 过滤组件id
|
|
175
|
+
name: item.name,
|
|
176
|
+
// 过滤组件名称
|
|
177
|
+
filterComponentType: "Input"
|
|
178
|
+
}];
|
|
179
|
+
});
|
|
180
|
+
this.name = options.name;
|
|
181
|
+
this.id = options.id;
|
|
182
|
+
this.sortField = "".concat(options.id, "_subOrderList");
|
|
183
|
+
this.formField = "".concat(options.id, "_subOrderList");
|
|
184
|
+
this.type = options.type;
|
|
185
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
186
|
+
this.componentConfig = options.componentConfig;
|
|
187
|
+
// this.workOrderUniqueKey = options?.workOrderUniqueKey;
|
|
188
|
+
this.rules = [{
|
|
189
|
+
validator: function validator(_, value) {
|
|
190
|
+
var _this$componentConfig8, _value$subOrderList, _this$componentConfig9, _this$componentConfig10, _value$subOrderList2;
|
|
191
|
+
if ((_this$componentConfig8 = _this.componentConfig) !== null && _this$componentConfig8 !== void 0 && _this$componentConfig8.required && !(value !== null && value !== void 0 && (_value$subOrderList = value.subOrderList) !== null && _value$subOrderList !== void 0 && _value$subOrderList.length)) {
|
|
192
|
+
return Promise.reject(new Error("请填写子订单"));
|
|
193
|
+
}
|
|
194
|
+
var result = (_this$componentConfig9 = _this.componentConfig) === null || _this$componentConfig9 === void 0 ? void 0 : (_this$componentConfig10 = _this$componentConfig9.tableHeader) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.reduce(function (prv, next) {
|
|
195
|
+
if (next.isRequired && next.isShow && !next.isEdit) {
|
|
196
|
+
prv[next.key] = "".concat(next.name, "\u5FC5\u586B");
|
|
197
|
+
}
|
|
198
|
+
return prv;
|
|
199
|
+
}, {});
|
|
200
|
+
// TODO: 补充确省字段
|
|
201
|
+
var fillKeysValue = value === null || value === void 0 ? void 0 : (_value$subOrderList2 = value.subOrderList) === null || _value$subOrderList2 === void 0 ? void 0 : _value$subOrderList2.map(function (item) {
|
|
202
|
+
var _this$componentConfig11, _this$componentConfig12;
|
|
203
|
+
var lostKeys = difference((_this$componentConfig11 = _this.componentConfig) === null || _this$componentConfig11 === void 0 ? void 0 : (_this$componentConfig12 = _this$componentConfig11.tableHeader) === null || _this$componentConfig12 === void 0 ? void 0 : _this$componentConfig12.map(function (item) {
|
|
204
|
+
return item.key;
|
|
205
|
+
}), Object.keys(item));
|
|
206
|
+
if (!isNull(lostKeys)) {
|
|
207
|
+
return lostKeys.reduce(function (prv, next) {
|
|
208
|
+
return _objectSpread(_objectSpread({}, prv), {}, _defineProperty({}, next, undefined));
|
|
209
|
+
}, item);
|
|
210
|
+
}
|
|
211
|
+
return item;
|
|
212
|
+
});
|
|
213
|
+
var msg = (fillKeysValue || []).reduce(function (prv, next) {
|
|
214
|
+
Object.keys(next).forEach(function (key) {
|
|
215
|
+
if (result[key] && isNull(next[key])) {
|
|
216
|
+
prv = result[key];
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
return prv;
|
|
220
|
+
}, "");
|
|
221
|
+
if (msg) {
|
|
222
|
+
return Promise.reject(new Error(msg));
|
|
223
|
+
}
|
|
224
|
+
return Promise.resolve();
|
|
225
|
+
}
|
|
226
|
+
}];
|
|
227
|
+
this.isCombinationComponent = true;
|
|
228
|
+
this.canSort = false;
|
|
229
|
+
this.children = (this.getNewTableHeader() || []).map(function (item) {
|
|
230
|
+
if (item.widget === "upload") {
|
|
231
|
+
return new BsHeaderPic(_objectSpread(_objectSpread({}, options), {}, {
|
|
232
|
+
name: item.title,
|
|
233
|
+
width: (item === null || item === void 0 ? void 0 : item.width) || 150,
|
|
234
|
+
id: "".concat(options.id, "_subOrderList_").concat(item.dataIndex)
|
|
235
|
+
}));
|
|
236
|
+
} else if (item.widget === "select") {
|
|
237
|
+
return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
238
|
+
width: (item === null || item === void 0 ? void 0 : item.width) || 150,
|
|
239
|
+
name: item.title,
|
|
240
|
+
id: "".concat(options.id, "_subOrderList_").concat(item.dataIndex),
|
|
241
|
+
transformValue: function transformValue(val) {
|
|
242
|
+
return _this.renderTransformItem(item, val);
|
|
243
|
+
},
|
|
244
|
+
renderExport: function renderExport(val) {
|
|
245
|
+
return _this.renderTransformItem(item, val);
|
|
246
|
+
}
|
|
247
|
+
}));
|
|
248
|
+
} else if (item.widget === "datePicker") {
|
|
249
|
+
return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
250
|
+
width: (item === null || item === void 0 ? void 0 : item.width) || 150,
|
|
251
|
+
name: item.title,
|
|
252
|
+
id: "".concat(options.id, "_subOrderList_").concat(item.dataIndex),
|
|
253
|
+
transformValue: function transformValue(val) {
|
|
254
|
+
return val ? moment(val).format("YYYY-MM-DD HH:mm:ss") : "";
|
|
255
|
+
},
|
|
256
|
+
renderExport: function renderExport(val) {
|
|
257
|
+
return val ? moment(val).format("YYYY-MM-DD HH:mm:ss") : "";
|
|
258
|
+
}
|
|
259
|
+
}));
|
|
260
|
+
} else {
|
|
261
|
+
return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
262
|
+
width: (item === null || item === void 0 ? void 0 : item.width) || 150,
|
|
263
|
+
name: item.title,
|
|
264
|
+
id: "".concat(options.id, "_subOrderList_").concat(item.dataIndex)
|
|
265
|
+
}));
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
this.dataType = "object";
|
|
269
|
+
this.expressDateInstance = ExpressData.getInstance();
|
|
270
|
+
});
|
|
271
|
+
export default OrderSubForm;
|
|
@@ -16,6 +16,10 @@ var typeMap = {
|
|
|
16
16
|
SKX_OUTBOUND_NOTICE_NO: {
|
|
17
17
|
key: "skxOutboundNoticeNo",
|
|
18
18
|
blurType: "skxOutboundNoticeNo"
|
|
19
|
+
},
|
|
20
|
+
SKX_RETURN_BILL_NO: {
|
|
21
|
+
key: "skxReturnBillNo",
|
|
22
|
+
blurType: "skxReturnBillNo"
|
|
19
23
|
}
|
|
20
24
|
};
|
|
21
25
|
var SkxIdInputSelect = /*#__PURE__*/_createClass(function SkxIdInputSelect(options) {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from '../../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare class HeaderChildFile 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
|
+
parentName?: string;
|
|
17
|
+
transformValue: (val: any, record?: any, parentName?: string) => any;
|
|
18
|
+
export: (val: any, record?: any, parentName?: string) => any;
|
|
19
|
+
constructor(options: PickOption);
|
|
20
|
+
getParentId: () => string;
|
|
21
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
|
+
renderPc: (value: unknown, record: Record) => any;
|
|
23
|
+
renderLog: (r: Record) => any;
|
|
24
|
+
getComponentValue: (r: Record) => any;
|
|
25
|
+
getComponentExport: (r: Record) => any;
|
|
26
|
+
renderExport: (value: string, record: Record) => any;
|
|
27
|
+
editRender: () => null;
|
|
28
|
+
filterConfig: () => never[];
|
|
29
|
+
}
|
|
30
|
+
export default HeaderChildFile;
|
|
@@ -0,0 +1,117 @@
|
|
|
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 HeaderChildFile = /*#__PURE__*/_createClass(function HeaderChildFile(options) {
|
|
18
|
+
var _this = this;
|
|
19
|
+
_classCallCheck(this, HeaderChildFile);
|
|
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, "parentName", void 0);
|
|
33
|
+
_defineProperty(this, "transformValue", function (val) {
|
|
34
|
+
return val;
|
|
35
|
+
});
|
|
36
|
+
_defineProperty(this, "export", function (val) {
|
|
37
|
+
return val;
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(this, "getParentId", function () {
|
|
40
|
+
var _this$id$split = _this.id.split('_'),
|
|
41
|
+
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
42
|
+
key = _this$id$split2[0],
|
|
43
|
+
name = _this$id$split2[1],
|
|
44
|
+
code = _this$id$split2[2];
|
|
45
|
+
return "".concat(key, "_").concat(name);
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
48
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
49
|
+
id: _this.id,
|
|
50
|
+
label: _this.name,
|
|
51
|
+
value: _this.getComponentValue(record)
|
|
52
|
+
}) : null;
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
55
|
+
var fileList = _this.getComponentValue(record);
|
|
56
|
+
if (!fileList.length) {
|
|
57
|
+
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
58
|
+
}
|
|
59
|
+
return fileList === null || fileList === void 0 ? void 0 : fileList.map(function (file) {
|
|
60
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
61
|
+
href: file.url,
|
|
62
|
+
onClick: function onClick(e) {
|
|
63
|
+
return e.stopPropagation();
|
|
64
|
+
},
|
|
65
|
+
target: "_blank",
|
|
66
|
+
style: {
|
|
67
|
+
display: 'block'
|
|
68
|
+
}
|
|
69
|
+
}, file.name);
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
73
|
+
var id = _this.getParentId();
|
|
74
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
|
|
75
|
+
return _this.renderPc(undefined, r);
|
|
76
|
+
});
|
|
77
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
78
|
+
return (r === null || r === void 0 ? void 0 : r[_this.id]) || [];
|
|
79
|
+
});
|
|
80
|
+
_defineProperty(this, "getComponentExport", function (r) {
|
|
81
|
+
return _this.export(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName);
|
|
82
|
+
});
|
|
83
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
84
|
+
var fileList = _this.getComponentValue(record) || [];
|
|
85
|
+
return fileList === null || fileList === void 0 ? void 0 : fileList.map(function (file) {
|
|
86
|
+
return file.url;
|
|
87
|
+
}).join(',');
|
|
88
|
+
});
|
|
89
|
+
_defineProperty(this, "editRender", function () {
|
|
90
|
+
return null;
|
|
91
|
+
});
|
|
92
|
+
_defineProperty(this, "filterConfig", function () {
|
|
93
|
+
return [];
|
|
94
|
+
});
|
|
95
|
+
this.name = options.name;
|
|
96
|
+
this.id = options.id;
|
|
97
|
+
this.sortField = options.id;
|
|
98
|
+
this.formField = options.id;
|
|
99
|
+
this.type = options.type;
|
|
100
|
+
if (options.parentName) {
|
|
101
|
+
this.parentName = options.parentName;
|
|
102
|
+
}
|
|
103
|
+
this.componentConfig = options.componentConfig;
|
|
104
|
+
this.align = 'left';
|
|
105
|
+
this.width = (options === null || options === void 0 ? void 0 : options.width) || 100;
|
|
106
|
+
this.isCombinationComponent = false;
|
|
107
|
+
this.canSort = false;
|
|
108
|
+
this.dataType = 'string';
|
|
109
|
+
this.children = [];
|
|
110
|
+
if (options.transformValue) {
|
|
111
|
+
this.transformValue = options.transformValue;
|
|
112
|
+
}
|
|
113
|
+
if (options.renderExport) {
|
|
114
|
+
this.export = options.renderExport;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
export default HeaderChildFile;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class HeaderChildPic 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
|
+
parentName?: string;
|
|
17
|
+
transformValue: (val: any, record?: any, parentName?: string) => any;
|
|
18
|
+
export: (val: any, record?: any, parentName?: string) => any;
|
|
19
|
+
constructor(options: PickOption);
|
|
20
|
+
getParentId: () => string;
|
|
21
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
|
+
renderPc: (value: unknown, record: Record) => any;
|
|
23
|
+
renderLog: (r: Record) => any;
|
|
24
|
+
getComponentValue: (r: Record) => any;
|
|
25
|
+
getComponentExport: (r: Record) => any;
|
|
26
|
+
renderExport: (value: string, record: Record) => any;
|
|
27
|
+
editRender: () => null;
|
|
28
|
+
filterConfig: () => never[];
|
|
29
|
+
}
|
|
30
|
+
export default HeaderChildPic;
|
|
@@ -0,0 +1,116 @@
|
|
|
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 { Image } from "antd";
|
|
16
|
+
import ItemView from "../../../commonComponents/ItemView";
|
|
17
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
|
+
var HeaderChildPic = /*#__PURE__*/_createClass(function HeaderChildPic(options) {
|
|
19
|
+
var _this = this;
|
|
20
|
+
_classCallCheck(this, HeaderChildPic);
|
|
21
|
+
_defineProperty(this, "name", void 0);
|
|
22
|
+
_defineProperty(this, "id", void 0);
|
|
23
|
+
_defineProperty(this, "sortField", void 0);
|
|
24
|
+
_defineProperty(this, "type", void 0);
|
|
25
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
26
|
+
_defineProperty(this, "align", void 0);
|
|
27
|
+
_defineProperty(this, "width", void 0);
|
|
28
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "formField", void 0);
|
|
30
|
+
_defineProperty(this, "canSort", void 0);
|
|
31
|
+
_defineProperty(this, "children", void 0);
|
|
32
|
+
_defineProperty(this, "dataType", void 0);
|
|
33
|
+
_defineProperty(this, "parentName", void 0);
|
|
34
|
+
_defineProperty(this, "transformValue", function (val) {
|
|
35
|
+
return val;
|
|
36
|
+
});
|
|
37
|
+
_defineProperty(this, "export", function (val) {
|
|
38
|
+
return val;
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "getParentId", function () {
|
|
41
|
+
var _this$id$split = _this.id.split("_"),
|
|
42
|
+
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
43
|
+
key = _this$id$split2[0],
|
|
44
|
+
name = _this$id$split2[1],
|
|
45
|
+
code = _this$id$split2[2];
|
|
46
|
+
return "".concat(key, "_").concat(name);
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
49
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
50
|
+
id: _this.id,
|
|
51
|
+
label: _this.name,
|
|
52
|
+
value: _this.getComponentValue(record)
|
|
53
|
+
}) : null;
|
|
54
|
+
});
|
|
55
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
56
|
+
var picList = _this.getComponentValue(record);
|
|
57
|
+
if (!picList.length) {
|
|
58
|
+
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
59
|
+
}
|
|
60
|
+
return picList.map(function (t) {
|
|
61
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
62
|
+
width: 30,
|
|
63
|
+
src: t,
|
|
64
|
+
onClick: function onClick(e) {
|
|
65
|
+
return e.stopPropagation();
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
71
|
+
var id = _this.getParentId();
|
|
72
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
|
|
73
|
+
return _this.renderPc(undefined, r);
|
|
74
|
+
});
|
|
75
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
76
|
+
var picList = (r === null || r === void 0 ? void 0 : r[_this.id]) || [];
|
|
77
|
+
return picList === null || picList === void 0 ? void 0 : picList.map(function (url) {
|
|
78
|
+
return url.startsWith("http") ? url : url.startsWith("/") ? "https://kefu.kuaimai.com".concat(url) : "https://kefu.kuaimai.com/".concat(url);
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
_defineProperty(this, "getComponentExport", function (r) {
|
|
82
|
+
return _this.export(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName);
|
|
83
|
+
});
|
|
84
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
85
|
+
var picList = _this.getComponentValue(record);
|
|
86
|
+
return picList.join(",");
|
|
87
|
+
});
|
|
88
|
+
_defineProperty(this, "editRender", function () {
|
|
89
|
+
return null;
|
|
90
|
+
});
|
|
91
|
+
_defineProperty(this, "filterConfig", function () {
|
|
92
|
+
return [];
|
|
93
|
+
});
|
|
94
|
+
this.name = options.name;
|
|
95
|
+
this.id = options.id;
|
|
96
|
+
this.sortField = options.id;
|
|
97
|
+
this.formField = options.id;
|
|
98
|
+
this.type = options.type;
|
|
99
|
+
if (options.parentName) {
|
|
100
|
+
this.parentName = options.parentName;
|
|
101
|
+
}
|
|
102
|
+
this.componentConfig = options.componentConfig;
|
|
103
|
+
this.align = "left";
|
|
104
|
+
this.width = (options === null || options === void 0 ? void 0 : options.width) || 100;
|
|
105
|
+
this.isCombinationComponent = false;
|
|
106
|
+
this.canSort = false;
|
|
107
|
+
this.dataType = "string";
|
|
108
|
+
this.children = [];
|
|
109
|
+
if (options.transformValue) {
|
|
110
|
+
this.transformValue = options.transformValue;
|
|
111
|
+
}
|
|
112
|
+
if (options.renderExport) {
|
|
113
|
+
this.export = options.renderExport;
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
export default HeaderChildPic;
|