@ztocwst/rc-pro-materials 0.1.10 → 0.1.11
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/props/microSwitch.js +10 -5
- package/lib/utils/props/microSwitch.js +10 -5
- package/package.json +3 -3
|
@@ -23,13 +23,15 @@ export var processMicroSwitchProps = function processMicroSwitchProps(props, tab
|
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
25
|
var transformSwitchModal = function transformSwitchModal(column, tableRef) {
|
|
26
|
+
if (!column) {
|
|
27
|
+
return column;
|
|
28
|
+
}
|
|
26
29
|
if (column !== null && column !== void 0 && column.enableMicroSwitch) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
if (!isMicroSwitch) {
|
|
30
|
+
// const { isMicroSwitch = null } = column;
|
|
31
|
+
if (!(column !== null && column !== void 0 && column.isMicroSwitch)) {
|
|
30
32
|
return _extends({}, column);
|
|
31
33
|
} else {
|
|
32
|
-
var _transformMicroModalF = transformMicroModalFormProps(isMicroSwitch),
|
|
34
|
+
var _transformMicroModalF = transformMicroModalFormProps(column === null || column === void 0 ? void 0 : column.isMicroSwitch),
|
|
33
35
|
restProps = _transformMicroModalF.restProps,
|
|
34
36
|
requestOptions = _transformMicroModalF.requestOptions,
|
|
35
37
|
rest = _objectWithoutPropertiesLoose(_transformMicroModalF, _excluded2);
|
|
@@ -48,8 +50,11 @@ var transformSwitchModal = function transformSwitchModal(column, tableRef) {
|
|
|
48
50
|
});
|
|
49
51
|
}
|
|
50
52
|
} else {
|
|
51
|
-
var
|
|
53
|
+
var _column$isMicroSwitch = column.isMicroSwitch,
|
|
54
|
+
isMicroSwitch = _column$isMicroSwitch === void 0 ? null : _column$isMicroSwitch,
|
|
52
55
|
_rest = _objectWithoutPropertiesLoose(column, _excluded3);
|
|
56
|
+
console.log('xxxcolumn', column);
|
|
57
|
+
console.log('xxx', _rest);
|
|
53
58
|
return _rest;
|
|
54
59
|
}
|
|
55
60
|
};
|
|
@@ -29,13 +29,15 @@ var processMicroSwitchProps = function processMicroSwitchProps(props, tableRef)
|
|
|
29
29
|
};
|
|
30
30
|
exports.processMicroSwitchProps = processMicroSwitchProps;
|
|
31
31
|
var transformSwitchModal = function transformSwitchModal(column, tableRef) {
|
|
32
|
+
if (!column) {
|
|
33
|
+
return column;
|
|
34
|
+
}
|
|
32
35
|
if (column !== null && column !== void 0 && column.enableMicroSwitch) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
if (!isMicroSwitch) {
|
|
36
|
+
// const { isMicroSwitch = null } = column;
|
|
37
|
+
if (!(column !== null && column !== void 0 && column.isMicroSwitch)) {
|
|
36
38
|
return (0, _extends2["default"])({}, column);
|
|
37
39
|
} else {
|
|
38
|
-
var _transformMicroModalF = transformMicroModalFormProps(isMicroSwitch),
|
|
40
|
+
var _transformMicroModalF = transformMicroModalFormProps(column === null || column === void 0 ? void 0 : column.isMicroSwitch),
|
|
39
41
|
restProps = _transformMicroModalF.restProps,
|
|
40
42
|
requestOptions = _transformMicroModalF.requestOptions,
|
|
41
43
|
rest = (0, _objectWithoutPropertiesLoose2["default"])(_transformMicroModalF, _excluded2);
|
|
@@ -54,8 +56,11 @@ var transformSwitchModal = function transformSwitchModal(column, tableRef) {
|
|
|
54
56
|
});
|
|
55
57
|
}
|
|
56
58
|
} else {
|
|
57
|
-
var
|
|
59
|
+
var _column$isMicroSwitch = column.isMicroSwitch,
|
|
60
|
+
isMicroSwitch = _column$isMicroSwitch === void 0 ? null : _column$isMicroSwitch,
|
|
58
61
|
_rest = (0, _objectWithoutPropertiesLoose2["default"])(column, _excluded3);
|
|
62
|
+
console.log('xxxcolumn', column);
|
|
63
|
+
console.log('xxx', _rest);
|
|
59
64
|
return _rest;
|
|
60
65
|
}
|
|
61
66
|
};
|
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.11",
|
|
4
4
|
"description": "@ztocwst/rc-pro-materials",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
},
|
|
85
85
|
"componentConfig": {
|
|
86
86
|
"isComponentLibrary": true,
|
|
87
|
-
"materialSchema": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.
|
|
87
|
+
"materialSchema": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.11/build/lowcode/assets-prod.json"
|
|
88
88
|
},
|
|
89
|
-
"homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.
|
|
89
|
+
"homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.11/build/index.html",
|
|
90
90
|
"publishConfig": {
|
|
91
91
|
"registry": "https://registry.npmjs.org/",
|
|
92
92
|
"access": "public"
|