@ztocwst/rc-pro-materials 0.2.4 → 0.2.5
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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/dist/SCM_Comps.js +1 -1
- package/dist/SCM_Comps.js.map +1 -1
- package/es/components/z-config-provider/configProvider.js +9 -4
- package/es/utils/props/form.js +2 -2
- package/lib/components/z-config-provider/configProvider.js +9 -4
- package/lib/utils/props/form.js +2 -2
- package/package.json +3 -3
|
@@ -6,7 +6,7 @@ import * as React from 'react';
|
|
|
6
6
|
import { RcConfigProvider } from '@ztocwst/rc-pro';
|
|
7
7
|
import { processEmptyObject, processRequestConfig } from "../../utils/props/common";
|
|
8
8
|
var ZConfigProvider = function ZConfigProvider(_ref) {
|
|
9
|
-
var _asyncSelect$fieldNam, _asyncSelect$pager, _form$footer, _print$printer, _tableOptions$paginat, _tableOptions$sortNam;
|
|
9
|
+
var _singleWarehouseConfi, _singleFactoryConfig$, _asyncSelect$fieldNam, _asyncSelect$pager, _form$footer, _print$printer, _tableOptions$paginat, _tableOptions$sortNam;
|
|
10
10
|
var children = _ref.children,
|
|
11
11
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
12
12
|
var _rest$authBtns = rest.authBtns,
|
|
@@ -30,7 +30,8 @@ var ZConfigProvider = function ZConfigProvider(_ref) {
|
|
|
30
30
|
* print 中的 printer
|
|
31
31
|
* tableOptions 中的 pagination、sortNames
|
|
32
32
|
* tplOptions 对象
|
|
33
|
-
*
|
|
33
|
+
* singleWarehouseConfig 中 defaultConfig
|
|
34
|
+
* singleFactoryConfig 中 defaultConfig
|
|
34
35
|
*/
|
|
35
36
|
|
|
36
37
|
var props = _extends({
|
|
@@ -41,10 +42,14 @@ var ZConfigProvider = function ZConfigProvider(_ref) {
|
|
|
41
42
|
}),
|
|
42
43
|
singleWarehouseConfig: _extends({}, singleWarehouseConfig, singleWarehouseConfig !== null && singleWarehouseConfig !== void 0 && singleWarehouseConfig.requestConfig ? {
|
|
43
44
|
requestConfig: processRequestConfig(singleWarehouseConfig === null || singleWarehouseConfig === void 0 ? void 0 : singleWarehouseConfig.requestConfig)
|
|
44
|
-
} : {}
|
|
45
|
+
} : {}, {
|
|
46
|
+
defaultConfig: processEmptyObject((_singleWarehouseConfi = singleWarehouseConfig === null || singleWarehouseConfig === void 0 ? void 0 : singleWarehouseConfig.defaultConfig) !== null && _singleWarehouseConfi !== void 0 ? _singleWarehouseConfi : {})
|
|
47
|
+
}),
|
|
45
48
|
singleFactoryConfig: _extends({}, singleFactoryConfig, singleFactoryConfig !== null && singleFactoryConfig !== void 0 && singleFactoryConfig.requestConfig ? {
|
|
46
49
|
requestConfig: processRequestConfig(singleFactoryConfig === null || singleFactoryConfig === void 0 ? void 0 : singleFactoryConfig.requestConfig)
|
|
47
|
-
} : {}
|
|
50
|
+
} : {}, {
|
|
51
|
+
defaultConfig: processEmptyObject((_singleFactoryConfig$ = singleFactoryConfig === null || singleFactoryConfig === void 0 ? void 0 : singleFactoryConfig.defaultConfig) !== null && _singleFactoryConfig$ !== void 0 ? _singleFactoryConfig$ : {})
|
|
52
|
+
}),
|
|
48
53
|
asyncSelect: _extends({}, asyncSelect, {
|
|
49
54
|
fieldNames: processEmptyObject((_asyncSelect$fieldNam = asyncSelect === null || asyncSelect === void 0 ? void 0 : asyncSelect.fieldNames) !== null && _asyncSelect$fieldNam !== void 0 ? _asyncSelect$fieldNam : {}),
|
|
50
55
|
pager: processEmptyObject((_asyncSelect$pager = asyncSelect === null || asyncSelect === void 0 ? void 0 : asyncSelect.pager) !== null && _asyncSelect$pager !== void 0 ? _asyncSelect$pager : {})
|
package/es/utils/props/form.js
CHANGED
|
@@ -169,9 +169,9 @@ export var processFormProps = function processFormProps(props) {
|
|
|
169
169
|
width: labelColWidth
|
|
170
170
|
})
|
|
171
171
|
})
|
|
172
|
-
}, settingOpt ? {
|
|
172
|
+
}, typeof settingOpt === 'string' && settingOpt !== null && settingOpt !== void 0 && settingOpt.trim() ? {
|
|
173
173
|
settingOpt: {
|
|
174
|
-
key: "
|
|
174
|
+
key: "" + (settingOpt === null || settingOpt === void 0 ? void 0 : settingOpt.trim())
|
|
175
175
|
}
|
|
176
176
|
} : {}, {
|
|
177
177
|
defaultColsNumber: defaultColsNumber,
|
|
@@ -13,7 +13,7 @@ var _excluded = ["children"],
|
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
15
|
var ZConfigProvider = function ZConfigProvider(_ref) {
|
|
16
|
-
var _asyncSelect$fieldNam, _asyncSelect$pager, _form$footer, _print$printer, _tableOptions$paginat, _tableOptions$sortNam;
|
|
16
|
+
var _singleWarehouseConfi, _singleFactoryConfig$, _asyncSelect$fieldNam, _asyncSelect$pager, _form$footer, _print$printer, _tableOptions$paginat, _tableOptions$sortNam;
|
|
17
17
|
var children = _ref.children,
|
|
18
18
|
rest = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
19
19
|
var _rest$authBtns = rest.authBtns,
|
|
@@ -37,7 +37,8 @@ var ZConfigProvider = function ZConfigProvider(_ref) {
|
|
|
37
37
|
* print 中的 printer
|
|
38
38
|
* tableOptions 中的 pagination、sortNames
|
|
39
39
|
* tplOptions 对象
|
|
40
|
-
*
|
|
40
|
+
* singleWarehouseConfig 中 defaultConfig
|
|
41
|
+
* singleFactoryConfig 中 defaultConfig
|
|
41
42
|
*/
|
|
42
43
|
|
|
43
44
|
var props = (0, _extends2["default"])({
|
|
@@ -48,10 +49,14 @@ var ZConfigProvider = function ZConfigProvider(_ref) {
|
|
|
48
49
|
}),
|
|
49
50
|
singleWarehouseConfig: (0, _extends2["default"])({}, singleWarehouseConfig, singleWarehouseConfig !== null && singleWarehouseConfig !== void 0 && singleWarehouseConfig.requestConfig ? {
|
|
50
51
|
requestConfig: (0, _common.processRequestConfig)(singleWarehouseConfig === null || singleWarehouseConfig === void 0 ? void 0 : singleWarehouseConfig.requestConfig)
|
|
51
|
-
} : {}
|
|
52
|
+
} : {}, {
|
|
53
|
+
defaultConfig: (0, _common.processEmptyObject)((_singleWarehouseConfi = singleWarehouseConfig === null || singleWarehouseConfig === void 0 ? void 0 : singleWarehouseConfig.defaultConfig) !== null && _singleWarehouseConfi !== void 0 ? _singleWarehouseConfi : {})
|
|
54
|
+
}),
|
|
52
55
|
singleFactoryConfig: (0, _extends2["default"])({}, singleFactoryConfig, singleFactoryConfig !== null && singleFactoryConfig !== void 0 && singleFactoryConfig.requestConfig ? {
|
|
53
56
|
requestConfig: (0, _common.processRequestConfig)(singleFactoryConfig === null || singleFactoryConfig === void 0 ? void 0 : singleFactoryConfig.requestConfig)
|
|
54
|
-
} : {}
|
|
57
|
+
} : {}, {
|
|
58
|
+
defaultConfig: (0, _common.processEmptyObject)((_singleFactoryConfig$ = singleFactoryConfig === null || singleFactoryConfig === void 0 ? void 0 : singleFactoryConfig.defaultConfig) !== null && _singleFactoryConfig$ !== void 0 ? _singleFactoryConfig$ : {})
|
|
59
|
+
}),
|
|
55
60
|
asyncSelect: (0, _extends2["default"])({}, asyncSelect, {
|
|
56
61
|
fieldNames: (0, _common.processEmptyObject)((_asyncSelect$fieldNam = asyncSelect === null || asyncSelect === void 0 ? void 0 : asyncSelect.fieldNames) !== null && _asyncSelect$fieldNam !== void 0 ? _asyncSelect$fieldNam : {}),
|
|
57
62
|
pager: (0, _common.processEmptyObject)((_asyncSelect$pager = asyncSelect === null || asyncSelect === void 0 ? void 0 : asyncSelect.pager) !== null && _asyncSelect$pager !== void 0 ? _asyncSelect$pager : {})
|
package/lib/utils/props/form.js
CHANGED
|
@@ -173,9 +173,9 @@ var processFormProps = function processFormProps(props) {
|
|
|
173
173
|
width: labelColWidth
|
|
174
174
|
})
|
|
175
175
|
})
|
|
176
|
-
}, settingOpt ? {
|
|
176
|
+
}, typeof settingOpt === 'string' && settingOpt !== null && settingOpt !== void 0 && settingOpt.trim() ? {
|
|
177
177
|
settingOpt: {
|
|
178
|
-
key: "
|
|
178
|
+
key: "" + (settingOpt === null || settingOpt === void 0 ? void 0 : settingOpt.trim())
|
|
179
179
|
}
|
|
180
180
|
} : {}, {
|
|
181
181
|
defaultColsNumber: defaultColsNumber,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ztocwst/rc-pro-materials",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "@ztocwst/rc-pro-materials",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
},
|
|
87
87
|
"componentConfig": {
|
|
88
88
|
"isComponentLibrary": true,
|
|
89
|
-
"materialSchema": "https://npm.onmicrosoft.cn/@ztocwst/rc-pro-materials@0.2.
|
|
89
|
+
"materialSchema": "https://npm.onmicrosoft.cn/@ztocwst/rc-pro-materials@0.2.5/build/lowcode/assets-prod.json"
|
|
90
90
|
},
|
|
91
|
-
"homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.2.
|
|
91
|
+
"homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.2.5/build/index.html",
|
|
92
92
|
"publishConfig": {
|
|
93
93
|
"registry": "https://registry.npmjs.org/",
|
|
94
94
|
"access": "public"
|