@kmkf-fe-packages/services-components 0.7.5-alpha.15 → 0.7.5-alpha.17
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/CommonDataTime/index.d.ts +2 -2
- package/dist/esm/components/CommonDataTime/index.js +10 -4
- package/dist/esm/components/EItemEnCode/index.js +1 -1
- package/dist/esm/components/EItemId/index.js +1 -1
- package/dist/esm/components/EItemSelect/index.js +1 -1
- package/dist/esm/components/Handler/index.js +1 -1
- package/dist/esm/components/JstItemSelect/index.js +1 -1
- package/dist/esm/components/JstLogistics/index.js +1 -1
- package/dist/esm/components/JstSendGood/index.js +1 -1
- package/dist/esm/components/JstSupply/index.js +1 -1
- package/dist/esm/components/Payment/AlipayTime.d.ts +2 -2
- package/dist/esm/components/Payment/AlipayTime.js +10 -6
- package/dist/esm/components/ThirdItemSelect/index.js +1 -1
- package/package.json +2 -2
|
@@ -16,8 +16,8 @@ declare class CommonDataTime implements ComponentInterface {
|
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
getValue: (value: string) => string;
|
|
18
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
|
-
renderPc: (value: any, record: Record) =>
|
|
20
|
-
renderLog: (r: Record) =>
|
|
19
|
+
renderPc: (value: any, record: Record) => any;
|
|
20
|
+
renderLog: (r: Record) => any;
|
|
21
21
|
getComponentValue: (r: Record) => any;
|
|
22
22
|
renderExport: (value: any, record: Record) => string;
|
|
23
23
|
editRender: () => null;
|
|
@@ -37,10 +37,16 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
37
37
|
}) : null;
|
|
38
38
|
});
|
|
39
39
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
return
|
|
40
|
+
var _record;
|
|
41
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
|
|
42
|
+
// if (record?.[`${this.id}`] === undefined) {
|
|
43
|
+
// return <span>--</span>;
|
|
44
|
+
// }
|
|
45
|
+
// return (
|
|
46
|
+
// <span>
|
|
47
|
+
// {moment(record?.[`${this.id}`]).format('YYYY-MM-DD HH:mm:ss')}
|
|
48
|
+
// </span>
|
|
49
|
+
// );
|
|
44
50
|
});
|
|
45
51
|
_defineProperty(this, "renderLog", function (r) {
|
|
46
52
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
@@ -101,7 +101,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
101
101
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
102
102
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
103
103
|
this.isCombinationComponent = false;
|
|
104
|
-
this.canSort =
|
|
104
|
+
this.canSort = false;
|
|
105
105
|
this.children = [];
|
|
106
106
|
this.rules = this !== null && this !== void 0 && (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
107
107
|
required: true,
|
|
@@ -101,7 +101,7 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
101
101
|
this.type = options.type;
|
|
102
102
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
103
103
|
this.isCombinationComponent = false;
|
|
104
|
-
this.canSort =
|
|
104
|
+
this.canSort = false;
|
|
105
105
|
this.children = [];
|
|
106
106
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
107
107
|
this.rules = this !== null && this !== void 0 && (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
|
|
@@ -81,7 +81,7 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
|
|
|
81
81
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
82
82
|
this.rules = [];
|
|
83
83
|
this.isCombinationComponent = false;
|
|
84
|
-
this.canSort =
|
|
84
|
+
this.canSort = false;
|
|
85
85
|
this.children = [];
|
|
86
86
|
});
|
|
87
87
|
export default EItemSelect;
|
|
@@ -76,7 +76,7 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
|
|
|
76
76
|
this.type = "HANDLER_INPUT";
|
|
77
77
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
78
78
|
this.isCombinationComponent = false;
|
|
79
|
-
this.canSort =
|
|
79
|
+
this.canSort = false;
|
|
80
80
|
this.children = [];
|
|
81
81
|
});
|
|
82
82
|
export default Handler;
|
|
@@ -113,7 +113,7 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
113
113
|
this.type = options.type;
|
|
114
114
|
this.componentConfig = options.componentConfig;
|
|
115
115
|
this.isCombinationComponent = false;
|
|
116
|
-
this.canSort =
|
|
116
|
+
this.canSort = false;
|
|
117
117
|
this.children = [];
|
|
118
118
|
this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
119
119
|
required: true,
|
|
@@ -117,7 +117,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
117
117
|
this.type = options.type;
|
|
118
118
|
this.componentConfig = options.componentConfig;
|
|
119
119
|
this.isCombinationComponent = false;
|
|
120
|
-
this.canSort =
|
|
120
|
+
this.canSort = false;
|
|
121
121
|
this.children = [];
|
|
122
122
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
123
123
|
required: true,
|
|
@@ -138,7 +138,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
138
138
|
}] : [];
|
|
139
139
|
this.align = 'left';
|
|
140
140
|
this.isCombinationComponent = false;
|
|
141
|
-
this.canSort =
|
|
141
|
+
this.canSort = false;
|
|
142
142
|
this.children = [];
|
|
143
143
|
});
|
|
144
144
|
export default JstSendGood;
|
|
@@ -115,7 +115,7 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
115
115
|
this.type = options.type;
|
|
116
116
|
this.componentConfig = options.componentConfig;
|
|
117
117
|
this.isCombinationComponent = false;
|
|
118
|
-
this.canSort =
|
|
118
|
+
this.canSort = false;
|
|
119
119
|
this.children = [];
|
|
120
120
|
this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
121
121
|
required: true,
|
|
@@ -14,8 +14,8 @@ declare class AlipayTime implements ComponentInterface {
|
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
constructor(options: PickOption);
|
|
16
16
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
17
|
-
renderPc: (value: unknown, record: Record) =>
|
|
18
|
-
renderLog: (r: Record) =>
|
|
17
|
+
renderPc: (value: unknown, record: Record) => any;
|
|
18
|
+
renderLog: (r: Record) => any;
|
|
19
19
|
getComponentValue: (r: Record) => any;
|
|
20
20
|
renderExport: (value: string) => string | null;
|
|
21
21
|
editRender: () => React.JSX.Element;
|
|
@@ -34,12 +34,16 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
34
34
|
}) : null;
|
|
35
35
|
});
|
|
36
36
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
var _record;
|
|
38
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
|
|
39
|
+
// if (record?.[this.id] === undefined) {
|
|
40
|
+
// return <span>--</span>;
|
|
41
|
+
// }
|
|
42
|
+
// return (
|
|
43
|
+
// <span className="pointer">
|
|
44
|
+
// {record?.[this.id] ? moment(+record?.[this.id]).format('YYYY-MM-DD HH:mm:ss') : '--'}
|
|
45
|
+
// </span>
|
|
46
|
+
// );
|
|
43
47
|
});
|
|
44
48
|
_defineProperty(this, "renderLog", function (r) {
|
|
45
49
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
@@ -106,7 +106,7 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
106
106
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
107
107
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
108
108
|
this.isCombinationComponent = false;
|
|
109
|
-
this.canSort =
|
|
109
|
+
this.canSort = false;
|
|
110
110
|
this.children = [];
|
|
111
111
|
this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
|
|
112
112
|
required: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.7.5-alpha.
|
|
3
|
+
"version": "0.7.5-alpha.17",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "49e64ce960600788a38c2f5a07703ec5653e2d07"
|
|
44
44
|
}
|