@ztocwst/rc-pro-materials 0.1.14 → 0.1.16
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-button/z-button.js +0 -1
- package/es/components/z-editTable/editTable.js +0 -1
- package/es/utils/props/form.js +14 -13
- package/es/utils/props/microSwitch.js +0 -2
- package/lib/components/z-button/z-button.js +0 -1
- package/lib/components/z-editTable/editTable.js +0 -1
- package/lib/utils/props/form.js +14 -13
- package/lib/utils/props/microSwitch.js +0 -2
- package/package.json +3 -3
|
@@ -5,7 +5,6 @@ import { processButtonProps } from "../../utils";
|
|
|
5
5
|
// import './index.scss';
|
|
6
6
|
|
|
7
7
|
var ZButton = function ZButton(props) {
|
|
8
|
-
console.log(processButtonProps(props), 2);
|
|
9
8
|
return /*#__PURE__*/React.createElement(ProButton, processButtonProps(props));
|
|
10
9
|
};
|
|
11
10
|
export default ZButton;
|
|
@@ -29,7 +29,6 @@ var ZRcEditTable = /*#__PURE__*/function (_React$Component) {
|
|
|
29
29
|
// editableFormRef:this.editableFormRef
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
console.log(this.props, editTableProps);
|
|
33
32
|
return /*#__PURE__*/React.createElement(RcEditProTable, editTableProps);
|
|
34
33
|
};
|
|
35
34
|
return ZRcEditTable;
|
package/es/utils/props/form.js
CHANGED
|
@@ -41,16 +41,17 @@ var processInitialValue = function processInitialValue(e) {
|
|
|
41
41
|
} : {}, (rest === null || rest === void 0 ? void 0 : rest.valueType) === 'dependency' ? {
|
|
42
42
|
columns: function columns(obj) {
|
|
43
43
|
var hhh = (dependencyColumns !== null && dependencyColumns !== void 0 ? dependencyColumns : []).map(function (child) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
// const value = (fieldRest?.name || [])?.reduce((prev, next) => {
|
|
45
|
+
// if (prev?.[next]) {
|
|
46
|
+
// return prev?.[next];
|
|
47
|
+
// }
|
|
48
|
+
// return prev;
|
|
49
|
+
// }, obj);
|
|
50
|
+
|
|
51
51
|
var dependencyName = '';
|
|
52
52
|
try {
|
|
53
|
-
|
|
53
|
+
// obj 依赖对象
|
|
54
|
+
dependencyName = JSON.stringify(obj !== null && obj !== void 0 ? obj : '');
|
|
54
55
|
} catch (error) {
|
|
55
56
|
dependencyName = '';
|
|
56
57
|
}
|
|
@@ -109,7 +110,7 @@ var processInitialValue = function processInitialValue(e) {
|
|
|
109
110
|
});
|
|
110
111
|
};
|
|
111
112
|
export var processFormProps = function processFormProps(props) {
|
|
112
|
-
var
|
|
113
|
+
var _ref3;
|
|
113
114
|
var columns = props.columns,
|
|
114
115
|
submitter = props.submitter,
|
|
115
116
|
labelColWidth = props.labelColWidth,
|
|
@@ -128,17 +129,17 @@ export var processFormProps = function processFormProps(props) {
|
|
|
128
129
|
restProps = props.restProps;
|
|
129
130
|
return processModalSelectProps(_extends({
|
|
130
131
|
// columns只支持两级group嵌套
|
|
131
|
-
columns: (
|
|
132
|
+
columns: (_ref3 = columns || []) === null || _ref3 === void 0 ? void 0 : _ref3.filter(function (e) {
|
|
132
133
|
return !!e;
|
|
133
134
|
}).map(function (e) {
|
|
134
135
|
if (e.valueType === 'group') {
|
|
135
|
-
var
|
|
136
|
+
var _ref4, _ref4$filter;
|
|
136
137
|
var groupColumns = e.columns,
|
|
137
138
|
groupRest = _objectWithoutPropertiesLoose(e, _excluded6);
|
|
138
139
|
return _extends({}, groupRest, {
|
|
139
|
-
columns: (
|
|
140
|
+
columns: (_ref4 = groupColumns || []) === null || _ref4 === void 0 ? void 0 : (_ref4$filter = _ref4.filter(function (child) {
|
|
140
141
|
return !!child;
|
|
141
|
-
})) === null ||
|
|
142
|
+
})) === null || _ref4$filter === void 0 ? void 0 : _ref4$filter.map(function (child) {
|
|
142
143
|
return processInitialValue(child);
|
|
143
144
|
})
|
|
144
145
|
});
|
|
@@ -64,8 +64,6 @@ var transformSwitchModal = function transformSwitchModal(column, tableRef) {
|
|
|
64
64
|
var _column$isMicroSwitch = column.isMicroSwitch,
|
|
65
65
|
isMicroSwitch = _column$isMicroSwitch === void 0 ? null : _column$isMicroSwitch,
|
|
66
66
|
_rest = _objectWithoutPropertiesLoose(column, _excluded4);
|
|
67
|
-
console.log('xxxcolumn', column);
|
|
68
|
-
console.log('xxx', _rest);
|
|
69
67
|
return _rest;
|
|
70
68
|
}
|
|
71
69
|
};
|
|
@@ -10,7 +10,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
10
10
|
// import { bizCssPrefix } from '../../variables';
|
|
11
11
|
// import './index.scss';
|
|
12
12
|
var ZButton = function ZButton(props) {
|
|
13
|
-
console.log((0, _utils.processButtonProps)(props), 2);
|
|
14
13
|
return /*#__PURE__*/React.createElement(_rcPro.ProButton, (0, _utils.processButtonProps)(props));
|
|
15
14
|
};
|
|
16
15
|
var _default = ZButton;
|
|
@@ -36,7 +36,6 @@ var ZRcEditTable = /*#__PURE__*/function (_React$Component) {
|
|
|
36
36
|
// editableFormRef:this.editableFormRef
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
console.log(this.props, editTableProps);
|
|
40
39
|
return /*#__PURE__*/React.createElement(_rcPro.RcEditProTable, editTableProps);
|
|
41
40
|
};
|
|
42
41
|
return ZRcEditTable;
|
package/lib/utils/props/form.js
CHANGED
|
@@ -45,16 +45,17 @@ var processInitialValue = function processInitialValue(e) {
|
|
|
45
45
|
} : {}, (rest === null || rest === void 0 ? void 0 : rest.valueType) === 'dependency' ? {
|
|
46
46
|
columns: function columns(obj) {
|
|
47
47
|
var hhh = (dependencyColumns !== null && dependencyColumns !== void 0 ? dependencyColumns : []).map(function (child) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
// const value = (fieldRest?.name || [])?.reduce((prev, next) => {
|
|
49
|
+
// if (prev?.[next]) {
|
|
50
|
+
// return prev?.[next];
|
|
51
|
+
// }
|
|
52
|
+
// return prev;
|
|
53
|
+
// }, obj);
|
|
54
|
+
|
|
55
55
|
var dependencyName = '';
|
|
56
56
|
try {
|
|
57
|
-
|
|
57
|
+
// obj 依赖对象
|
|
58
|
+
dependencyName = JSON.stringify(obj !== null && obj !== void 0 ? obj : '');
|
|
58
59
|
} catch (error) {
|
|
59
60
|
dependencyName = '';
|
|
60
61
|
}
|
|
@@ -113,7 +114,7 @@ var processInitialValue = function processInitialValue(e) {
|
|
|
113
114
|
});
|
|
114
115
|
};
|
|
115
116
|
var processFormProps = function processFormProps(props) {
|
|
116
|
-
var
|
|
117
|
+
var _ref3;
|
|
117
118
|
var columns = props.columns,
|
|
118
119
|
submitter = props.submitter,
|
|
119
120
|
labelColWidth = props.labelColWidth,
|
|
@@ -132,17 +133,17 @@ var processFormProps = function processFormProps(props) {
|
|
|
132
133
|
restProps = props.restProps;
|
|
133
134
|
return (0, _modalSelect.processModalSelectProps)((0, _extends2["default"])({
|
|
134
135
|
// columns只支持两级group嵌套
|
|
135
|
-
columns: (
|
|
136
|
+
columns: (_ref3 = columns || []) === null || _ref3 === void 0 ? void 0 : _ref3.filter(function (e) {
|
|
136
137
|
return !!e;
|
|
137
138
|
}).map(function (e) {
|
|
138
139
|
if (e.valueType === 'group') {
|
|
139
|
-
var
|
|
140
|
+
var _ref4, _ref4$filter;
|
|
140
141
|
var groupColumns = e.columns,
|
|
141
142
|
groupRest = (0, _objectWithoutPropertiesLoose2["default"])(e, _excluded6);
|
|
142
143
|
return (0, _extends2["default"])({}, groupRest, {
|
|
143
|
-
columns: (
|
|
144
|
+
columns: (_ref4 = groupColumns || []) === null || _ref4 === void 0 ? void 0 : (_ref4$filter = _ref4.filter(function (child) {
|
|
144
145
|
return !!child;
|
|
145
|
-
})) === null ||
|
|
146
|
+
})) === null || _ref4$filter === void 0 ? void 0 : _ref4$filter.map(function (child) {
|
|
146
147
|
return processInitialValue(child);
|
|
147
148
|
})
|
|
148
149
|
});
|
|
@@ -69,8 +69,6 @@ var transformSwitchModal = function transformSwitchModal(column, tableRef) {
|
|
|
69
69
|
var _column$isMicroSwitch = column.isMicroSwitch,
|
|
70
70
|
isMicroSwitch = _column$isMicroSwitch === void 0 ? null : _column$isMicroSwitch,
|
|
71
71
|
_rest = (0, _objectWithoutPropertiesLoose2["default"])(column, _excluded4);
|
|
72
|
-
console.log('xxxcolumn', column);
|
|
73
|
-
console.log('xxx', _rest);
|
|
74
72
|
return _rest;
|
|
75
73
|
}
|
|
76
74
|
};
|
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.16",
|
|
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.16/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.16/build/index.html",
|
|
90
90
|
"publishConfig": {
|
|
91
91
|
"registry": "https://registry.npmjs.org/",
|
|
92
92
|
"access": "public"
|