zmdms-webui 0.0.133 → 0.0.135

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.
Files changed (88) hide show
  1. package/dist/es/button/button.js +1 -1
  2. package/dist/es/button/buttonExport.d.ts +0 -2
  3. package/dist/es/button/buttonExport.js +25 -23
  4. package/dist/es/formitem/index.css +1 -1
  5. package/dist/es/table/components/EnhanceBodyCell.js +8 -2
  6. package/dist/index.dark.css +1 -1
  7. package/dist/index.default.css +1 -1
  8. package/package.json +1 -1
  9. package/dist/es/_virtual/browser.js +0 -3
  10. package/dist/es/_virtual/index3.js +0 -3
  11. package/dist/es/_virtual/index4.js +0 -3
  12. package/dist/es/_virtual/index5.js +0 -3
  13. package/dist/es/_virtual/node.js +0 -3
  14. package/dist/es/_virtual/serialOrdered.js +0 -3
  15. package/dist/es/node_modules/asynckit/index.js +0 -12
  16. package/dist/es/node_modules/asynckit/lib/abort.js +0 -31
  17. package/dist/es/node_modules/asynckit/lib/async.js +0 -38
  18. package/dist/es/node_modules/asynckit/lib/defer.js +0 -28
  19. package/dist/es/node_modules/asynckit/lib/iterate.js +0 -80
  20. package/dist/es/node_modules/asynckit/lib/state.js +0 -39
  21. package/dist/es/node_modules/asynckit/lib/terminator.js +0 -34
  22. package/dist/es/node_modules/asynckit/parallel.js +0 -49
  23. package/dist/es/node_modules/asynckit/serial.js +0 -21
  24. package/dist/es/node_modules/asynckit/serialOrdered.js +0 -84
  25. package/dist/es/node_modules/axios/lib/adapters/adapters.js +0 -61
  26. package/dist/es/node_modules/axios/lib/adapters/http.js +0 -664
  27. package/dist/es/node_modules/axios/lib/adapters/xhr.js +0 -253
  28. package/dist/es/node_modules/axios/lib/axios.js +0 -89
  29. package/dist/es/node_modules/axios/lib/cancel/CancelToken.js +0 -121
  30. package/dist/es/node_modules/axios/lib/cancel/CanceledError.js +0 -23
  31. package/dist/es/node_modules/axios/lib/cancel/isCancel.js +0 -5
  32. package/dist/es/node_modules/axios/lib/core/Axios.js +0 -201
  33. package/dist/es/node_modules/axios/lib/core/AxiosError.js +0 -98
  34. package/dist/es/node_modules/axios/lib/core/AxiosHeaders.js +0 -298
  35. package/dist/es/node_modules/axios/lib/core/InterceptorManager.js +0 -71
  36. package/dist/es/node_modules/axios/lib/core/buildFullPath.js +0 -21
  37. package/dist/es/node_modules/axios/lib/core/dispatchRequest.js +0 -81
  38. package/dist/es/node_modules/axios/lib/core/mergeConfig.js +0 -105
  39. package/dist/es/node_modules/axios/lib/core/settle.js +0 -27
  40. package/dist/es/node_modules/axios/lib/core/transformData.js +0 -28
  41. package/dist/es/node_modules/axios/lib/defaults/index.js +0 -159
  42. package/dist/es/node_modules/axios/lib/defaults/transitional.js +0 -7
  43. package/dist/es/node_modules/axios/lib/env/data.js +0 -3
  44. package/dist/es/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -191
  45. package/dist/es/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -56
  46. package/dist/es/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -73
  47. package/dist/es/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -28
  48. package/dist/es/node_modules/axios/lib/helpers/bind.js +0 -7
  49. package/dist/es/node_modules/axios/lib/helpers/buildURL.js +0 -63
  50. package/dist/es/node_modules/axios/lib/helpers/callbackify.js +0 -18
  51. package/dist/es/node_modules/axios/lib/helpers/combineURLs.js +0 -15
  52. package/dist/es/node_modules/axios/lib/helpers/cookies.js +0 -52
  53. package/dist/es/node_modules/axios/lib/helpers/formDataToJSON.js +0 -90
  54. package/dist/es/node_modules/axios/lib/helpers/formDataToStream.js +0 -113
  55. package/dist/es/node_modules/axios/lib/helpers/fromDataURI.js +0 -53
  56. package/dist/es/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -15
  57. package/dist/es/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
  58. package/dist/es/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -67
  59. package/dist/es/node_modules/axios/lib/helpers/parseHeaders.js +0 -55
  60. package/dist/es/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
  61. package/dist/es/node_modules/axios/lib/helpers/readBlob.js +0 -17
  62. package/dist/es/node_modules/axios/lib/helpers/speedometer.js +0 -53
  63. package/dist/es/node_modules/axios/lib/helpers/spread.js +0 -28
  64. package/dist/es/node_modules/axios/lib/helpers/throttle.js +0 -31
  65. package/dist/es/node_modules/axios/lib/helpers/toFormData.js +0 -216
  66. package/dist/es/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -18
  67. package/dist/es/node_modules/axios/lib/helpers/validator.js +0 -91
  68. package/dist/es/node_modules/axios/lib/platform/node/classes/FormData.js +0 -5
  69. package/dist/es/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -5
  70. package/dist/es/node_modules/axios/lib/platform/node/index.js +0 -14
  71. package/dist/es/node_modules/axios/lib/utils.js +0 -723
  72. package/dist/es/node_modules/combined-stream/lib/combined_stream.js +0 -214
  73. package/dist/es/node_modules/debug/node_modules/ms/index.js +0 -172
  74. package/dist/es/node_modules/debug/src/browser.js +0 -283
  75. package/dist/es/node_modules/debug/src/common.js +0 -285
  76. package/dist/es/node_modules/debug/src/index.js +0 -23
  77. package/dist/es/node_modules/debug/src/node.js +0 -280
  78. package/dist/es/node_modules/delayed-stream/lib/delayed_stream.js +0 -112
  79. package/dist/es/node_modules/follow-redirects/debug.js +0 -19
  80. package/dist/es/node_modules/follow-redirects/index.js +0 -647
  81. package/dist/es/node_modules/form-data/lib/form_data.js +0 -519
  82. package/dist/es/node_modules/form-data/lib/populate.js +0 -12
  83. package/dist/es/node_modules/has-flag/index.js +0 -17
  84. package/dist/es/node_modules/mime-db/db.json.js +0 -10704
  85. package/dist/es/node_modules/mime-db/index.js +0 -16
  86. package/dist/es/node_modules/mime-types/index.js +0 -193
  87. package/dist/es/node_modules/proxy-from-env/index.js +0 -110
  88. package/dist/es/node_modules/supports-color/index.js +0 -148
@@ -52,7 +52,7 @@ var Button = function (props) {
52
52
  }
53
53
  });
54
54
  }); };
55
- return (jsx(Button$1, __assign({ className: classes, type: type, disabled: disabled || !isAuth, size: size, danger: danger, onClick: myOnClick, loading: loading || innerLoading }, resetProps)));
55
+ return !isAuth ? null : (jsx(Button$1, __assign({ className: classes, type: type, disabled: disabled || !isAuth, size: size, danger: danger, onClick: myOnClick, loading: loading || innerLoading }, resetProps)));
56
56
  };
57
57
  var ButtonCom = Button;
58
58
  ButtonCom.displayName = "ZTXK_WEBUI_Button";
@@ -1,11 +1,9 @@
1
- import { AxiosRequestConfig } from 'axios';
2
1
  import React__default from 'react';
3
2
  import { IButtonProps } from './interface.js';
4
3
 
5
4
  interface IButtonDownloadProps extends Omit<IButtonProps, "onClick"> {
6
5
  /** 导出的接口方法 */
7
6
  fetchHandle?: () => Promise<any>;
8
- axiosRequestConfig?: AxiosRequestConfig;
9
7
  /** 代理点击事件 如果下载结束后 还需做别的处理 */
10
8
  onClick?: (e: any, info: any) => void;
11
9
  }
@@ -2,21 +2,27 @@ import { __rest, __assign, __awaiter, __generator } from '../_virtual/_tslib.js'
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { useState } from 'react';
4
4
  import ButtonCom from './button.js';
5
- import { exportBolb, getToken } from 'zmdms-utils';
6
- import '../config/ZtxkContext.js';
7
- import useBaseContext from '../config/useBaseContext.js';
8
- import axios from '../node_modules/axios/lib/axios.js';
5
+ import { exportBolb } from 'zmdms-utils';
9
6
  import { message } from 'antd';
10
7
 
11
- function downloadFile(config) {
12
- var token = getToken();
13
- var headers = config.headers, axiosConfig = __rest(config, ["headers"]);
14
- return axios(__assign({ headers: __assign({ "Zmdms-Auth": token }, headers), responseType: "blob" }, axiosConfig));
15
- }
8
+ // export function downloadFile(config: AxiosRequestConfig) {
9
+ // const token = getToken();
10
+ // const { headers, ...axiosConfig } = config;
11
+ // return axios({
12
+ // headers: {
13
+ // "Zmdms-Auth": token,
14
+ // ...headers,
15
+ // },
16
+ // responseType: "blob",
17
+ // ...axiosConfig,
18
+ // });
19
+ // }
16
20
  var ButtonExport = function (props) {
17
- var fetchHandle = props.fetchHandle, _a = props.axiosRequestConfig, axiosRequestConfig = _a === void 0 ? {} : _a, onClick = props.onClick, resetProps = __rest(props, ["fetchHandle", "axiosRequestConfig", "onClick"]);
18
- var _b = useState(false), loading = _b[0], setLoading = _b[1];
19
- var apiBaseUrl = useBaseContext().apiBaseUrl;
21
+ var fetchHandle = props.fetchHandle,
22
+ // axiosRequestConfig = {},
23
+ onClick = props.onClick, resetProps = __rest(props, ["fetchHandle", "onClick"]);
24
+ var _a = useState(false), loading = _a[0], setLoading = _a[1];
25
+ // const { apiBaseUrl } = useBaseContext();
20
26
  var onClickHandle = function (e) { return __awaiter(void 0, void 0, void 0, function () {
21
27
  var res, err_1;
22
28
  return __generator(this, function (_a) {
@@ -25,18 +31,14 @@ var ButtonExport = function (props) {
25
31
  setLoading(true);
26
32
  _a.label = 1;
27
33
  case 1:
28
- _a.trys.push([1, 6, , 7]);
34
+ _a.trys.push([1, 4, , 5]);
29
35
  res = void 0;
30
36
  if (!fetchHandle) return [3 /*break*/, 3];
31
37
  return [4 /*yield*/, fetchHandle()];
32
38
  case 2:
33
39
  res = _a.sent();
34
- return [3 /*break*/, 5];
35
- case 3: return [4 /*yield*/, downloadFile(__assign({ baseURL: apiBaseUrl }, axiosRequestConfig))];
36
- case 4:
37
- res = _a.sent();
38
- _a.label = 5;
39
- case 5:
40
+ return [3 /*break*/, 3];
41
+ case 3:
40
42
  exportBolb(res)
41
43
  .then(function (r) {
42
44
  if (r.result) {
@@ -49,8 +51,8 @@ var ButtonExport = function (props) {
49
51
  message.error((err === null || err === void 0 ? void 0 : err.msg) || "导出失败!");
50
52
  });
51
53
  setLoading(false);
52
- return [3 /*break*/, 7];
53
- case 6:
54
+ return [3 /*break*/, 5];
55
+ case 4:
54
56
  err_1 = _a.sent();
55
57
  setLoading(false);
56
58
  if (typeof err_1 === "string") {
@@ -60,7 +62,7 @@ var ButtonExport = function (props) {
60
62
  message.error((err_1 === null || err_1 === void 0 ? void 0 : err_1.msg) || "导出失败!");
61
63
  }
62
64
  return [2 /*return*/, err_1];
63
- case 7: return [2 /*return*/];
65
+ case 5: return [2 /*return*/];
64
66
  }
65
67
  });
66
68
  }); };
@@ -68,4 +70,4 @@ var ButtonExport = function (props) {
68
70
  };
69
71
  ButtonExport.displayName = "ZTXK_WEBUI_ButtonExport";
70
72
 
71
- export { ButtonExport as default, downloadFile };
73
+ export { ButtonExport as default };
@@ -1 +1 @@
1
- .ztxk-form__item--wrap{align-items:center;display:flex;padding-bottom:10px;padding-right:10px;position:relative}.ztxk-form__item--wrap .ztxk-form__item--wrap--tips{color:#f88;position:absolute;right:10px;top:2px}.ztxk-form__item--wrap .ant-form-item{margin-bottom:0}.ztxk-form__item--wrap .ant-form-item .ant-form-item-explain{display:none}.ztxk-form__item--wrap .ant-form-item .ant-picker-focused{box-shadow:none}.ztxk-form__item--wrap .ant-form-item .ant-select{margin-left:0}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper-focused,.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper:focus,.ztxk-form__item--wrap .ant-form-item .ant-input-focused,.ztxk-form__item--wrap .ant-form-item .ant-input-number-focused,.ztxk-form__item--wrap .ant-form-item .ant-input-number:focus,.ztxk-form__item--wrap .ant-form-item .ant-input:focus,.ztxk-form__item--wrap .ant-form-item .ant-select-focused.ant-select-single:not(.ant-select-customize-input) .ant-select-selector,.ztxk-form__item--wrap .ant-form-item .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector{box-shadow:none}.ztxk-form__item--wrap .ant-form-item:focus-within .ant-checkbox-group,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-form-item-label,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-form-item-label label,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-input,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-input-number,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-picker,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-radio-group,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-select-selector,.ztxk-form__item--wrap .ant-form-item:hover .ant-checkbox-group,.ztxk-form__item--wrap .ant-form-item:hover .ant-form-item-label,.ztxk-form__item--wrap .ant-form-item:hover .ant-form-item-label label,.ztxk-form__item--wrap .ant-form-item:hover .ant-input,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-number,.ztxk-form__item--wrap .ant-form-item:hover .ant-picker,.ztxk-form__item--wrap .ant-form-item:hover .ant-radio-group,.ztxk-form__item--wrap .ant-form-item:hover .ant-select-selector{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item:focus-within .ant-input-disabled,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-input-number-disabled,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-disabled,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-number-disabled{border-color:#cdd9e6!important}.ztxk-form__item--wrap .ant-form-item:focus-within .ztxk-form--detault-dom,.ztxk-form__item--wrap .ant-form-item:hover .ztxk-form--detault-dom{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item .ant-input-disabled,.ztxk-form__item--wrap .ant-form-item .ant-input-number-disabled{background-color:#f5f5f5}.ztxk-form__item--wrap .ant-form-item .ant-form-item-label{background-color:#fff;border:1px solid #cdd9e6;border-radius:4px 0 0 4px;border-right:0;color:#768696;font-size:12px;text-align:right;transition:border .3s}.ztxk-form__item--wrap .ant-form-item .ant-form-item-label label{font-size:12px;height:30px;line-height:30px;padding-left:6px}.ztxk-form__item--wrap .ant-form-item .ant-select-selector{border-left:none;border-radius:0 4px 4px 0}.ztxk-form__item--wrap .ant-form-item .ant-select-focused.ant-select-single:not(.ant-select-customize-input) .ant-select-selector{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper{border-left:none;border-radius:0 4px 4px 0}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper .ant-input{font-size:13px;height:auto}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper:hover,.ztxk-form__item--wrap .ant-form-item .ant-input-number:hover{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item .ant-input-number{border-left:none;border-radius:0 4px 4px 0;height:32px;width:100%}.ztxk-form__item--wrap .ant-form-item .ant-input-number:focus{border-color:#1566d2;border-left:1px solid #1566d2}.ztxk-form__item--wrap .ant-form-item .ant-picker{border-left:none;border-radius:0 4px 4px 0;width:100%}.ztxk-form__item--wrap .ant-form-item .ant-picker.ant-picker-focused{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item .ant-picker .ant-picker-input>input{text-align:left}.ztxk-form__item--wrap .ant-form-item .ant-input{border-left:none;border-radius:0 4px 4px 0;height:32px}.ztxk-form__item--wrap .ant-form-item .ant-input-textarea .ant-input{height:auto}.ztxk-form__item--wrap .ant-form-item .ant-input-textarea.ant-input-textarea-show-count.ant-input-textarea-in-form-item:after{margin-bottom:0}.ztxk-form__item--wrap .ant-form-item .ant-select{width:100%}.ztxk-form__item--wrap .ant-form-item textarea{resize:none}.ztxk-form__item--wrap .ant-form-item .ant-checkbox-group,.ztxk-form__item--wrap .ant-form-item .ant-radio-group{align-items:center;border:1px solid #d9d9d9;border-left:none;border-radius:0 4px 4px 0;display:flex;min-height:32px;transition:all .3s}.ztxk-form__item--wrap .ant-form-item .ant-form-item-control{font-size:13px;width:calc(100% - 130px)}.ztxk-form__item--wrap .ant-form-item .ant-form-item-label,.ztxk-form__item--wrap .ant-form-item .ant-form-item-label label{background-color:none}.ztxk-form__item--wrap .ant-form-item .ant-form-item-label label>*,.ztxk-form__item--wrap .ant-form-item .ant-form-item-label>*{cursor:default}.ztxk-form__item--wrap .ant-form-item .ant-form-item-control-input-content,.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper,.ztxk-form__item--wrap .ant-form-item .ant-picker{min-height:32px}.ztxk-form__item--wrap .ant-form-item .ant-select-selector,.ztxk-form__item--wrap .ant-form-item .ant-select-single:not(.ant-select-customize-input) .ant-select-selector{min-height:32px;transition:all .3s}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper-focused,.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper:focus,.ztxk-form__item--wrap .ant-form-item .ant-input-focused,.ztxk-form__item--wrap .ant-form-item .ant-input:focus{border-color:#1566d2!important}.ztxk-form__item--wrap .ant-form-item:hover .ant-form-item-label,.ztxk-form__item--wrap .ant-form-item:hover .ant-form-item-label label,.ztxk-form__item--wrap .ant-form-item:hover .ant-input,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-affix-wrapper,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-number,.ztxk-form__item--wrap .ant-form-item:hover .ant-picker,.ztxk-form__item--wrap .ant-form-item:hover .ant-select-selector{border-color:#1566d2}.ztxk-form__item--wrap .ztxk-form__item--direction-column{border:1px solid #cdd9e6;border-radius:4px;transition:border .3s}.ztxk-form__item--wrap .ztxk-form__item--direction-column:hover{border-color:#1566d2}.ztxk-form__item--wrap .ztxk-form__item--direction-column>.ant-form-item-row{flex-direction:column}.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-form-item-label{border:none;border-radius:4px;text-align:left}.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-form-item-control{padding-left:10px;width:100%}.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-checkbox-group,.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-input,.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-input-number,.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-picker,.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-select-selector{border:none}.ztxk-form__item--wrap .ztxk-form__item{flex:1}.ztxk-form__item--wrap .ztxk-form__item--disabled .ant-form-item-label,.ztxk-form__item--wrap .ztxk-form__item--disabled .ant-form-item-label label,.ztxk-form__item--wrap .ztxk-form__item--disabled .ztxk-form--detault-dom{background-color:#f5f5f5;cursor:not-allowed}.ztxk-form__item--wrap .ztxk-form__item--disabled .ant-form-item-label label>*,.ztxk-form__item--wrap .ztxk-form__item--disabled .ant-form-item-label>*,.ztxk-form__item--wrap .ztxk-form__item--disabled .ztxk-form--detault-dom>*{cursor:not-allowed}.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-form-item-label,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-form-item-label label,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-input,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-input-affix-wrapper,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-input-number,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-picker,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-select-selector,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ztxk-form--detault-dom{border-color:#cdd9e6!important}.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-checkbox-group,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-form-item-label,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-form-item-label label,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-input,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-input-affix-wrapper,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-input-number,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-picker,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-radio-group,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-select-selector{border-left:1px solid #d9d9d9;border-radius:4px}.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-checkbox-group,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-radio-group{padding-left:11px}.ztxk-form__item--wrap .ztxk-form__item--hidden-border .ant-form-item-label,.ztxk-form__item--wrap .ztxk-form__item--hidden-border .ant-form-item-label label{border:none}.ztxk-form__item--wrap .ztxk-form__item--hidden-border .ant-checkbox-group,.ztxk-form__item--wrap .ztxk-form__item--hidden-border .ant-radio-group{border:none;min-height:32px}.ztxk-form__item--wrap .ztxk-form__item--single-select{color:red}.ztxk-form__item--wrap .ztxk-form__item--single-select .ant-form-item-control-input-content{background:#fff;border:none;line-height:32px;padding-left:11px;transition:border .3s}.ztxk-form__item--wrap .ztxk-form__item--single-show-border.pro-form__item--nolabel .ant-form-item-control-input-content{border-left:1px solid #d9d9d9;border-radius:4px}.ztxk-form__item--wrap .ztxk-form__item--single-show-border .ant-form-item-control-input-content{background:#fff;border:1px solid #d9d9d9;border-radius:4px;line-height:30px;padding-left:11px;transition:border .3s}.ztxk-form__item--wrap .ztxk-form__item--single-show-border .ant-form-item-control-input-content:hover{border-color:#1566d2}.ztxk-form__item--wrap .ztxk-form__item--stress .ant-form-item-label label{color:#f88}.ztxk-form__item--wrap .ztxk-form__item--custom .ztxk-form--detault-dom{padding:2px 11px}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-input,.ztxk-form__item--wrap .ztxk-form__item--custom .ant-input-number{border:1px solid #d9d9d9;border-radius:4px;height:26px}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-input-number-input{height:23px}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-select-selector{border:1px solid #d9d9d9;border-radius:4px;height:26px;min-height:26px!important}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-select-selector .ant-select-selection-search-input{height:26px}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-select-selector .ant-select-selection-item{line-height:23px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ztxk-form--detault-dom{padding:0 11px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-input,.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-input-number{border-bottom:none;border-radius:4px;border-top:none;height:30px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-input-number-input{height:30px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-select-selector{border:1px solid #d9d9d9;border-bottom:none;border-radius:4px;border-top:none;height:30px;min-height:30px!important}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-select-selector .ant-select-selection-search-input{height:30px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-select-selector .ant-select-selection-item{line-height:30px}
1
+ .ztxk-form__item--wrap{align-items:center;display:flex;padding-bottom:10px;padding-right:10px;position:relative}.ztxk-form__item--wrap .ztxk-form__item--wrap--tips{color:#f88;position:absolute;right:10px;top:2px}.ztxk-form__item--wrap .ant-form-item{margin-bottom:0}.ztxk-form__item--wrap .ant-form-item .ant-form-item-explain{display:none}.ztxk-form__item--wrap .ant-form-item .ant-picker-focused{box-shadow:none}.ztxk-form__item--wrap .ant-form-item .ant-select{margin-left:0}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper-focused,.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper:focus,.ztxk-form__item--wrap .ant-form-item .ant-input-focused,.ztxk-form__item--wrap .ant-form-item .ant-input-number-focused,.ztxk-form__item--wrap .ant-form-item .ant-input-number:focus,.ztxk-form__item--wrap .ant-form-item .ant-input:focus,.ztxk-form__item--wrap .ant-form-item .ant-select-focused.ant-select-single:not(.ant-select-customize-input) .ant-select-selector,.ztxk-form__item--wrap .ant-form-item .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector{box-shadow:none}.ztxk-form__item--wrap .ant-form-item:focus-within .ant-checkbox-group,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-form-item-label,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-form-item-label label,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-input,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-input-number,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-picker,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-radio-group,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-select-selector,.ztxk-form__item--wrap .ant-form-item:hover .ant-checkbox-group,.ztxk-form__item--wrap .ant-form-item:hover .ant-form-item-label,.ztxk-form__item--wrap .ant-form-item:hover .ant-form-item-label label,.ztxk-form__item--wrap .ant-form-item:hover .ant-input,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-number,.ztxk-form__item--wrap .ant-form-item:hover .ant-picker,.ztxk-form__item--wrap .ant-form-item:hover .ant-radio-group,.ztxk-form__item--wrap .ant-form-item:hover .ant-select-selector{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item:focus-within .ant-input-disabled,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-input-number-disabled,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-disabled,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-number-disabled{border-color:#cdd9e6!important}.ztxk-form__item--wrap .ant-form-item:focus-within .ztxk-form--detault-dom,.ztxk-form__item--wrap .ant-form-item:hover .ztxk-form--detault-dom{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item .ant-input-disabled,.ztxk-form__item--wrap .ant-form-item .ant-input-number-disabled{background-color:#f5f5f5}.ztxk-form__item--wrap .ant-form-item .ant-form-item-label{background-color:#fff;border:1px solid #cdd9e6;border-radius:4px 0 0 4px;border-right:0;color:#768696;font-size:12px;text-align:right;transition:border .3s}.ztxk-form__item--wrap .ant-form-item .ant-form-item-label label{font-size:12px;height:30px;line-height:30px;padding-left:6px}.ztxk-form__item--wrap .ant-form-item .ant-select-selector{border-left:none;border-radius:0 4px 4px 0}.ztxk-form__item--wrap .ant-form-item .ant-select-selector .ant-select-selection-item{width:100px}.ztxk-form__item--wrap .ant-form-item .ant-select-focused.ant-select-single:not(.ant-select-customize-input) .ant-select-selector{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper{border-left:none;border-radius:0 4px 4px 0}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper .ant-input{font-size:13px;height:auto}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper:hover,.ztxk-form__item--wrap .ant-form-item .ant-input-number:hover{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item .ant-input-number{border-left:none;border-radius:0 4px 4px 0;height:32px;width:100%}.ztxk-form__item--wrap .ant-form-item .ant-input-number:focus{border-color:#1566d2;border-left:1px solid #1566d2}.ztxk-form__item--wrap .ant-form-item .ant-picker{border-left:none;border-radius:0 4px 4px 0;width:100%}.ztxk-form__item--wrap .ant-form-item .ant-picker.ant-picker-focused{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item .ant-picker .ant-picker-input>input{text-align:left}.ztxk-form__item--wrap .ant-form-item .ant-input{border-left:none;border-radius:0 4px 4px 0;height:32px}.ztxk-form__item--wrap .ant-form-item .ant-input-textarea .ant-input{height:auto}.ztxk-form__item--wrap .ant-form-item .ant-input-textarea.ant-input-textarea-show-count.ant-input-textarea-in-form-item:after{margin-bottom:0}.ztxk-form__item--wrap .ant-form-item .ant-select{width:100%}.ztxk-form__item--wrap .ant-form-item textarea{resize:none}.ztxk-form__item--wrap .ant-form-item .ant-checkbox-group,.ztxk-form__item--wrap .ant-form-item .ant-radio-group{align-items:center;border:1px solid #d9d9d9;border-left:none;border-radius:0 4px 4px 0;display:flex;min-height:32px;transition:all .3s}.ztxk-form__item--wrap .ant-form-item .ant-form-item-control{font-size:13px;width:calc(100% - 130px)}.ztxk-form__item--wrap .ant-form-item .ant-form-item-label,.ztxk-form__item--wrap .ant-form-item .ant-form-item-label label{background-color:none}.ztxk-form__item--wrap .ant-form-item .ant-form-item-label label>*,.ztxk-form__item--wrap .ant-form-item .ant-form-item-label>*{cursor:default}.ztxk-form__item--wrap .ant-form-item .ant-form-item-control-input-content,.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper,.ztxk-form__item--wrap .ant-form-item .ant-picker{min-height:32px}.ztxk-form__item--wrap .ant-form-item .ant-select-selector,.ztxk-form__item--wrap .ant-form-item .ant-select-single:not(.ant-select-customize-input) .ant-select-selector{min-height:32px;transition:all .3s}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper-focused,.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper:focus,.ztxk-form__item--wrap .ant-form-item .ant-input-focused,.ztxk-form__item--wrap .ant-form-item .ant-input:focus{border-color:#1566d2!important}.ztxk-form__item--wrap .ant-form-item:hover .ant-form-item-label,.ztxk-form__item--wrap .ant-form-item:hover .ant-form-item-label label,.ztxk-form__item--wrap .ant-form-item:hover .ant-input,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-affix-wrapper,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-number,.ztxk-form__item--wrap .ant-form-item:hover .ant-picker,.ztxk-form__item--wrap .ant-form-item:hover .ant-select-selector{border-color:#1566d2}.ztxk-form__item--wrap .ztxk-form__item--direction-column{border:1px solid #cdd9e6;border-radius:4px;transition:border .3s}.ztxk-form__item--wrap .ztxk-form__item--direction-column:hover{border-color:#1566d2}.ztxk-form__item--wrap .ztxk-form__item--direction-column>.ant-form-item-row{flex-direction:column}.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-form-item-label{border:none;border-radius:4px;text-align:left}.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-form-item-control{padding-left:10px;width:100%}.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-checkbox-group,.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-input,.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-input-number,.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-picker,.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-select-selector{border:none}.ztxk-form__item--wrap .ztxk-form__item{flex:1}.ztxk-form__item--wrap .ztxk-form__item--disabled .ant-form-item-label,.ztxk-form__item--wrap .ztxk-form__item--disabled .ant-form-item-label label,.ztxk-form__item--wrap .ztxk-form__item--disabled .ztxk-form--detault-dom{background-color:#f5f5f5;cursor:not-allowed}.ztxk-form__item--wrap .ztxk-form__item--disabled .ant-form-item-label label>*,.ztxk-form__item--wrap .ztxk-form__item--disabled .ant-form-item-label>*,.ztxk-form__item--wrap .ztxk-form__item--disabled .ztxk-form--detault-dom>*{cursor:not-allowed}.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-form-item-label,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-form-item-label label,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-input,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-input-affix-wrapper,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-input-number,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-picker,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-select-selector,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ztxk-form--detault-dom{border-color:#cdd9e6!important}.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-checkbox-group,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-form-item-label,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-form-item-label label,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-input,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-input-affix-wrapper,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-input-number,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-picker,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-radio-group,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-select-selector{border-left:1px solid #d9d9d9;border-radius:4px}.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-checkbox-group,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-radio-group{padding-left:11px}.ztxk-form__item--wrap .ztxk-form__item--hidden-border .ant-form-item-label,.ztxk-form__item--wrap .ztxk-form__item--hidden-border .ant-form-item-label label{border:none}.ztxk-form__item--wrap .ztxk-form__item--hidden-border .ant-checkbox-group,.ztxk-form__item--wrap .ztxk-form__item--hidden-border .ant-radio-group{border:none;min-height:32px}.ztxk-form__item--wrap .ztxk-form__item--single-select{color:red}.ztxk-form__item--wrap .ztxk-form__item--single-select .ant-form-item-control-input-content{background:#fff;border:none;line-height:32px;padding-left:11px;transition:border .3s}.ztxk-form__item--wrap .ztxk-form__item--single-show-border.pro-form__item--nolabel .ant-form-item-control-input-content{border-left:1px solid #d9d9d9;border-radius:4px}.ztxk-form__item--wrap .ztxk-form__item--single-show-border .ant-form-item-control-input-content{background:#fff;border:1px solid #d9d9d9;border-radius:4px;line-height:30px;padding-left:11px;transition:border .3s}.ztxk-form__item--wrap .ztxk-form__item--single-show-border .ant-form-item-control-input-content:hover{border-color:#1566d2}.ztxk-form__item--wrap .ztxk-form__item--stress .ant-form-item-label label{color:#f88}.ztxk-form__item--wrap .ztxk-form__item--custom .ztxk-form--detault-dom{padding:2px 11px}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-input,.ztxk-form__item--wrap .ztxk-form__item--custom .ant-input-number{border:1px solid #d9d9d9;border-radius:4px;height:26px}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-input-number-input{height:23px}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-select-selector{border:1px solid #d9d9d9;border-radius:4px;height:26px;min-height:26px!important}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-select-selector .ant-select-selection-search-input{height:26px}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-select-selector .ant-select-selection-item{line-height:23px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ztxk-form--detault-dom{padding:0 11px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-input,.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-input-number{border-bottom:none;border-radius:4px;border-top:none;height:30px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-input-number-input{height:30px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-select-selector{border:1px solid #d9d9d9;border-bottom:none;border-radius:4px;border-top:none;height:30px;min-height:30px!important}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-select-selector .ant-select-selection-search-input{height:30px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-select-selector .ant-select-selection-item{line-height:30px}
@@ -185,7 +185,7 @@ var EnhanceCell = function (props) {
185
185
  }), style: {
186
186
  lineHeight: resetEditableConfigProps.rows
187
187
  ? "".concat(26 * resetEditableConfigProps.rows, "px")
188
- : "30px",
188
+ : "22px",
189
189
  }, title: val, onClick: resultDisabled
190
190
  ? undefined
191
191
  : function () {
@@ -195,7 +195,13 @@ var EnhanceCell = function (props) {
195
195
  }
196
196
  return (jsx("td", __assign({ ref: tdRef }, resetProps, { onClick: function () {
197
197
  setIsCurrent(true);
198
- } }, { children: jsx(Popover, __assign({ trigger: "click", content: showPopover.message, open: showPopover.open, overlayClassName: "error-popover", onOpenChange: function (open) {
198
+ } }, { children: jsx(Popover
199
+ // 将 click 改成 contextMenu
200
+ // click 会导致 Radio.Group元素 的点击文本选不中选项
201
+ , __assign({
202
+ // 将 click 改成 contextMenu
203
+ // click 会导致 Radio.Group元素 的点击文本选不中选项
204
+ trigger: "contextMenu", content: showPopover.message, open: showPopover.open, overlayClassName: "error-popover", onOpenChange: function (open) {
199
205
  setShowPopover(function (pre) {
200
206
  return __assign(__assign({}, pre), { open: open });
201
207
  });