@zat-design/sisyphus-react 3.14.9 → 3.14.10-beta.3
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/es/ProEnum/hooks/useEnum.js +1 -3
- package/es/ProThemeTools/component/ProTools/index.d.ts +1 -1
- package/es/ProThemeTools/component/ProTools/index.js +3 -0
- package/lib/ProEnum/hooks/useEnum.js +1 -3
- package/lib/ProThemeTools/component/ProTools/index.d.ts +1 -1
- package/lib/ProThemeTools/component/ProTools/index.js +3 -0
- package/package.json +3 -2
|
@@ -152,9 +152,7 @@ function useEnum(codes, value, compose) {
|
|
|
152
152
|
codes.forEach(code => {
|
|
153
153
|
var _catchData$data2;
|
|
154
154
|
var values = catchData === null || catchData === void 0 || (_catchData$data2 = catchData.data) === null || _catchData$data2 === void 0 ? void 0 : _catchData$data2[code];
|
|
155
|
-
|
|
156
|
-
_options[code] = values;
|
|
157
|
-
}
|
|
155
|
+
_options[code] = Array.isArray(values) ? values : [];
|
|
158
156
|
});
|
|
159
157
|
return _options;
|
|
160
158
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DevToolsPropsType } from '../../propsType';
|
|
2
|
-
declare const ProTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe
|
|
2
|
+
declare const ProTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe }: DevToolsPropsType) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ProTools;
|
|
@@ -159,9 +159,7 @@ function useEnum(codes, value, compose) {
|
|
|
159
159
|
codes.forEach(code => {
|
|
160
160
|
var _catchData$data2;
|
|
161
161
|
var values = catchData === null || catchData === void 0 || (_catchData$data2 = catchData.data) === null || _catchData$data2 === void 0 ? void 0 : _catchData$data2[code];
|
|
162
|
-
|
|
163
|
-
_options[code] = values;
|
|
164
|
-
}
|
|
162
|
+
_options[code] = Array.isArray(values) ? values : [];
|
|
165
163
|
});
|
|
166
164
|
return _options;
|
|
167
165
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DevToolsPropsType } from '../../propsType';
|
|
2
|
-
declare const ProTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe
|
|
2
|
+
declare const ProTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe }: DevToolsPropsType) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ProTools;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zat-design/sisyphus-react",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.10-beta.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.19.0"
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"eslint-plugin-jsx-a11y": "6.2.3",
|
|
122
122
|
"eslint-plugin-react": "7.16.0",
|
|
123
123
|
"eslint-plugin-react-hooks": "2.2.0",
|
|
124
|
-
"eslint-plugin-unused-imports": "^
|
|
124
|
+
"eslint-plugin-unused-imports": "^2.0.0",
|
|
125
125
|
"father": "^4.6.3",
|
|
126
126
|
"gh-pages": "^3.0.0",
|
|
127
127
|
"husky": "^4.0.7",
|
|
@@ -132,6 +132,7 @@
|
|
|
132
132
|
"prettier": "^2.5.0",
|
|
133
133
|
"pretty-quick": "^3.1.3",
|
|
134
134
|
"react-json-view": "^1.21.3",
|
|
135
|
+
"resolve": "^1.22.12",
|
|
135
136
|
"slash2": "^2.0.0",
|
|
136
137
|
"stylelint": "13.0.0",
|
|
137
138
|
"stylelint-checkstyle-formatter": "0.1.2",
|