@pisell/lowcode-renderer 1.0.45 → 1.0.47
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/es/Render/index.js +2 -4
- package/es/api/report/index.js +2 -2
- package/lib/Render/index.js +1 -8
- package/lib/api/report/index.js +2 -2
- package/package.json +1 -1
package/es/Render/index.js
CHANGED
|
@@ -16,7 +16,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
16
16
|
import { injectComponents } from "@alilc/lowcode-plugin-inject";
|
|
17
17
|
import { AssetLoader, buildComponents } from "@alilc/lowcode-utils";
|
|
18
18
|
import { Skeleton } from "antd";
|
|
19
|
-
import { isArray, mergeWith } from "lodash-es";
|
|
19
|
+
import { isArray, mergeWith, cloneDeep } from "lodash-es";
|
|
20
20
|
import React, { useEffect, useState } from "react";
|
|
21
21
|
import ReactRenderer from "../ReactRenderer";
|
|
22
22
|
import appHelper from "../appHelper";
|
|
@@ -149,9 +149,7 @@ var Render = function Render(props) {
|
|
|
149
149
|
schema: _objectSpread(_objectSpread({}, schema), {}, {
|
|
150
150
|
dataSource: mergeWith(schema.dataSource, projectDataSource, customizer)
|
|
151
151
|
}),
|
|
152
|
-
appHelper:
|
|
153
|
-
utils: _objectSpread(_objectSpread({}, appHelper.utils), (propsAppHelper === null || propsAppHelper === void 0 ? void 0 : propsAppHelper.utils) || {})
|
|
154
|
-
}),
|
|
152
|
+
appHelper: mergeWith(cloneDeep(appHelper), propsAppHelper),
|
|
155
153
|
components: components,
|
|
156
154
|
messages: i18n,
|
|
157
155
|
locale: locale
|
package/es/api/report/index.js
CHANGED
|
@@ -57,8 +57,8 @@ var getParams = function getParams(values, url) {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
// 转换时间戳
|
|
60
|
-
start_at = start_at.unix();
|
|
61
|
-
end_at = end_at.unix();
|
|
60
|
+
start_at = start_at.tz(timezone).unix();
|
|
61
|
+
end_at = end_at.tz(timezone).unix();
|
|
62
62
|
return _objectSpread(_objectSpread({
|
|
63
63
|
shop_id: id,
|
|
64
64
|
start_at: start_at,
|
package/lib/Render/index.js
CHANGED
|
@@ -121,14 +121,7 @@ var Render = (props) => {
|
|
|
121
121
|
...schema,
|
|
122
122
|
dataSource: (0, import_lodash_es.mergeWith)(schema.dataSource, projectDataSource, customizer)
|
|
123
123
|
},
|
|
124
|
-
appHelper:
|
|
125
|
-
...import_appHelper.default,
|
|
126
|
-
...propsAppHelper || {},
|
|
127
|
-
utils: {
|
|
128
|
-
...import_appHelper.default.utils,
|
|
129
|
-
...(propsAppHelper == null ? void 0 : propsAppHelper.utils) || {}
|
|
130
|
-
}
|
|
131
|
-
},
|
|
124
|
+
appHelper: (0, import_lodash_es.mergeWith)((0, import_lodash_es.cloneDeep)(import_appHelper.default), propsAppHelper),
|
|
132
125
|
components,
|
|
133
126
|
messages: i18n,
|
|
134
127
|
locale
|
package/lib/api/report/index.js
CHANGED
|
@@ -72,8 +72,8 @@ var getParams = (values, url) => {
|
|
|
72
72
|
start_at = (0, import_dayjs.default)().startOf("day");
|
|
73
73
|
end_at = start_at.endOf("day");
|
|
74
74
|
}
|
|
75
|
-
start_at = start_at.unix();
|
|
76
|
-
end_at = end_at.unix();
|
|
75
|
+
start_at = start_at.tz(timezone2).unix();
|
|
76
|
+
end_at = end_at.tz(timezone2).unix();
|
|
77
77
|
return {
|
|
78
78
|
shop_id: id,
|
|
79
79
|
start_at,
|