@kmkf-fe-packages/services-components 1.17.8-beta.3 → 1.17.8-beta.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.
|
@@ -19,6 +19,7 @@ declare class JstSendGood implements ComponentInterface {
|
|
|
19
19
|
canSort: boolean;
|
|
20
20
|
children: ComponentInterface[];
|
|
21
21
|
dataType: ComponentInterface["dataType"];
|
|
22
|
+
format: ComponentInterface["format"];
|
|
22
23
|
constructor(options: PickOption);
|
|
23
24
|
getSortChildFields: (type: string, options: PickOption, fieldType?: string) => any;
|
|
24
25
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -46,8 +47,5 @@ declare class JstSendGood implements ComponentInterface {
|
|
|
46
47
|
filterFn: (value: string) => (i: Record) => any;
|
|
47
48
|
props?: undefined;
|
|
48
49
|
})[];
|
|
49
|
-
formDataTransform: (v: Array<{
|
|
50
|
-
sendName: string;
|
|
51
|
-
}>) => string[];
|
|
52
50
|
}
|
|
53
51
|
export default JstSendGood;
|
|
@@ -60,6 +60,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
60
60
|
_defineProperty(this, "canSort", void 0);
|
|
61
61
|
_defineProperty(this, "children", void 0);
|
|
62
62
|
_defineProperty(this, "dataType", void 0);
|
|
63
|
+
_defineProperty(this, "format", void 0);
|
|
63
64
|
_defineProperty(this, "getSortChildFields", function (type, options, fieldType) {
|
|
64
65
|
var _typeMap$options$type, _typeMap$options$type2;
|
|
65
66
|
var sendName = {
|
|
@@ -202,14 +203,6 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
202
203
|
}
|
|
203
204
|
}];
|
|
204
205
|
});
|
|
205
|
-
_defineProperty(this, "formDataTransform", function (v) {
|
|
206
|
-
var _v$map;
|
|
207
|
-
return v === null || v === void 0 ? void 0 : (_v$map = v.map(function (item) {
|
|
208
|
-
return item.sendName;
|
|
209
|
-
})) === null || _v$map === void 0 ? void 0 : _v$map.filter(function (item) {
|
|
210
|
-
return !isNull(item);
|
|
211
|
-
});
|
|
212
|
-
});
|
|
213
206
|
this.name = _options.name;
|
|
214
207
|
this.id = _options.id;
|
|
215
208
|
this.sortField = "".concat(_options.id, "_").concat((_typeMap$_options$typ = typeMap[_options.type]) === null || _typeMap$_options$typ === void 0 ? void 0 : _typeMap$_options$typ.key);
|
|
@@ -244,5 +237,6 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
244
237
|
this.isCombinationComponent = false;
|
|
245
238
|
this.canSort = false;
|
|
246
239
|
this.children = [];
|
|
240
|
+
this.format = 'object';
|
|
247
241
|
});
|
|
248
242
|
export default JstSendGood;
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export interface ComponentInterface {
|
|
|
48
48
|
width?: number;
|
|
49
49
|
align?: ALignType;
|
|
50
50
|
dataType: "string" | "number" | "boolean" | "array" | "range" | "object";
|
|
51
|
-
format?: "dateTime" | "date" | "time" | "cascader" | "shopInput" | "staffGroup";
|
|
51
|
+
format?: "dateTime" | "date" | "time" | "cascader" | "shopInput" | "staffGroup" | "object";
|
|
52
52
|
options?: Array<any>;
|
|
53
53
|
templateId?: string;
|
|
54
54
|
flowTemplateKey?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.17.8-beta.
|
|
3
|
+
"version": "1.17.8-beta.4",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "1.17.8-beta.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "1.17.8-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "1.17.8-beta.4",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "1.17.8-beta.4",
|
|
26
26
|
"b64-to-blob": "^1.2.19",
|
|
27
27
|
"html2canvas": "^1.4.1",
|
|
28
28
|
"react-pdf-js": "^5.1.0"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "ee599b135d7dcb27f33a5b180b7580c77bf061eb",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|