@zat-design/sisyphus-react 3.13.7-beta.2 → 3.13.7-beta.4

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.
@@ -12,7 +12,7 @@
12
12
  }
13
13
  .pro-action-check-modal-box .res-err-list .list-wrap {
14
14
  box-sizing: border-box;
15
- height: 50vh;
15
+ max-height: 50vh;
16
16
  margin: 12px 0;
17
17
  padding: 4px;
18
18
  overflow-y: auto;
@@ -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-28 18:23:47
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
- }), _jsxs(_Tooltip, {
27
- title: list.join('\n') || [],
28
- children: [Array.isArray(list) && list.length === 1 ? _jsx("span", {
29
- className: "err-item",
30
- children: list[0]
31
- }) : null, Array.isArray(list) && list.length > 1 ? _jsx("div", {
32
- className: "list-wrap",
33
- children: list.map(function (item) {
34
- return _jsx("div", {
35
- className: "err-item",
36
- children: item
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
  };
@@ -16,7 +16,7 @@
16
16
 
17
17
  .list-wrap {
18
18
  box-sizing: border-box;
19
- height: 50vh;
19
+ max-height: 50vh;
20
20
  margin: 12px 0;
21
21
  padding: 4px;
22
22
  overflow-y: auto;
@@ -213,6 +213,7 @@ var ProAction = function ProAction(props) {
213
213
  size: "small",
214
214
  onOk: onOk,
215
215
  form: form,
216
+ className: "pro-action-error-modal",
216
217
  children: !contextRender ? _jsx(CheckModalContent, _objectSpread({}, errorModalData !== null && errorModalData !== void 0 ? errorModalData : {})) : renderContent()
217
218
  }) : null]
218
219
  });
@@ -1,11 +1,10 @@
1
1
  @root-entry-name: 'default';
2
2
  @import (reference) '~antd/es/style/themes/index.less';
3
3
 
4
- .pro-action-view-tile {
5
- margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
6
- color : #666;
7
-
8
- span {
9
- color: #000;
4
+ .pro-action-error-modal {
5
+ .ant-modal-content {
6
+ > div.ant-modal-body {
7
+ max-height: none;
8
+ }
10
9
  }
11
10
  }
@@ -12,7 +12,7 @@
12
12
  }
13
13
  .pro-action-check-modal-box .res-err-list .list-wrap {
14
14
  box-sizing: border-box;
15
- height: 50vh;
15
+ max-height: 50vh;
16
16
  margin: 12px 0;
17
17
  padding: 4px;
18
18
  overflow-y: auto;
@@ -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-28 18:23:47
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.jsxs)(_antd.Tooltip, {
32
- title: list.join('\n') || [],
33
- children: [Array.isArray(list) && list.length === 1 ? (0, _jsxRuntime.jsx)("span", {
34
- className: "err-item",
35
- children: list[0]
36
- }) : null, Array.isArray(list) && list.length > 1 ? (0, _jsxRuntime.jsx)("div", {
37
- className: "list-wrap",
38
- children: list.map(function (item) {
39
- return (0, _jsxRuntime.jsx)("div", {
40
- className: "err-item",
41
- children: item
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
  };
@@ -16,7 +16,7 @@
16
16
 
17
17
  .list-wrap {
18
18
  box-sizing: border-box;
19
- height: 50vh;
19
+ max-height: 50vh;
20
20
  margin: 12px 0;
21
21
  padding: 4px;
22
22
  overflow-y: auto;
@@ -217,6 +217,7 @@ var ProAction = function ProAction(props) {
217
217
  size: "small",
218
218
  onOk: onOk,
219
219
  form: form,
220
+ className: "pro-action-error-modal",
220
221
  children: !contextRender ? (0, _jsxRuntime.jsx)(_CheckModalContent.default, (0, _objectSpread2.default)({}, errorModalData !== null && errorModalData !== void 0 ? errorModalData : {})) : renderContent()
221
222
  }) : null]
222
223
  });
@@ -1,11 +1,10 @@
1
1
  @root-entry-name: 'default';
2
2
  @import (reference) '~antd/es/style/themes/index.less';
3
3
 
4
- .pro-action-view-tile {
5
- margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
6
- color : #666;
7
-
8
- span {
9
- color: #000;
4
+ .pro-action-error-modal {
5
+ .ant-modal-content {
6
+ > div.ant-modal-body {
7
+ max-height: none;
8
+ }
10
9
  }
11
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.13.7-beta.2",
3
+ "version": "3.13.7-beta.4",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",