@ztocwst/rc-pro-materials 0.1.28 → 0.1.30
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +5 -5
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/dist/SCM_Comps.css +1 -1
- package/dist/SCM_Comps.js +8 -8
- package/dist/SCM_Comps.js.map +1 -1
- package/es/components/z-operation-records/index.d.ts +3 -0
- package/es/components/z-operation-records/index.js +2 -0
- package/es/components/z-operation-records/operationRecords.d.ts +4 -0
- package/es/components/z-operation-records/operationRecords.js +9 -0
- package/es/components/z-preview/preview.js +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -0
- package/es/utils/index.d.ts +2 -1
- package/es/utils/index.js +2 -1
- package/es/utils/props/form.js +12 -4
- package/es/utils/props/operationRecords.d.ts +2 -0
- package/es/utils/props/operationRecords.js +33 -0
- package/es/utils/props/preview.js +7 -4
- package/es/utils/props/tpl.d.ts +4 -4
- package/es/utils/props/tpl.js +15 -6
- package/es/utils/rcProRequest.d.ts +2 -1
- package/es/utils/rcProRequest.js +3 -3
- package/lib/components/z-operation-records/index.d.ts +3 -0
- package/lib/components/z-operation-records/index.js +8 -0
- package/lib/components/z-operation-records/operationRecords.d.ts +4 -0
- package/lib/components/z-operation-records/operationRecords.js +16 -0
- package/lib/components/z-preview/preview.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -1
- package/lib/utils/index.d.ts +2 -1
- package/lib/utils/index.js +2 -0
- package/lib/utils/props/form.js +12 -4
- package/lib/utils/props/operationRecords.d.ts +2 -0
- package/lib/utils/props/operationRecords.js +36 -0
- package/lib/utils/props/preview.js +7 -4
- package/lib/utils/props/tpl.d.ts +4 -4
- package/lib/utils/props/tpl.js +15 -6
- package/lib/utils/rcProRequest.d.ts +2 -1
- package/lib/utils/rcProRequest.js +3 -3
- package/package.json +4 -4
package/lib/utils/props/tpl.js
CHANGED
|
@@ -10,9 +10,10 @@ var _form = require("./form");
|
|
|
10
10
|
var _lib = require("../../../lib");
|
|
11
11
|
var _common = require("./common");
|
|
12
12
|
var _excluded = ["on", "antdPageHeaderProps", "antdRadioGroupProps"],
|
|
13
|
-
_excluded2 = ["layoutProps", "antdPageHeaderProps", "requestConfig"],
|
|
14
|
-
_excluded3 = ["
|
|
15
|
-
_excluded4 = ["
|
|
13
|
+
_excluded2 = ["layoutProps", "antdPageHeaderProps", "requestConfig", "props"],
|
|
14
|
+
_excluded3 = ["proLogs"],
|
|
15
|
+
_excluded4 = ["props", "requestConfig"],
|
|
16
|
+
_excluded5 = ["page"];
|
|
16
17
|
// previewTabs 处理
|
|
17
18
|
var processTplBillPreviewTabsProps = function processTplBillPreviewTabsProps(props) {
|
|
18
19
|
var on = props.on,
|
|
@@ -36,18 +37,26 @@ var processTplBillPreviewTabsProps = function processTplBillPreviewTabsProps(pro
|
|
|
36
37
|
// preview 处理
|
|
37
38
|
var processTplBillPreviewProps = function processTplBillPreviewProps(props) {
|
|
38
39
|
var processObjectValue = function processObjectValue(obj) {
|
|
40
|
+
var _proLogs$columns;
|
|
39
41
|
// preview props 需要处理
|
|
40
42
|
var layoutProps = obj.layoutProps,
|
|
41
43
|
antdPageHeaderProps = obj.antdPageHeaderProps,
|
|
42
44
|
requestConfig = obj.requestConfig,
|
|
45
|
+
objProps = obj.props,
|
|
43
46
|
rest = (0, _objectWithoutPropertiesLoose2["default"])(obj, _excluded2);
|
|
47
|
+
var proLogs = objProps.proLogs,
|
|
48
|
+
objRest = (0, _objectWithoutPropertiesLoose2["default"])(objProps, _excluded3);
|
|
44
49
|
return (0, _extends2["default"])({}, layoutProps ? {
|
|
45
50
|
layoutProps: (0, _lib.processJsonOrFunctionProps)(layoutProps)
|
|
46
51
|
} : {}, antdPageHeaderProps ? {
|
|
47
52
|
antdPageHeaderProps: (0, _lib.processJsonOrFunctionProps)(antdPageHeaderProps)
|
|
48
53
|
} : {}, requestConfig ? {
|
|
49
54
|
requestConfig: (0, _common.processRequestConfig)(requestConfig)
|
|
50
|
-
} : {},
|
|
55
|
+
} : {}, {
|
|
56
|
+
props: (0, _extends2["default"])({}, objRest, proLogs !== null && proLogs !== void 0 && (_proLogs$columns = proLogs.columns) !== null && _proLogs$columns !== void 0 && _proLogs$columns.length ? {
|
|
57
|
+
proLogs: proLogs
|
|
58
|
+
} : {})
|
|
59
|
+
}, rest);
|
|
51
60
|
};
|
|
52
61
|
if (Array.isArray(props)) {
|
|
53
62
|
return props === null || props === void 0 ? void 0 : props.map(function (e) {
|
|
@@ -66,7 +75,7 @@ var processTplBillProps = function processTplBillProps(props, extra) {
|
|
|
66
75
|
var _form$props = form.props,
|
|
67
76
|
formProps = _form$props === void 0 ? {} : _form$props,
|
|
68
77
|
requestConfig = form.requestConfig,
|
|
69
|
-
formRest = (0, _objectWithoutPropertiesLoose2["default"])(form,
|
|
78
|
+
formRest = (0, _objectWithoutPropertiesLoose2["default"])(form, _excluded4);
|
|
70
79
|
return (0, _extends2["default"])({}, form ? {
|
|
71
80
|
form: (0, _extends2["default"])({}, formRest, {
|
|
72
81
|
requestConfig: (0, _extends2["default"])({}, requestConfig !== null && requestConfig !== void 0 && requestConfig.add ? {
|
|
@@ -95,7 +104,7 @@ var processTplProps = function processTplProps(props, extra) {
|
|
|
95
104
|
var _page$list;
|
|
96
105
|
var _ref2 = props !== null && props !== void 0 ? props : {},
|
|
97
106
|
page = _ref2.page,
|
|
98
|
-
rest = (0, _objectWithoutPropertiesLoose2["default"])(_ref2,
|
|
107
|
+
rest = (0, _objectWithoutPropertiesLoose2["default"])(_ref2, _excluded5);
|
|
99
108
|
var listFormRef = extra.listFormRef,
|
|
100
109
|
billFormRef = extra.billFormRef,
|
|
101
110
|
listRef = extra.listRef,
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { RcConfigConsumerProps } from '@ztocwst/rc-pro';
|
|
2
|
+
declare const _default: (rcProContext: RcConfigConsumerProps, url: string, requestParams: any) => Promise<any>;
|
|
2
3
|
export default _default;
|
|
@@ -8,17 +8,17 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
8
8
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
9
9
|
var _default = /*#__PURE__*/function () {
|
|
10
10
|
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(rcProContext, url, requestParams) {
|
|
11
|
-
var _ref2, materialsRequest,
|
|
11
|
+
var _ref2, materialsRequest, headers;
|
|
12
12
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
13
13
|
while (1) switch (_context.prev = _context.next) {
|
|
14
14
|
case 0:
|
|
15
|
-
_ref2 = rcProContext || {}, materialsRequest = _ref2.materialsRequest,
|
|
15
|
+
_ref2 = rcProContext || {}, materialsRequest = _ref2.materialsRequest, headers = _ref2.headers;
|
|
16
16
|
_context.next = 3;
|
|
17
17
|
return materialsRequest(url, (0, _extends2["default"])({
|
|
18
18
|
method: 'POST'
|
|
19
19
|
}, requestParams, {
|
|
20
20
|
headers: (0, _extends2["default"])({}, requestParams.headers, {
|
|
21
|
-
token: token
|
|
21
|
+
token: headers.token
|
|
22
22
|
})
|
|
23
23
|
}));
|
|
24
24
|
case 3:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ztocwst/rc-pro-materials",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"description": "@ztocwst/rc-pro-materials",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@alifd/next": "^1.25.27",
|
|
72
72
|
"@alilc/build-plugin-alt": "^1.3.3",
|
|
73
73
|
"@types/antd": "^1.0.0",
|
|
74
|
-
"@ztocwst/rc-pro": "0.4.
|
|
74
|
+
"@ztocwst/rc-pro": "0.4.44",
|
|
75
75
|
"antd": "4.22.3",
|
|
76
76
|
"moment": "latest",
|
|
77
77
|
"prop-types": "^15.5.8",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
},
|
|
87
87
|
"componentConfig": {
|
|
88
88
|
"isComponentLibrary": true,
|
|
89
|
-
"materialSchema": "https://npm.onmicrosoft.cn/@ztocwst/rc-pro-materials@0.1.
|
|
89
|
+
"materialSchema": "https://npm.onmicrosoft.cn/@ztocwst/rc-pro-materials@0.1.30/build/lowcode/assets-prod.json"
|
|
90
90
|
},
|
|
91
|
-
"homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.
|
|
91
|
+
"homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.30/build/index.html",
|
|
92
92
|
"publishConfig": {
|
|
93
93
|
"registry": "https://registry.npmjs.org/",
|
|
94
94
|
"access": "public"
|