@kmkf-fe-packages/services-components 0.8.1 → 0.8.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.
|
@@ -102,7 +102,8 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
102
102
|
okText: "确定",
|
|
103
103
|
icon: null,
|
|
104
104
|
width: modelWidth,
|
|
105
|
-
content: LogisticsList(data === null || data === void 0 ? void 0 : data.traceDetailList)
|
|
105
|
+
content: LogisticsList(data === null || data === void 0 ? void 0 : data.traceDetailList),
|
|
106
|
+
getContainer: false
|
|
106
107
|
});
|
|
107
108
|
} else {
|
|
108
109
|
msg && message.error(msg);
|
|
@@ -18,8 +18,8 @@ declare class AlipayTime implements ComponentInterface {
|
|
|
18
18
|
constructor(options: PickOption);
|
|
19
19
|
dateTimeTrans: (v: number | string) => string;
|
|
20
20
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
21
|
-
renderPc: (value: unknown, record: Record) =>
|
|
22
|
-
renderLog: (r: Record) =>
|
|
21
|
+
renderPc: (value: unknown, record: Record) => string;
|
|
22
|
+
renderLog: (r: Record) => string | null;
|
|
23
23
|
getComponentValue: (r: Record) => any;
|
|
24
24
|
renderExport: (value: string) => string | null;
|
|
25
25
|
editRender: (p: any) => React.JSX.Element;
|
|
@@ -49,8 +49,8 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
49
49
|
}) : null;
|
|
50
50
|
});
|
|
51
51
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
52
|
-
var
|
|
53
|
-
return (
|
|
52
|
+
var _this$dateTimeTrans;
|
|
53
|
+
return (_this$dateTimeTrans = _this.dateTimeTrans(record === null || record === void 0 ? void 0 : record["".concat(_this.id)])) !== null && _this$dateTimeTrans !== void 0 ? _this$dateTimeTrans : '--';
|
|
54
54
|
// if (record?.[this.id] === undefined) {
|
|
55
55
|
// return <span>--</span>;
|
|
56
56
|
// }
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -168,7 +168,7 @@ export interface ComponentInterface {
|
|
|
168
168
|
* @param r
|
|
169
169
|
* @returns
|
|
170
170
|
*/
|
|
171
|
-
renderLog: (r: Record) => JSX.Element | null | JSX.Element[];
|
|
171
|
+
renderLog: (r: Record) => JSX.Element | null | JSX.Element[] | string;
|
|
172
172
|
/**
|
|
173
173
|
* 客户端卡片字段渲染,record的格式为下面这种,可以直接使用
|
|
174
174
|
* {
|
|
@@ -187,7 +187,7 @@ export interface ComponentInterface {
|
|
|
187
187
|
* @param record
|
|
188
188
|
* @returns
|
|
189
189
|
*/
|
|
190
|
-
renderPc: (value: unknown, record: Record) => JSX.Element | null | JSX.Element[];
|
|
190
|
+
renderPc: (value: unknown, record: Record) => JSX.Element | null | JSX.Element[] | string;
|
|
191
191
|
/**
|
|
192
192
|
* 导出时渲染
|
|
193
193
|
* @param p
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
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": "e69bc6e8c132a9aa5030868bcb1d88cd44532f73"
|
|
44
44
|
}
|