@zat-design/sisyphus-react 3.13.7-beta.3 → 3.13.7-beta.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.
@@ -1,15 +1,12 @@
|
|
1
|
-
import "antd/es/tooltip/style";
|
2
|
-
import _Tooltip from "antd/es/tooltip";
|
3
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
4
2
|
/*
|
5
3
|
* @Author: za-xuwenli xuwenli@zhongan.io
|
6
4
|
* @Date: 2025-02-17 11:49:02
|
7
5
|
* @LastEditors: za-xuwenli xuwenli@zhongan.io
|
8
|
-
* @LastEditTime: 2025-05-
|
6
|
+
* @LastEditTime: 2025-05-29 13:55:34
|
9
7
|
* @FilePath: /zat-wjs-pro-product-web/src/components/CheckModalContent/index.tsx
|
10
8
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
11
9
|
*/
|
12
|
-
|
13
10
|
import './index.less';
|
14
11
|
var CheckModalContent = function CheckModalContent(props) {
|
15
12
|
var _ref = props !== null && props !== void 0 ? props : {},
|
@@ -23,21 +20,18 @@ var CheckModalContent = function CheckModalContent(props) {
|
|
23
20
|
children: [_jsx("span", {
|
24
21
|
className: "err-tip",
|
25
22
|
children: errorTitle
|
26
|
-
}),
|
27
|
-
|
28
|
-
children: [
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
})
|
39
|
-
}) : null]
|
40
|
-
})]
|
23
|
+
}), Array.isArray(list) && list.length === 1 ? _jsx("span", {
|
24
|
+
className: "err-item",
|
25
|
+
children: list[0]
|
26
|
+
}) : null, Array.isArray(list) && list.length > 1 ? _jsx("div", {
|
27
|
+
className: "list-wrap",
|
28
|
+
children: list.map(function (item) {
|
29
|
+
return _jsx("div", {
|
30
|
+
className: "err-item",
|
31
|
+
children: item
|
32
|
+
});
|
33
|
+
})
|
34
|
+
}) : null]
|
41
35
|
})
|
42
36
|
});
|
43
37
|
};
|
package/es/ProAction/index.js
CHANGED
@@ -102,7 +102,7 @@ var ProAction = function ProAction(props) {
|
|
102
102
|
if (!service) {
|
103
103
|
newServicesArray[currentIndex] = null;
|
104
104
|
}
|
105
|
-
open = (actionProps === null || actionProps === void 0 ? void 0 : actionProps.mode) === 'check' && ((_newServicesArray$cur = newServicesArray[currentIndex]) === null || _newServicesArray$cur === void 0 ? void 0 : _newServicesArray$cur.errorTitle)
|
105
|
+
open = (actionProps === null || actionProps === void 0 ? void 0 : actionProps.mode) === 'check' && (((_newServicesArray$cur = newServicesArray[currentIndex]) === null || _newServicesArray$cur === void 0 ? void 0 : _newServicesArray$cur.errorTitle) || ((_newServicesArray$cur2 = newServicesArray[currentIndex]) === null || _newServicesArray$cur2 === void 0 ? void 0 : (_newServicesArray$cur3 = _newServicesArray$cur2.list) === null || _newServicesArray$cur3 === void 0 ? void 0 : _newServicesArray$cur3.length));
|
106
106
|
setState({
|
107
107
|
servicesArray: newServicesArray,
|
108
108
|
index: currentIndex,
|
@@ -5,13 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
7
|
var _jsxRuntime = require("react/jsx-runtime");
|
8
|
-
var _antd = require("antd");
|
9
8
|
require("./index.less");
|
10
9
|
/*
|
11
10
|
* @Author: za-xuwenli xuwenli@zhongan.io
|
12
11
|
* @Date: 2025-02-17 11:49:02
|
13
12
|
* @LastEditors: za-xuwenli xuwenli@zhongan.io
|
14
|
-
* @LastEditTime: 2025-05-
|
13
|
+
* @LastEditTime: 2025-05-29 13:55:34
|
15
14
|
* @FilePath: /zat-wjs-pro-product-web/src/components/CheckModalContent/index.tsx
|
16
15
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
17
16
|
*/
|
@@ -28,21 +27,18 @@ var CheckModalContent = function CheckModalContent(props) {
|
|
28
27
|
children: [(0, _jsxRuntime.jsx)("span", {
|
29
28
|
className: "err-tip",
|
30
29
|
children: errorTitle
|
31
|
-
}), (0, _jsxRuntime.
|
32
|
-
|
33
|
-
children: [
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
})
|
44
|
-
}) : null]
|
45
|
-
})]
|
30
|
+
}), Array.isArray(list) && list.length === 1 ? (0, _jsxRuntime.jsx)("span", {
|
31
|
+
className: "err-item",
|
32
|
+
children: list[0]
|
33
|
+
}) : null, Array.isArray(list) && list.length > 1 ? (0, _jsxRuntime.jsx)("div", {
|
34
|
+
className: "list-wrap",
|
35
|
+
children: list.map(function (item) {
|
36
|
+
return (0, _jsxRuntime.jsx)("div", {
|
37
|
+
className: "err-item",
|
38
|
+
children: item
|
39
|
+
});
|
40
|
+
})
|
41
|
+
}) : null]
|
46
42
|
})
|
47
43
|
});
|
48
44
|
};
|
package/lib/ProAction/index.js
CHANGED
@@ -106,7 +106,7 @@ var ProAction = function ProAction(props) {
|
|
106
106
|
if (!service) {
|
107
107
|
newServicesArray[currentIndex] = null;
|
108
108
|
}
|
109
|
-
open = (actionProps === null || actionProps === void 0 ? void 0 : actionProps.mode) === 'check' && ((_newServicesArray$cur = newServicesArray[currentIndex]) === null || _newServicesArray$cur === void 0 ? void 0 : _newServicesArray$cur.errorTitle)
|
109
|
+
open = (actionProps === null || actionProps === void 0 ? void 0 : actionProps.mode) === 'check' && (((_newServicesArray$cur = newServicesArray[currentIndex]) === null || _newServicesArray$cur === void 0 ? void 0 : _newServicesArray$cur.errorTitle) || ((_newServicesArray$cur2 = newServicesArray[currentIndex]) === null || _newServicesArray$cur2 === void 0 ? void 0 : (_newServicesArray$cur3 = _newServicesArray$cur2.list) === null || _newServicesArray$cur3 === void 0 ? void 0 : _newServicesArray$cur3.length));
|
110
110
|
setState({
|
111
111
|
servicesArray: newServicesArray,
|
112
112
|
index: currentIndex,
|