@kmkf-fe-packages/services-components 0.7.5-alpha.16 → 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.
|
@@ -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;
|
|
@@ -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;
|
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
|
}
|