@ztocwst/rc-pro-materials 0.2.5 → 0.2.7
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/utils/index.d.ts +1 -1
- package/es/utils/index.js +5 -1
- package/es/utils/props/microModal.js +0 -1
- package/es/utils/props/microSwitch.js +4 -2
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +5 -1
- package/lib/utils/props/microModal.js +0 -1
- package/lib/utils/props/microSwitch.js +4 -2
- package/package.json +3 -3
package/es/utils/index.d.ts
CHANGED
|
@@ -10,4 +10,4 @@ import { processPreviewProps } from './props/preview';
|
|
|
10
10
|
import { processModalSelectProps, processModalSelectTablePropsColumns } from './props/modalSelect';
|
|
11
11
|
import { processOperationRecordsProps } from './props/operationRecords';
|
|
12
12
|
declare const processJsonOrFunctionProps: (props: any) => any;
|
|
13
|
-
export { processTplProps, processJsonOrFunctionProps, processFormProps, processListTplProps, processButtonProps, processMicroSwitchProps, processMicroModalProps, processPreviewProps, processWarehouseAndFactoryProps, processEditTableProps, processModalSelectProps, processModalSelectTablePropsColumns, processOperationRecordsProps };
|
|
13
|
+
export { processTplProps, processJsonOrFunctionProps, processFormProps, processListTplProps, processButtonProps, processMicroSwitchProps, processMicroModalProps, processPreviewProps, processWarehouseAndFactoryProps, processEditTableProps, processModalSelectProps, processModalSelectTablePropsColumns, processOperationRecordsProps, };
|
package/es/utils/index.js
CHANGED
|
@@ -10,6 +10,10 @@ import { processPreviewProps } from "./props/preview";
|
|
|
10
10
|
import { processModalSelectProps, processModalSelectTablePropsColumns } from "./props/modalSelect";
|
|
11
11
|
import { processOperationRecordsProps } from "./props/operationRecords";
|
|
12
12
|
var processJsonOrFunctionProps = function processJsonOrFunctionProps(props) {
|
|
13
|
-
|
|
13
|
+
try {
|
|
14
|
+
return typeof props === 'function' ? props === null || props === void 0 ? void 0 : props() : props;
|
|
15
|
+
} catch (error) {
|
|
16
|
+
console.log(error);
|
|
17
|
+
}
|
|
14
18
|
};
|
|
15
19
|
export { processTplProps, processJsonOrFunctionProps, processFormProps, processListTplProps, processButtonProps, processMicroSwitchProps, processMicroModalProps, processPreviewProps, processWarehouseAndFactoryProps, processEditTableProps, processModalSelectProps, processModalSelectTablePropsColumns, processOperationRecordsProps };
|
|
@@ -21,7 +21,6 @@ export var processMicroModalProps = function processMicroModalProps(item) {
|
|
|
21
21
|
requestOptions: processRequestConfig(requestOptions)
|
|
22
22
|
} : {}, restProps ? processJsonOrFunctionProps(restProps) : {})
|
|
23
23
|
});
|
|
24
|
-
console.log('microModalProps', _props);
|
|
25
24
|
return _props;
|
|
26
25
|
};
|
|
27
26
|
export function transformFormProps(formProps) {
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["columns"],
|
|
3
|
+
var _excluded = ["columns", "restProps"],
|
|
4
4
|
_excluded2 = ["actionsSlot"],
|
|
5
5
|
_excluded3 = ["restProps", "requestOptions"],
|
|
6
6
|
_excluded4 = ["isMicroSwitch"],
|
|
7
7
|
_excluded5 = ["enableReasonKey", "disableReasonKey", "formProps"];
|
|
8
|
+
import { processJsonOrFunctionProps } from "../index";
|
|
8
9
|
import { processRequestConfig } from "./common";
|
|
9
10
|
import { transformFormProps } from "./microModal";
|
|
10
11
|
export var processMicroSwitchProps = function processMicroSwitchProps(props, tableRef) {
|
|
11
12
|
var _props$columns = props.columns,
|
|
12
13
|
columns = _props$columns === void 0 ? [] : _props$columns,
|
|
14
|
+
restProps = props.restProps,
|
|
13
15
|
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
14
|
-
return _extends({}, rest, {
|
|
16
|
+
return _extends({}, rest, restProps ? processJsonOrFunctionProps(restProps) : {}, {
|
|
15
17
|
columns: columns === null || columns === void 0 ? void 0 : columns.map(function (column) {
|
|
16
18
|
var item = transformSwitchModal(column, tableRef);
|
|
17
19
|
var actionsSlot = item.actionsSlot,
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -10,4 +10,4 @@ import { processPreviewProps } from './props/preview';
|
|
|
10
10
|
import { processModalSelectProps, processModalSelectTablePropsColumns } from './props/modalSelect';
|
|
11
11
|
import { processOperationRecordsProps } from './props/operationRecords';
|
|
12
12
|
declare const processJsonOrFunctionProps: (props: any) => any;
|
|
13
|
-
export { processTplProps, processJsonOrFunctionProps, processFormProps, processListTplProps, processButtonProps, processMicroSwitchProps, processMicroModalProps, processPreviewProps, processWarehouseAndFactoryProps, processEditTableProps, processModalSelectProps, processModalSelectTablePropsColumns, processOperationRecordsProps };
|
|
13
|
+
export { processTplProps, processJsonOrFunctionProps, processFormProps, processListTplProps, processButtonProps, processMicroSwitchProps, processMicroModalProps, processPreviewProps, processWarehouseAndFactoryProps, processEditTableProps, processModalSelectProps, processModalSelectTablePropsColumns, processOperationRecordsProps, };
|
package/lib/utils/index.js
CHANGED
|
@@ -26,6 +26,10 @@ exports.processModalSelectTablePropsColumns = _modalSelect.processModalSelectTab
|
|
|
26
26
|
var _operationRecords = require("./props/operationRecords");
|
|
27
27
|
exports.processOperationRecordsProps = _operationRecords.processOperationRecordsProps;
|
|
28
28
|
var processJsonOrFunctionProps = function processJsonOrFunctionProps(props) {
|
|
29
|
-
|
|
29
|
+
try {
|
|
30
|
+
return typeof props === 'function' ? props === null || props === void 0 ? void 0 : props() : props;
|
|
31
|
+
} catch (error) {
|
|
32
|
+
console.log(error);
|
|
33
|
+
}
|
|
30
34
|
};
|
|
31
35
|
exports.processJsonOrFunctionProps = processJsonOrFunctionProps;
|
|
@@ -27,7 +27,6 @@ var processMicroModalProps = function processMicroModalProps(item) {
|
|
|
27
27
|
requestOptions: (0, _common.processRequestConfig)(requestOptions)
|
|
28
28
|
} : {}, restProps ? (0, _lib.processJsonOrFunctionProps)(restProps) : {})
|
|
29
29
|
});
|
|
30
|
-
console.log('microModalProps', _props);
|
|
31
30
|
return _props;
|
|
32
31
|
};
|
|
33
32
|
exports.processMicroModalProps = processMicroModalProps;
|
|
@@ -5,9 +5,10 @@ exports.__esModule = true;
|
|
|
5
5
|
exports.processMicroSwitchProps = void 0;
|
|
6
6
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
7
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
8
|
+
var _index = require("../index");
|
|
8
9
|
var _common = require("./common");
|
|
9
10
|
var _microModal = require("./microModal");
|
|
10
|
-
var _excluded = ["columns"],
|
|
11
|
+
var _excluded = ["columns", "restProps"],
|
|
11
12
|
_excluded2 = ["actionsSlot"],
|
|
12
13
|
_excluded3 = ["restProps", "requestOptions"],
|
|
13
14
|
_excluded4 = ["isMicroSwitch"],
|
|
@@ -15,8 +16,9 @@ var _excluded = ["columns"],
|
|
|
15
16
|
var processMicroSwitchProps = function processMicroSwitchProps(props, tableRef) {
|
|
16
17
|
var _props$columns = props.columns,
|
|
17
18
|
columns = _props$columns === void 0 ? [] : _props$columns,
|
|
19
|
+
restProps = props.restProps,
|
|
18
20
|
rest = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
|
|
19
|
-
return (0, _extends2["default"])({}, rest, {
|
|
21
|
+
return (0, _extends2["default"])({}, rest, restProps ? (0, _index.processJsonOrFunctionProps)(restProps) : {}, {
|
|
20
22
|
columns: columns === null || columns === void 0 ? void 0 : columns.map(function (column) {
|
|
21
23
|
var item = transformSwitchModal(column, tableRef);
|
|
22
24
|
var actionsSlot = item.actionsSlot,
|
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.7",
|
|
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.7/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.7/build/index.html",
|
|
92
92
|
"publishConfig": {
|
|
93
93
|
"registry": "https://registry.npmjs.org/",
|
|
94
94
|
"access": "public"
|