@kmkf-fe-packages/services-components 0.14.1-alpha.3 → 0.14.1-alpha.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/components/BS/BsLogistics/index.d.ts +1 -0
- package/dist/esm/components/BS/BsLogistics/index.js +56 -33
- package/dist/esm/components/BS/BsPosting/components/City/index.d.ts +1 -3
- package/dist/esm/components/BS/BsPosting/components/City/index.js +6 -5
- package/dist/esm/components/BS/BsPosting/components/Detail/index.js +4 -4
- package/dist/esm/components/BS/BsPosting/components/District/index.d.ts +1 -3
- package/dist/esm/components/BS/BsPosting/components/District/index.js +6 -5
- package/dist/esm/components/BS/BsPosting/components/Province/index.d.ts +1 -3
- package/dist/esm/components/BS/BsPosting/components/Province/index.js +6 -5
- package/dist/esm/components/BS/BsPosting/components/ReceiverMobile/index.js +4 -4
- package/dist/esm/components/BS/BsPosting/components/ReceiverName/index.js +4 -4
- package/dist/esm/components/BS/BsPosting/index.d.ts +1 -3
- package/dist/esm/components/BS/BsPosting/index.js +8 -48
- package/dist/esm/components/JST/JstLogistics/index.d.ts +1 -0
- package/dist/esm/components/JST/JstLogistics/index.js +44 -21
- package/dist/esm/components/JST/JstSendGood/index.d.ts +1 -0
- package/dist/esm/components/JST/JstSendGood/index.js +47 -25
- package/dist/esm/components/NodeDeadLine/index.js +1 -1
- package/dist/esm/components/PostIng/index.d.ts +3 -16
- package/dist/esm/components/PostIng/index.js +88 -101
- package/dist/esm/type.d.ts +0 -4
- package/package.json +3 -3
|
@@ -26,6 +26,7 @@ declare class BsLogistics implements ComponentInterface {
|
|
|
26
26
|
expressCode: ExpressCode;
|
|
27
27
|
constructor(options: PickOption);
|
|
28
28
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
29
|
+
getSortChildFields: (type: string, options: PickOption) => any;
|
|
29
30
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
30
31
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
31
32
|
getComponentValue: (r: Record) => any;
|
|
@@ -32,19 +32,18 @@ var typeMap = {
|
|
|
32
32
|
code: "wlnLogisticsCode"
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(
|
|
35
|
+
var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
36
36
|
var _this = this,
|
|
37
|
-
_typeMap$
|
|
38
|
-
_typeMap$
|
|
39
|
-
_typeMap$
|
|
40
|
-
_typeMap$
|
|
41
|
-
_typeMap$
|
|
42
|
-
_typeMap$
|
|
43
|
-
_typeMap$
|
|
44
|
-
_typeMap$
|
|
37
|
+
_typeMap$_options$typ,
|
|
38
|
+
_typeMap$_options$typ2,
|
|
39
|
+
_typeMap$_options$typ3,
|
|
40
|
+
_typeMap$_options$typ4,
|
|
41
|
+
_typeMap$_options$typ5,
|
|
42
|
+
_typeMap$_options$typ6,
|
|
43
|
+
_typeMap$_options$typ7,
|
|
44
|
+
_typeMap$_options$typ8,
|
|
45
45
|
_this$componentConfig3,
|
|
46
|
-
|
|
47
|
-
_typeMap$options$type10;
|
|
46
|
+
_this$componentConfig4;
|
|
48
47
|
_classCallCheck(this, BsLogistics);
|
|
49
48
|
_defineProperty(this, "name", void 0);
|
|
50
49
|
_defineProperty(this, "id", void 0);
|
|
@@ -74,6 +73,39 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(options) {
|
|
|
74
73
|
})
|
|
75
74
|
}) : null;
|
|
76
75
|
});
|
|
76
|
+
_defineProperty(this, "getSortChildFields", function (type, options) {
|
|
77
|
+
if (!type) {
|
|
78
|
+
var _typeMap$options$type, _typeMap$options$type2;
|
|
79
|
+
return [{
|
|
80
|
+
name: "物流公司",
|
|
81
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.company),
|
|
82
|
+
options: _this.expressDateInstance.getExpressData(),
|
|
83
|
+
dataType: "string"
|
|
84
|
+
}, {
|
|
85
|
+
name: "物流单号",
|
|
86
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code),
|
|
87
|
+
dataType: "string"
|
|
88
|
+
}];
|
|
89
|
+
}
|
|
90
|
+
if (type === 'logisticsCompany') {
|
|
91
|
+
var _typeMap$options$type3;
|
|
92
|
+
return [{
|
|
93
|
+
name: "物流公司",
|
|
94
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.company),
|
|
95
|
+
options: _this.expressDateInstance.getExpressData(),
|
|
96
|
+
dataType: "string"
|
|
97
|
+
}];
|
|
98
|
+
}
|
|
99
|
+
if (type === 'logisticsCode') {
|
|
100
|
+
var _typeMap$options$type4;
|
|
101
|
+
return [{
|
|
102
|
+
name: "物流单号",
|
|
103
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.code),
|
|
104
|
+
dataType: "string"
|
|
105
|
+
}];
|
|
106
|
+
}
|
|
107
|
+
return [];
|
|
108
|
+
});
|
|
77
109
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
78
110
|
var _typeMap$_this$type;
|
|
79
111
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key)];
|
|
@@ -122,24 +154,24 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(options) {
|
|
|
122
154
|
subKey: (_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.code
|
|
123
155
|
}))];
|
|
124
156
|
});
|
|
125
|
-
this.name =
|
|
126
|
-
this.id =
|
|
127
|
-
this.sortField = "".concat(
|
|
128
|
-
this.formField = "".concat(
|
|
129
|
-
this.type =
|
|
130
|
-
this.componentConfig =
|
|
157
|
+
this.name = _options.name;
|
|
158
|
+
this.id = _options.id;
|
|
159
|
+
this.sortField = "".concat(_options.id, "_").concat((_typeMap$_options$typ = typeMap[_options.type]) === null || _typeMap$_options$typ === void 0 ? void 0 : _typeMap$_options$typ.key);
|
|
160
|
+
this.formField = "".concat(_options.id, "_").concat((_typeMap$_options$typ2 = typeMap[_options.type]) === null || _typeMap$_options$typ2 === void 0 ? void 0 : _typeMap$_options$typ2.key);
|
|
161
|
+
this.type = _options.type;
|
|
162
|
+
this.componentConfig = _options.componentConfig;
|
|
131
163
|
this.isCombinationComponent = true;
|
|
132
164
|
this.canSort = false;
|
|
133
|
-
this.expressCompany = new ExpressCompany(_objectSpread(_objectSpread({},
|
|
165
|
+
this.expressCompany = new ExpressCompany(_objectSpread(_objectSpread({}, _options), {}, {
|
|
134
166
|
name: "物流公司",
|
|
135
|
-
parentName: (_typeMap$
|
|
136
|
-
id: "".concat(
|
|
167
|
+
parentName: (_typeMap$_options$typ3 = typeMap[_options.type]) === null || _typeMap$_options$typ3 === void 0 ? void 0 : _typeMap$_options$typ3.name,
|
|
168
|
+
id: "".concat(_options.id, "_").concat((_typeMap$_options$typ4 = typeMap[_options.type]) === null || _typeMap$_options$typ4 === void 0 ? void 0 : _typeMap$_options$typ4.key, "_").concat((_typeMap$_options$typ5 = typeMap[_options.type]) === null || _typeMap$_options$typ5 === void 0 ? void 0 : _typeMap$_options$typ5.company),
|
|
137
169
|
width: 200
|
|
138
170
|
}));
|
|
139
|
-
this.expressCode = new ExpressCode(_objectSpread(_objectSpread({},
|
|
171
|
+
this.expressCode = new ExpressCode(_objectSpread(_objectSpread({}, _options), {}, {
|
|
140
172
|
name: "物流单号",
|
|
141
|
-
parentName: (_typeMap$
|
|
142
|
-
id: "".concat(
|
|
173
|
+
parentName: (_typeMap$_options$typ6 = typeMap[_options.type]) === null || _typeMap$_options$typ6 === void 0 ? void 0 : _typeMap$_options$typ6.name,
|
|
174
|
+
id: "".concat(_options.id, "_").concat((_typeMap$_options$typ7 = typeMap[_options.type]) === null || _typeMap$_options$typ7 === void 0 ? void 0 : _typeMap$_options$typ7.key, "_").concat((_typeMap$_options$typ8 = typeMap[_options.type]) === null || _typeMap$_options$typ8 === void 0 ? void 0 : _typeMap$_options$typ8.code),
|
|
143
175
|
width: 200
|
|
144
176
|
}));
|
|
145
177
|
this.children = [this.expressCompany, this.expressCode];
|
|
@@ -164,15 +196,6 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(options) {
|
|
|
164
196
|
}
|
|
165
197
|
}] : [];
|
|
166
198
|
this.expressDateInstance = ExpressData.getInstance();
|
|
167
|
-
this.sortChildField =
|
|
168
|
-
name: "物流公司",
|
|
169
|
-
key: "".concat(options.id, "_").concat((_typeMap$options$type9 = typeMap[options.type]) === null || _typeMap$options$type9 === void 0 ? void 0 : _typeMap$options$type9.company),
|
|
170
|
-
options: this.expressDateInstance.getExpressData(),
|
|
171
|
-
dataType: "string"
|
|
172
|
-
}, {
|
|
173
|
-
name: "物流单号",
|
|
174
|
-
key: "".concat(options.id, "_").concat((_typeMap$options$type10 = typeMap[options.type]) === null || _typeMap$options$type10 === void 0 ? void 0 : _typeMap$options$type10.code),
|
|
175
|
-
dataType: "string"
|
|
176
|
-
}];
|
|
199
|
+
this.sortChildField = this.getSortChildFields(((_this$componentConfig4 = this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) || '', _options);
|
|
177
200
|
});
|
|
178
201
|
export default BsLogistics;
|
|
@@ -17,9 +17,7 @@ declare class City implements ComponentInterface {
|
|
|
17
17
|
children: ComponentInterface[];
|
|
18
18
|
dataType: ComponentInterface['dataType'];
|
|
19
19
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
20
|
-
constructor(options: PickOption
|
|
21
|
-
addressDateInstance: InstanceType<typeof AddressData>;
|
|
22
|
-
});
|
|
20
|
+
constructor(options: PickOption);
|
|
23
21
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
24
22
|
renderPc: (value: unknown, record: Record) => string;
|
|
25
23
|
renderLog: (r: Record) => string;
|
|
@@ -6,6 +6,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
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); }
|
|
8
8
|
import React from 'react';
|
|
9
|
+
import { BsAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
9
10
|
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
11
|
import ItemView from "../../../../../commonComponents/ItemView";
|
|
11
12
|
var City = /*#__PURE__*/_createClass(function City(options) {
|
|
@@ -56,10 +57,10 @@ var City = /*#__PURE__*/_createClass(function City(options) {
|
|
|
56
57
|
_defineProperty(this, "filterConfig", function () {
|
|
57
58
|
return [];
|
|
58
59
|
});
|
|
59
|
-
this.name =
|
|
60
|
-
this.id = options.id;
|
|
61
|
-
this.sortField = options.id;
|
|
62
|
-
this.formField = options.id;
|
|
60
|
+
this.name = '市';
|
|
61
|
+
this.id = "".concat(options.id, "_bsPostingCity");
|
|
62
|
+
this.sortField = "".concat(options.id, "_bsPostingCity");
|
|
63
|
+
this.formField = "".concat(options.id, "_bsPostingCity");
|
|
63
64
|
this.type = options.type;
|
|
64
65
|
this.isCombinationComponent = false;
|
|
65
66
|
this.canSort = false;
|
|
@@ -70,6 +71,6 @@ var City = /*#__PURE__*/_createClass(function City(options) {
|
|
|
70
71
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
71
72
|
this.rules = [];
|
|
72
73
|
this.width = 120; // TODO: 针对子组件,必须拥有width属性,否则就会出现多列展示问题
|
|
73
|
-
this.addressDateInstance =
|
|
74
|
+
this.addressDateInstance = BsAddressData.getInstance();
|
|
74
75
|
});
|
|
75
76
|
export default City;
|
|
@@ -51,10 +51,10 @@ var Detail = /*#__PURE__*/_createClass(function Detail(options) {
|
|
|
51
51
|
_defineProperty(this, "filterConfig", function () {
|
|
52
52
|
return [];
|
|
53
53
|
});
|
|
54
|
-
this.name =
|
|
55
|
-
this.id = options.id;
|
|
56
|
-
this.sortField = options.id;
|
|
57
|
-
this.formField = options.id;
|
|
54
|
+
this.name = '详细地址';
|
|
55
|
+
this.id = "".concat(options.id, "_bsPostingDetail");
|
|
56
|
+
this.sortField = "".concat(options.id, "_bsPostingDetail");
|
|
57
|
+
this.formField = "".concat(options.id, "_bsPostingDetail");
|
|
58
58
|
this.type = options.type;
|
|
59
59
|
this.isCombinationComponent = false;
|
|
60
60
|
this.canSort = false;
|
|
@@ -17,9 +17,7 @@ declare class District implements ComponentInterface {
|
|
|
17
17
|
children: ComponentInterface[];
|
|
18
18
|
dataType: ComponentInterface['dataType'];
|
|
19
19
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
20
|
-
constructor(options: PickOption
|
|
21
|
-
addressDateInstance: InstanceType<typeof AddressData>;
|
|
22
|
-
});
|
|
20
|
+
constructor(options: PickOption);
|
|
23
21
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
24
22
|
renderPc: (value: unknown, record: Record) => string;
|
|
25
23
|
renderLog: (r: Record) => string;
|
|
@@ -6,6 +6,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
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); }
|
|
8
8
|
import React from 'react';
|
|
9
|
+
import { BsAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
9
10
|
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
11
|
import ItemView from "../../../../../commonComponents/ItemView";
|
|
11
12
|
var District = /*#__PURE__*/_createClass(function District(options) {
|
|
@@ -56,10 +57,10 @@ var District = /*#__PURE__*/_createClass(function District(options) {
|
|
|
56
57
|
_defineProperty(this, "filterConfig", function () {
|
|
57
58
|
return [];
|
|
58
59
|
});
|
|
59
|
-
this.name =
|
|
60
|
-
this.id = options.id;
|
|
61
|
-
this.sortField = options.id;
|
|
62
|
-
this.formField = options.id;
|
|
60
|
+
this.name = '区/县';
|
|
61
|
+
this.id = "".concat(options.id, "_bsPostingDistrict");
|
|
62
|
+
this.sortField = "".concat(options.id, "_bsPostingDistrict");
|
|
63
|
+
this.formField = "".concat(options.id, "_bsPostingDistrict");
|
|
63
64
|
this.type = options.type;
|
|
64
65
|
this.isCombinationComponent = false;
|
|
65
66
|
this.canSort = false;
|
|
@@ -70,6 +71,6 @@ var District = /*#__PURE__*/_createClass(function District(options) {
|
|
|
70
71
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
71
72
|
this.rules = [];
|
|
72
73
|
this.width = 120; // TODO: 针对子组件,必须拥有width属性,否则就会出现多列展示问题
|
|
73
|
-
this.addressDateInstance =
|
|
74
|
+
this.addressDateInstance = BsAddressData.getInstance();
|
|
74
75
|
});
|
|
75
76
|
export default District;
|
|
@@ -17,9 +17,7 @@ declare class Province implements ComponentInterface {
|
|
|
17
17
|
children: ComponentInterface[];
|
|
18
18
|
dataType: ComponentInterface['dataType'];
|
|
19
19
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
20
|
-
constructor(options: PickOption
|
|
21
|
-
addressDateInstance: InstanceType<typeof AddressData>;
|
|
22
|
-
});
|
|
20
|
+
constructor(options: PickOption);
|
|
23
21
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
24
22
|
renderPc: (value: unknown, record: Record) => string;
|
|
25
23
|
renderLog: (r: Record) => string;
|
|
@@ -6,6 +6,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
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); }
|
|
8
8
|
import React from 'react';
|
|
9
|
+
import { BsAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
9
10
|
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
11
|
import ItemView from "../../../../../commonComponents/ItemView";
|
|
11
12
|
var Province = /*#__PURE__*/_createClass(function Province(options) {
|
|
@@ -56,10 +57,10 @@ var Province = /*#__PURE__*/_createClass(function Province(options) {
|
|
|
56
57
|
_defineProperty(this, "filterConfig", function () {
|
|
57
58
|
return [];
|
|
58
59
|
});
|
|
59
|
-
this.name =
|
|
60
|
-
this.id = options.id;
|
|
61
|
-
this.sortField = options.id;
|
|
62
|
-
this.formField = options.id;
|
|
60
|
+
this.name = '省';
|
|
61
|
+
this.id = "".concat(options.id, "_bsPostingProvince");
|
|
62
|
+
this.sortField = "".concat(options.id, "_bsPostingProvince");
|
|
63
|
+
this.formField = "".concat(options.id, "_bsPostingProvince");
|
|
63
64
|
this.type = options.type;
|
|
64
65
|
this.isCombinationComponent = false;
|
|
65
66
|
this.canSort = false;
|
|
@@ -70,6 +71,6 @@ var Province = /*#__PURE__*/_createClass(function Province(options) {
|
|
|
70
71
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
71
72
|
this.rules = [];
|
|
72
73
|
this.width = 120; // TODO: 针对子组件,必须拥有width属性,否则就会出现多列展示问题
|
|
73
|
-
this.addressDateInstance =
|
|
74
|
+
this.addressDateInstance = BsAddressData.getInstance();
|
|
74
75
|
});
|
|
75
76
|
export default Province;
|
|
@@ -51,10 +51,10 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
|
|
|
51
51
|
_defineProperty(this, "filterConfig", function () {
|
|
52
52
|
return [];
|
|
53
53
|
});
|
|
54
|
-
this.name =
|
|
55
|
-
this.id = options.id;
|
|
56
|
-
this.sortField = options.id;
|
|
57
|
-
this.formField = options.id;
|
|
54
|
+
this.name = '收件人电话';
|
|
55
|
+
this.id = "".concat(options.id, "_bsPostingReceiverMobile");
|
|
56
|
+
this.sortField = "".concat(options.id, "_bsPostingReceiverMobile");
|
|
57
|
+
this.formField = "".concat(options.id, "_bsPostingReceiverMobile");
|
|
58
58
|
this.type = options.type;
|
|
59
59
|
this.isCombinationComponent = false;
|
|
60
60
|
this.canSort = false;
|
|
@@ -51,10 +51,10 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
|
51
51
|
_defineProperty(this, "filterConfig", function () {
|
|
52
52
|
return [];
|
|
53
53
|
});
|
|
54
|
-
this.name =
|
|
55
|
-
this.id = options.id;
|
|
56
|
-
this.sortField = options.id;
|
|
57
|
-
this.formField = options.id;
|
|
54
|
+
this.name = '收件人姓名';
|
|
55
|
+
this.id = "".concat(options.id, "_bsPostingReceiverName");
|
|
56
|
+
this.sortField = "".concat(options.id, "_bsPostingReceiverName");
|
|
57
|
+
this.formField = "".concat(options.id, "_bsPostingReceiverName");
|
|
58
58
|
this.type = options.type;
|
|
59
59
|
this.isCombinationComponent = false;
|
|
60
60
|
this.canSort = false;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentInterface, PickOption, Record } from "../../../type";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
3
|
import Province from "./components/Province";
|
|
5
4
|
import City from "./components/City";
|
|
6
5
|
import District from "./components/District";
|
|
@@ -25,7 +24,6 @@ declare class BsPosting implements ComponentInterface {
|
|
|
25
24
|
detail: Detail;
|
|
26
25
|
receiverName: ReceiverName;
|
|
27
26
|
receiverMobile: ReceiverMobile;
|
|
28
|
-
addressDateInstance: InstanceType<typeof AddressData>;
|
|
29
27
|
constructor(options: PickOption);
|
|
30
28
|
renderPc: () => null;
|
|
31
29
|
renderLog: (r: Record) => React.JSX.Element;
|
|
@@ -38,7 +36,7 @@ declare class BsPosting implements ComponentInterface {
|
|
|
38
36
|
mobile: any;
|
|
39
37
|
};
|
|
40
38
|
renderExport: () => null;
|
|
41
|
-
renderClient: (record: any) => React.JSX.Element
|
|
39
|
+
renderClient: (record: any) => React.JSX.Element;
|
|
42
40
|
editRender: (p: any) => React.JSX.Element;
|
|
43
41
|
filterConfig: () => never[];
|
|
44
42
|
}
|
|
@@ -10,7 +10,6 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
10
10
|
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); }
|
|
11
11
|
import React from "react";
|
|
12
12
|
import { ApaasPosting } from "@kmkf-fe-packages/basic-components";
|
|
13
|
-
import { BsAddressData, isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
13
|
import GetFormItem from "../../GetFormItem";
|
|
15
14
|
import Province from "./components/Province";
|
|
16
15
|
import City from "./components/City";
|
|
@@ -18,7 +17,6 @@ import District from "./components/District";
|
|
|
18
17
|
import Detail from "./components/Detail";
|
|
19
18
|
import ReceiverName from "./components/ReceiverName";
|
|
20
19
|
import ReceiverMobile from "./components/ReceiverMobile";
|
|
21
|
-
import ItemView from "../../../commonComponents/ItemView";
|
|
22
20
|
var BsPosting = /*#__PURE__*/_createClass(function BsPosting(options) {
|
|
23
21
|
var _this = this,
|
|
24
22
|
_options$componentCon;
|
|
@@ -40,7 +38,6 @@ var BsPosting = /*#__PURE__*/_createClass(function BsPosting(options) {
|
|
|
40
38
|
_defineProperty(this, "detail", void 0);
|
|
41
39
|
_defineProperty(this, "receiverName", void 0);
|
|
42
40
|
_defineProperty(this, "receiverMobile", void 0);
|
|
43
|
-
_defineProperty(this, "addressDateInstance", void 0);
|
|
44
41
|
_defineProperty(this, "renderPc", function () {
|
|
45
42
|
return null;
|
|
46
43
|
});
|
|
@@ -61,23 +58,7 @@ var BsPosting = /*#__PURE__*/_createClass(function BsPosting(options) {
|
|
|
61
58
|
return null;
|
|
62
59
|
});
|
|
63
60
|
_defineProperty(this, "renderClient", function (record) {
|
|
64
|
-
|
|
65
|
-
var province = record["".concat(_this.id, "_bsPostingProvince")];
|
|
66
|
-
var city = record["".concat(_this.id, "_bsPostingCity")];
|
|
67
|
-
var district = record["".concat(_this.id, "_bsPostingDistrict")];
|
|
68
|
-
var detail = record["".concat(_this.id, "_bsPostingDetail")];
|
|
69
|
-
var name = record["".concat(_this.id, "_bsPostingReceiverName")];
|
|
70
|
-
var mobile = record["".concat(_this.id, "_bsPostingReceiverMobile")];
|
|
71
|
-
var addressText = (_ref = [province, city, district]) === null || _ref === void 0 ? void 0 : _ref.map(function (suffix) {
|
|
72
|
-
return _this.addressDateInstance.getNameByCode(suffix);
|
|
73
|
-
}).join("");
|
|
74
|
-
var hasValue = addressText || detail || name || mobile;
|
|
75
|
-
var value = hasValue ? /*#__PURE__*/React.createElement("div", null, [addressText, detail].join("/"), /*#__PURE__*/React.createElement("br", null), [name, mobile].join("/")) : null;
|
|
76
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
77
|
-
id: _this.id,
|
|
78
|
-
label: _this.name,
|
|
79
|
-
value: value
|
|
80
|
-
}) : null;
|
|
61
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.province.renderClient(record), _this.city.renderClient(record), _this.district.renderClient(record), _this.detail.renderClient(record), _this.receiverName.renderClient(record), _this.receiverMobile.renderClient(record));
|
|
81
62
|
});
|
|
82
63
|
_defineProperty(this, "editRender", function (p) {
|
|
83
64
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3;
|
|
@@ -103,35 +84,14 @@ var BsPosting = /*#__PURE__*/_createClass(function BsPosting(options) {
|
|
|
103
84
|
this.componentConfig = options.componentConfig;
|
|
104
85
|
this.isCombinationComponent = true;
|
|
105
86
|
this.canSort = false;
|
|
87
|
+
this.children = [];
|
|
106
88
|
this.dataType = "object";
|
|
107
|
-
this.
|
|
108
|
-
this.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}));
|
|
113
|
-
this.city = new City(_objectSpread(_objectSpread({}, options), {}, {
|
|
114
|
-
id: "".concat(options.id, "_bsPostingCity"),
|
|
115
|
-
name: '市',
|
|
116
|
-
addressDateInstance: this.addressDateInstance
|
|
117
|
-
}));
|
|
118
|
-
this.district = new District(_objectSpread(_objectSpread({}, options), {}, {
|
|
119
|
-
id: "".concat(options.id, "_bsPostingDistrict"),
|
|
120
|
-
name: '区/县',
|
|
121
|
-
addressDateInstance: this.addressDateInstance
|
|
122
|
-
}));
|
|
123
|
-
this.detail = new Detail(_objectSpread(_objectSpread({}, options), {}, {
|
|
124
|
-
id: "".concat(options.id, "_bsPostingDetail"),
|
|
125
|
-
name: '详细地址'
|
|
126
|
-
}));
|
|
127
|
-
this.receiverName = new ReceiverName(_objectSpread(_objectSpread({}, options), {}, {
|
|
128
|
-
id: "".concat(options.id, "_bsPostingReceiverName"),
|
|
129
|
-
name: '收件人姓名'
|
|
130
|
-
}));
|
|
131
|
-
this.receiverMobile = new ReceiverMobile(_objectSpread(_objectSpread({}, options), {}, {
|
|
132
|
-
id: "".concat(options.id, "_bsPostingReceiverMobile"),
|
|
133
|
-
name: '收件人电话'
|
|
134
|
-
}));
|
|
89
|
+
this.province = new Province(_objectSpread({}, options));
|
|
90
|
+
this.city = new City(_objectSpread({}, options));
|
|
91
|
+
this.district = new District(_objectSpread({}, options));
|
|
92
|
+
this.detail = new Detail(_objectSpread({}, options));
|
|
93
|
+
this.receiverName = new ReceiverName(_objectSpread({}, options));
|
|
94
|
+
this.receiverMobile = new ReceiverMobile(_objectSpread({}, options));
|
|
135
95
|
this.children = [this.province, this.city, this.district, this.detail, this.receiverName, this.receiverMobile];
|
|
136
96
|
this.rules = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.required ? [{
|
|
137
97
|
validator: function validator(_, value) {
|
|
@@ -22,6 +22,7 @@ declare class JstLogistics implements ComponentInterface {
|
|
|
22
22
|
children: ComponentInterface[];
|
|
23
23
|
dataType: ComponentInterface["dataType"];
|
|
24
24
|
constructor(options: PickOption);
|
|
25
|
+
getSortChildFields: (type: string, options: PickOption) => any;
|
|
25
26
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
26
27
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
27
28
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -29,13 +29,12 @@ var typeMap = {
|
|
|
29
29
|
code: "reissueLogisticsCode"
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(
|
|
32
|
+
var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
|
|
33
33
|
var _this = this,
|
|
34
|
-
_typeMap$
|
|
35
|
-
_typeMap$
|
|
34
|
+
_typeMap$_options$typ,
|
|
35
|
+
_typeMap$_options$typ2,
|
|
36
36
|
_this$componentConfig3,
|
|
37
|
-
|
|
38
|
-
_typeMap$options$type4;
|
|
37
|
+
_this$componentConfig4;
|
|
39
38
|
_classCallCheck(this, JstLogistics);
|
|
40
39
|
_defineProperty(this, "name", void 0);
|
|
41
40
|
_defineProperty(this, "id", void 0);
|
|
@@ -51,6 +50,39 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
51
50
|
_defineProperty(this, "canSort", void 0);
|
|
52
51
|
_defineProperty(this, "children", void 0);
|
|
53
52
|
_defineProperty(this, "dataType", void 0);
|
|
53
|
+
_defineProperty(this, "getSortChildFields", function (type, options) {
|
|
54
|
+
if (!type) {
|
|
55
|
+
var _typeMap$options$type, _typeMap$options$type2;
|
|
56
|
+
return [{
|
|
57
|
+
name: "物流公司",
|
|
58
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.company),
|
|
59
|
+
options: _this.expressDateInstance.getExpressData(),
|
|
60
|
+
dataType: "string"
|
|
61
|
+
}, {
|
|
62
|
+
name: "物流单号",
|
|
63
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code),
|
|
64
|
+
dataType: "string"
|
|
65
|
+
}];
|
|
66
|
+
}
|
|
67
|
+
if (type === 'logisticsCompany') {
|
|
68
|
+
var _typeMap$options$type3;
|
|
69
|
+
return [{
|
|
70
|
+
name: "物流公司",
|
|
71
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.company),
|
|
72
|
+
options: _this.expressDateInstance.getExpressData(),
|
|
73
|
+
dataType: "string"
|
|
74
|
+
}];
|
|
75
|
+
}
|
|
76
|
+
if (type === 'logisticsCode') {
|
|
77
|
+
var _typeMap$options$type4;
|
|
78
|
+
return [{
|
|
79
|
+
name: "物流单号",
|
|
80
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.code),
|
|
81
|
+
dataType: "string"
|
|
82
|
+
}];
|
|
83
|
+
}
|
|
84
|
+
return [];
|
|
85
|
+
});
|
|
54
86
|
_defineProperty(this, "renderClient", function (record) {
|
|
55
87
|
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
56
88
|
return !isNull(item);
|
|
@@ -142,12 +174,12 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
142
174
|
}
|
|
143
175
|
}];
|
|
144
176
|
});
|
|
145
|
-
this.name =
|
|
146
|
-
this.id =
|
|
147
|
-
this.sortField = "".concat(
|
|
148
|
-
this.formField = "".concat(
|
|
149
|
-
this.type =
|
|
150
|
-
this.componentConfig =
|
|
177
|
+
this.name = _options.name;
|
|
178
|
+
this.id = _options.id;
|
|
179
|
+
this.sortField = "".concat(_options.id, "_").concat((_typeMap$_options$typ = typeMap[_options.type]) === null || _typeMap$_options$typ === void 0 ? void 0 : _typeMap$_options$typ.key);
|
|
180
|
+
this.formField = "".concat(_options.id, "_").concat((_typeMap$_options$typ2 = typeMap[_options.type]) === null || _typeMap$_options$typ2 === void 0 ? void 0 : _typeMap$_options$typ2.key);
|
|
181
|
+
this.type = _options.type;
|
|
182
|
+
this.componentConfig = _options.componentConfig;
|
|
151
183
|
this.isCombinationComponent = false;
|
|
152
184
|
this.canSort = false;
|
|
153
185
|
this.children = [];
|
|
@@ -166,15 +198,6 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
166
198
|
}] : [];
|
|
167
199
|
this.align = "left";
|
|
168
200
|
this.expressDateInstance = ExpressData.getInstance();
|
|
169
|
-
this.sortChildField =
|
|
170
|
-
name: "物流公司",
|
|
171
|
-
key: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.company),
|
|
172
|
-
options: this.expressDateInstance.getExpressData(),
|
|
173
|
-
dataType: "string"
|
|
174
|
-
}, {
|
|
175
|
-
name: "物流单号",
|
|
176
|
-
key: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.code),
|
|
177
|
-
dataType: "string"
|
|
178
|
-
}];
|
|
201
|
+
this.sortChildField = this.getSortChildFields(((_this$componentConfig4 = this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) || '', _options);
|
|
179
202
|
});
|
|
180
203
|
export default JstLogistics;
|
|
@@ -20,6 +20,7 @@ declare class JstSendGood implements ComponentInterface {
|
|
|
20
20
|
children: ComponentInterface[];
|
|
21
21
|
dataType: ComponentInterface["dataType"];
|
|
22
22
|
constructor(options: PickOption);
|
|
23
|
+
getSortChildFields: (type: string, options: PickOption) => any;
|
|
23
24
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
24
25
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
25
26
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -34,13 +34,12 @@ var typeMap = {
|
|
|
34
34
|
sendName: "wlnSendName"
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(
|
|
37
|
+
var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
38
38
|
var _this = this,
|
|
39
|
-
_typeMap$
|
|
40
|
-
_typeMap$
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
_this$componentConfig;
|
|
39
|
+
_typeMap$_options$typ,
|
|
40
|
+
_typeMap$_options$typ2,
|
|
41
|
+
_this$componentConfig,
|
|
42
|
+
_this$componentConfig2;
|
|
44
43
|
_classCallCheck(this, JstSendGood);
|
|
45
44
|
_defineProperty(this, "name", void 0);
|
|
46
45
|
_defineProperty(this, "id", void 0);
|
|
@@ -55,6 +54,37 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
55
54
|
_defineProperty(this, "canSort", void 0);
|
|
56
55
|
_defineProperty(this, "children", void 0);
|
|
57
56
|
_defineProperty(this, "dataType", void 0);
|
|
57
|
+
_defineProperty(this, "getSortChildFields", function (type, options) {
|
|
58
|
+
if (type === 'all') {
|
|
59
|
+
var _typeMap$options$type, _typeMap$options$type2;
|
|
60
|
+
return [{
|
|
61
|
+
name: "发货仓名称",
|
|
62
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.sendName),
|
|
63
|
+
dataType: "string"
|
|
64
|
+
}, {
|
|
65
|
+
name: "发货仓编码",
|
|
66
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.sendId),
|
|
67
|
+
dataType: "string"
|
|
68
|
+
}];
|
|
69
|
+
}
|
|
70
|
+
if (type === 'sendName') {
|
|
71
|
+
var _typeMap$options$type3;
|
|
72
|
+
return [{
|
|
73
|
+
name: "发货仓名称",
|
|
74
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.sendName),
|
|
75
|
+
dataType: "string"
|
|
76
|
+
}];
|
|
77
|
+
}
|
|
78
|
+
if (type === 'sendId') {
|
|
79
|
+
var _typeMap$options$type4;
|
|
80
|
+
return [{
|
|
81
|
+
name: "发货仓编码",
|
|
82
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.sendId),
|
|
83
|
+
dataType: "string"
|
|
84
|
+
}];
|
|
85
|
+
}
|
|
86
|
+
return [];
|
|
87
|
+
});
|
|
58
88
|
_defineProperty(this, "renderClient", function (record) {
|
|
59
89
|
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
60
90
|
return !isNull(item);
|
|
@@ -146,33 +176,25 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
146
176
|
}
|
|
147
177
|
}];
|
|
148
178
|
});
|
|
149
|
-
this.name =
|
|
150
|
-
this.id =
|
|
151
|
-
this.sortField = "".concat(
|
|
152
|
-
this.formField = "".concat(
|
|
153
|
-
this.sortChildField =
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
dataType: "string"
|
|
157
|
-
}, {
|
|
158
|
-
name: "发货仓编码",
|
|
159
|
-
key: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.sendId),
|
|
160
|
-
dataType: "string"
|
|
161
|
-
}];
|
|
162
|
-
this.type = options.type;
|
|
163
|
-
this.componentConfig = options.componentConfig;
|
|
179
|
+
this.name = _options.name;
|
|
180
|
+
this.id = _options.id;
|
|
181
|
+
this.sortField = "".concat(_options.id, "_").concat((_typeMap$_options$typ = typeMap[_options.type]) === null || _typeMap$_options$typ === void 0 ? void 0 : _typeMap$_options$typ.key);
|
|
182
|
+
this.formField = "".concat(_options.id, "_").concat((_typeMap$_options$typ2 = typeMap[_options.type]) === null || _typeMap$_options$typ2 === void 0 ? void 0 : _typeMap$_options$typ2.key);
|
|
183
|
+
this.sortChildField = this.getSortChildFields(((_this$componentConfig = this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showField) || '', _options);
|
|
184
|
+
this.type = _options.type;
|
|
185
|
+
this.componentConfig = _options.componentConfig;
|
|
164
186
|
this.dataType = "object";
|
|
165
|
-
this.rules = (_this$
|
|
187
|
+
this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
|
|
166
188
|
required: true,
|
|
167
189
|
validator: function validator(_, value) {
|
|
168
190
|
if (!value || !value.length) {
|
|
169
191
|
return Promise.reject(new Error("请选择宝贝"));
|
|
170
192
|
}
|
|
171
193
|
var hasNo = (value || []).some(function (item) {
|
|
172
|
-
var _this$
|
|
173
|
-
if (["sendName"].includes((_this === null || _this === void 0 ? void 0 : (_this$
|
|
194
|
+
var _this$componentConfig3, _this$componentConfig4;
|
|
195
|
+
if (["sendName"].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || "")) {
|
|
174
196
|
return item.sendName;
|
|
175
|
-
} else if (["sendId"].includes((_this === null || _this === void 0 ? void 0 : (_this$
|
|
197
|
+
} else if (["sendId"].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) || "")) {
|
|
176
198
|
return item.sendId;
|
|
177
199
|
} else {
|
|
178
200
|
return item.sendId && item.sendName;
|
|
@@ -72,7 +72,7 @@ var NodeDeadLine = /*#__PURE__*/_createClass(function NodeDeadLine(options) {
|
|
|
72
72
|
this.dataType = 'string';
|
|
73
73
|
this.rules = [];
|
|
74
74
|
this.isCombinationComponent = false;
|
|
75
|
-
this.canSort =
|
|
75
|
+
this.canSort = true;
|
|
76
76
|
this.children = [];
|
|
77
77
|
this.options = [{
|
|
78
78
|
label: '已超时',
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record } from "../../type";
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
|
-
import Province from "../BS/BsPosting/components/Province";
|
|
5
|
-
import City from "../BS/BsPosting/components//City";
|
|
6
|
-
import District from "../BS/BsPosting/components//District";
|
|
7
|
-
import Detail from "../BS/BsPosting/components//Detail";
|
|
8
|
-
import ReceiverName from "../BS/BsPosting/components//ReceiverName";
|
|
9
|
-
import ReceiverMobile from "../BS/BsPosting/components//ReceiverMobile";
|
|
10
4
|
declare class BasicPosting implements ComponentInterface {
|
|
11
5
|
name: string;
|
|
12
6
|
id: string;
|
|
@@ -20,15 +14,8 @@ declare class BasicPosting implements ComponentInterface {
|
|
|
20
14
|
children: ComponentInterface[];
|
|
21
15
|
dataType: ComponentInterface["dataType"];
|
|
22
16
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
23
|
-
province: Province;
|
|
24
|
-
city: City;
|
|
25
|
-
district: District;
|
|
26
|
-
detail: Detail;
|
|
27
|
-
receiverName: ReceiverName;
|
|
28
|
-
receiverMobile: ReceiverMobile;
|
|
29
|
-
isSplitColumns: boolean;
|
|
30
17
|
constructor(options: PickOption);
|
|
31
|
-
renderPc: (value: any, record: Record) => React.JSX.Element
|
|
18
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
32
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
33
20
|
getComponentValue: (r: Record) => {
|
|
34
21
|
province: any;
|
|
@@ -41,6 +28,6 @@ declare class BasicPosting implements ComponentInterface {
|
|
|
41
28
|
renderExport: (value: any, record: Record) => string | null;
|
|
42
29
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
43
30
|
editRender: (p: any) => React.JSX.Element;
|
|
44
|
-
filterConfig: () => never[];
|
|
31
|
+
filterConfig: (item: ColumnConfig) => never[];
|
|
45
32
|
}
|
|
46
33
|
export default BasicPosting;
|
|
@@ -1,6 +1,4 @@
|
|
|
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 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; }
|
|
3
|
-
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; }
|
|
4
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); }
|
|
5
3
|
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); } }
|
|
6
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -14,17 +12,28 @@ import GetFormItem from "../GetFormItem";
|
|
|
14
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
13
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
14
|
import { AddressData, BsAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
var typeMap = {
|
|
16
|
+
POSTING: {
|
|
17
|
+
province: "postingProvince",
|
|
18
|
+
city: "postingCity",
|
|
19
|
+
district: "postingDistrict",
|
|
20
|
+
detail: "postingDetail",
|
|
21
|
+
name: "postingReceiverName",
|
|
22
|
+
mobile: "postingReceiverMobile"
|
|
23
|
+
},
|
|
24
|
+
BS_POSTING: {
|
|
25
|
+
province: "bsPostingProvince",
|
|
26
|
+
city: "bsPostingCity",
|
|
27
|
+
district: "bsPostingDistrict",
|
|
28
|
+
detail: "bsPostingDetail",
|
|
29
|
+
name: "bsPostingReceiverName",
|
|
30
|
+
mobile: "bsPostingReceiverMobile"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
23
33
|
var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
|
|
24
34
|
var _this = this,
|
|
25
35
|
_options$componentCon,
|
|
26
|
-
_options$componentCon2
|
|
27
|
-
_options$componentCon3;
|
|
36
|
+
_options$componentCon2;
|
|
28
37
|
_classCallCheck(this, BasicPosting);
|
|
29
38
|
_defineProperty(this, "name", void 0);
|
|
30
39
|
_defineProperty(this, "id", void 0);
|
|
@@ -38,24 +47,14 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
|
|
|
38
47
|
_defineProperty(this, "children", void 0);
|
|
39
48
|
_defineProperty(this, "dataType", void 0);
|
|
40
49
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
41
|
-
_defineProperty(this, "province", void 0);
|
|
42
|
-
_defineProperty(this, "city", void 0);
|
|
43
|
-
_defineProperty(this, "district", void 0);
|
|
44
|
-
_defineProperty(this, "detail", void 0);
|
|
45
|
-
_defineProperty(this, "receiverName", void 0);
|
|
46
|
-
_defineProperty(this, "receiverMobile", void 0);
|
|
47
|
-
_defineProperty(this, "isSplitColumns", void 0);
|
|
48
50
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
49
|
-
var _ref;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var detail = record["".concat(_this.id, "_postingDetail")] || "";
|
|
57
|
-
var name = record["".concat(_this.id, "_postingReceiverName")] || "";
|
|
58
|
-
var mobile = record["".concat(_this.id, "_postingReceiverMobile")] || "";
|
|
51
|
+
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3, _typeMap$_this$type4, _typeMap$_this$type5, _typeMap$_this$type6, _ref;
|
|
52
|
+
var province = record["".concat(_this.id, "_").concat((_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.province)];
|
|
53
|
+
var city = record["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.city)];
|
|
54
|
+
var district = record["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.district)];
|
|
55
|
+
var detail = record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.detail)] || "";
|
|
56
|
+
var name = record["".concat(_this.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.name)] || "";
|
|
57
|
+
var mobile = record["".concat(_this.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.mobile)] || "";
|
|
59
58
|
if (province === undefined) {
|
|
60
59
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
61
60
|
}
|
|
@@ -71,9 +70,6 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
|
|
|
71
70
|
});
|
|
72
71
|
_defineProperty(this, "renderLog", function (r) {
|
|
73
72
|
var _ref2;
|
|
74
|
-
if (_this.isSplitColumns) {
|
|
75
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.province.renderLog(r), _this.city.renderLog(r), _this.district.renderLog(r), _this.detail.renderLog(r), "/", _this.receiverName.renderLog(r), _this.receiverMobile.renderLog(r));
|
|
76
|
-
}
|
|
77
73
|
var _this$getComponentVal = _this.getComponentValue(r),
|
|
78
74
|
province = _this$getComponentVal.province,
|
|
79
75
|
city = _this$getComponentVal.city,
|
|
@@ -90,30 +86,18 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
|
|
|
90
86
|
return /*#__PURE__*/React.createElement(React.Fragment, null, "".concat(addressText).concat(detail, " ").concat(name).concat(mobile));
|
|
91
87
|
});
|
|
92
88
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
93
|
-
|
|
94
|
-
return {
|
|
95
|
-
province: _this.province.getComponentValue(r),
|
|
96
|
-
city: _this.city.getComponentValue(r),
|
|
97
|
-
district: _this.district.getComponentValue(r),
|
|
98
|
-
detail: _this.detail.getComponentValue(r),
|
|
99
|
-
name: _this.receiverName.getComponentValue(r),
|
|
100
|
-
mobile: _this.receiverMobile.getComponentValue(r)
|
|
101
|
-
};
|
|
102
|
-
}
|
|
89
|
+
var _typeMap$_this$type7, _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type10, _typeMap$_this$type11, _typeMap$_this$type12;
|
|
103
90
|
return {
|
|
104
|
-
province: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "
|
|
105
|
-
city: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "
|
|
106
|
-
district: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "
|
|
107
|
-
detail: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "
|
|
108
|
-
name: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "
|
|
109
|
-
mobile: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "
|
|
91
|
+
province: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.province)],
|
|
92
|
+
city: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.city)],
|
|
93
|
+
district: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.district)],
|
|
94
|
+
detail: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.detail)]) || "",
|
|
95
|
+
name: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.name)]) || "",
|
|
96
|
+
mobile: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.mobile)]) || ""
|
|
110
97
|
};
|
|
111
98
|
});
|
|
112
99
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
113
100
|
var _ref3;
|
|
114
|
-
if (_this.isSplitColumns) {
|
|
115
|
-
return null;
|
|
116
|
-
}
|
|
117
101
|
var _this$getComponentVal2 = _this.getComponentValue(record),
|
|
118
102
|
province = _this$getComponentVal2.province,
|
|
119
103
|
city = _this$getComponentVal2.city,
|
|
@@ -130,25 +114,13 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
|
|
|
130
114
|
return "".concat(addressText, "/").concat(detail, "/ ").concat(name, "/").concat(mobile);
|
|
131
115
|
});
|
|
132
116
|
_defineProperty(this, "renderClient", function (record) {
|
|
133
|
-
var _ref4;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
// {this.detail.renderClient(record)}
|
|
141
|
-
// {this.receiverName.renderClient(record)}
|
|
142
|
-
// {this.receiverMobile.renderClient(record)}
|
|
143
|
-
// </>
|
|
144
|
-
// );
|
|
145
|
-
// }
|
|
146
|
-
var province = record["".concat(_this.id, "_postingProvince")];
|
|
147
|
-
var city = record["".concat(_this.id, "_postingCity")];
|
|
148
|
-
var district = record["".concat(_this.id, "_postingDistrict")];
|
|
149
|
-
var detail = record["".concat(_this.id, "_postingDetail")];
|
|
150
|
-
var name = record["".concat(_this.id, "_postingReceiverName")];
|
|
151
|
-
var mobile = record["".concat(_this.id, "_postingReceiverMobile")];
|
|
117
|
+
var _typeMap$_this$type13, _typeMap$_this$type14, _typeMap$_this$type15, _typeMap$_this$type16, _typeMap$_this$type17, _typeMap$_this$type18, _ref4;
|
|
118
|
+
var province = record["".concat(_this.id, "_").concat((_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.province)];
|
|
119
|
+
var city = record["".concat(_this.id, "_").concat((_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.city)];
|
|
120
|
+
var district = record["".concat(_this.id, "_").concat((_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.district)];
|
|
121
|
+
var detail = record["".concat(_this.id, "_").concat((_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.detail)];
|
|
122
|
+
var name = record["".concat(_this.id, "_").concat((_typeMap$_this$type17 = typeMap[_this.type]) === null || _typeMap$_this$type17 === void 0 ? void 0 : _typeMap$_this$type17.name)];
|
|
123
|
+
var mobile = record["".concat(_this.id, "_").concat((_typeMap$_this$type18 = typeMap[_this.type]) === null || _typeMap$_this$type18 === void 0 ? void 0 : _typeMap$_this$type18.mobile)];
|
|
152
124
|
var addressText = (_ref4 = [province, city, district]) === null || _ref4 === void 0 ? void 0 : _ref4.map(function (suffix) {
|
|
153
125
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
154
126
|
}).join("");
|
|
@@ -173,49 +145,64 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
|
|
|
173
145
|
}))
|
|
174
146
|
});
|
|
175
147
|
});
|
|
176
|
-
_defineProperty(this, "filterConfig", function () {
|
|
148
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
177
149
|
return [];
|
|
150
|
+
// return [
|
|
151
|
+
// {
|
|
152
|
+
// searchDefaultConditions: SYMBOL.eq as "eq",
|
|
153
|
+
// type: item.type,
|
|
154
|
+
// id: `${item.id}_${typeMap[this.type]?.district}`, // 过滤组件id
|
|
155
|
+
// name: `${item.name}-省市区`, // 过滤组件名称
|
|
156
|
+
// filterComponentType: "Cascader" as const,
|
|
157
|
+
// props: {
|
|
158
|
+
// options: (this.addressDateInstance.addressOptions as any) || [],
|
|
159
|
+
// fieldNames: {
|
|
160
|
+
// label: "label",
|
|
161
|
+
// value: "value",
|
|
162
|
+
// children: "children",
|
|
163
|
+
// },
|
|
164
|
+
// },
|
|
165
|
+
// formatFilterValue: (val: Array<number>) => {
|
|
166
|
+
// if (val?.length > 2) {
|
|
167
|
+
// return val?.[2];
|
|
168
|
+
// }
|
|
169
|
+
// },
|
|
170
|
+
// },
|
|
171
|
+
// {
|
|
172
|
+
// searchDefaultConditions: SYMBOL.like as "like",
|
|
173
|
+
// type: item.type,
|
|
174
|
+
// id: `${item.id}_${typeMap[this.type]?.detail}`, // 过滤组件id
|
|
175
|
+
// name: `${item.name}-详细地址`, // 过滤组件名称
|
|
176
|
+
// filterComponentType: "Input" as const,
|
|
177
|
+
// },
|
|
178
|
+
// {
|
|
179
|
+
// searchDefaultConditions: SYMBOL.like as "like",
|
|
180
|
+
// type: item.type,
|
|
181
|
+
// id: `${item.id}_${typeMap[this.type]?.name}`, // 过滤组件id
|
|
182
|
+
// name: `${item.name}-姓名`, // 过滤组件名称
|
|
183
|
+
// filterComponentType: "Input" as const,
|
|
184
|
+
// },
|
|
185
|
+
// {
|
|
186
|
+
// searchDefaultConditions: SYMBOL.like as "like",
|
|
187
|
+
// type: item.type,
|
|
188
|
+
// id: `${item.id}_${typeMap[this.type]?.mobile}`, // 过滤组件id
|
|
189
|
+
// name: `${item.name}-电话`, // 过滤组件名称
|
|
190
|
+
// filterComponentType: "Input" as const,
|
|
191
|
+
// },
|
|
192
|
+
// ];
|
|
178
193
|
});
|
|
179
194
|
this.name = options.name;
|
|
180
195
|
this.id = options.id;
|
|
181
196
|
this.sortField = "".concat(options.id);
|
|
182
197
|
this.formField = "".concat(options.id);
|
|
183
|
-
this.isSplitColumns = !!((_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.splitColumns);
|
|
184
198
|
this.type = options.type;
|
|
185
199
|
this.componentConfig = options.componentConfig;
|
|
186
|
-
this.isCombinationComponent =
|
|
200
|
+
this.isCombinationComponent = false;
|
|
187
201
|
this.canSort = false;
|
|
202
|
+
this.children = [];
|
|
188
203
|
this.dataType = "string";
|
|
189
|
-
this.addressDateInstance = ((_options$
|
|
190
|
-
this.
|
|
191
|
-
id: "".concat(options.id, "_postingProvince"),
|
|
192
|
-
name: '省',
|
|
193
|
-
addressDateInstance: this.addressDateInstance
|
|
194
|
-
}));
|
|
195
|
-
this.city = new City(_objectSpread(_objectSpread({}, options), {}, {
|
|
196
|
-
id: "".concat(options.id, "_postingCity"),
|
|
197
|
-
name: '市',
|
|
198
|
-
addressDateInstance: this.addressDateInstance
|
|
199
|
-
}));
|
|
200
|
-
this.district = new District(_objectSpread(_objectSpread({}, options), {}, {
|
|
201
|
-
id: "".concat(options.id, "_postingDistrict"),
|
|
202
|
-
name: '区/县',
|
|
203
|
-
addressDateInstance: this.addressDateInstance
|
|
204
|
-
}));
|
|
205
|
-
this.detail = new Detail(_objectSpread(_objectSpread({}, options), {}, {
|
|
206
|
-
id: "".concat(options.id, "_postingDetail"),
|
|
207
|
-
name: '详细地址'
|
|
208
|
-
}));
|
|
209
|
-
this.receiverName = new ReceiverName(_objectSpread(_objectSpread({}, options), {}, {
|
|
210
|
-
id: "".concat(options.id, "_postingReceiverName"),
|
|
211
|
-
name: '收件人姓名'
|
|
212
|
-
}));
|
|
213
|
-
this.receiverMobile = new ReceiverMobile(_objectSpread(_objectSpread({}, options), {}, {
|
|
214
|
-
id: "".concat(options.id, "_postingReceiverMobile"),
|
|
215
|
-
name: '收件人电话'
|
|
216
|
-
}));
|
|
217
|
-
this.children = this.isSplitColumns ? [this.province, this.city, this.district, this.detail, this.receiverName, this.receiverMobile] : [];
|
|
218
|
-
this.rules = options !== null && options !== void 0 && (_options$componentCon3 = options.componentConfig) !== null && _options$componentCon3 !== void 0 && _options$componentCon3.required ? [{
|
|
204
|
+
this.addressDateInstance = options.type === "BS_POSTING" || ((_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showField) === "bs" ? BsAddressData.getInstance() : AddressData.getInstance();
|
|
205
|
+
this.rules = options !== null && options !== void 0 && (_options$componentCon2 = options.componentConfig) !== null && _options$componentCon2 !== void 0 && _options$componentCon2.required ? [{
|
|
219
206
|
validator: function validator(_, value) {
|
|
220
207
|
var _value$postingAddress;
|
|
221
208
|
if (!(value !== null && value !== void 0 && (_value$postingAddress = value.postingAddress) !== null && _value$postingAddress !== void 0 && _value$postingAddress.length) || !(value !== null && value !== void 0 && value.postingDetail) || !(value !== null && value !== void 0 && value.postingReceiverName) || !(value !== null && value !== void 0 && value.postingReceiverMobile)) {
|
package/dist/esm/type.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.14.1-alpha.
|
|
3
|
+
"version": "0.14.1-alpha.4",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"father": "^4.1.7"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@kmkf-fe-packages/basic-components": "^0.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.14.1-alpha.4",
|
|
30
30
|
"@kmkf-fe-packages/kmkf-utils": "^0.13.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "88d62ad8c45405d5427981ec7ca5f422dbaa72a8"
|
|
44
44
|
}
|