@hw-component/form 0.0.1-bate → 0.0.1-beta

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 (229) hide show
  1. package/es/CheckboxGroup/CheckBox/index.js +24 -16
  2. package/es/CheckboxGroup/hooks.d.ts +9 -3
  3. package/es/CheckboxGroup/hooks.js +115 -64
  4. package/es/CheckboxGroup/index.d.ts +6 -1
  5. package/es/CheckboxGroup/index.js +117 -56
  6. package/es/CheckboxGroup/modal.d.ts +9 -8
  7. package/es/Form/Context/FormConfigProvider.js +64 -19
  8. package/es/Form/Context/index.d.ts +4 -1
  9. package/es/Form/Context/index.js +3 -3
  10. package/es/Form/FormItem/BasicItem.js +80 -42
  11. package/es/Form/FormItem/Helper.d.ts +1 -1
  12. package/es/Form/FormItem/Helper.js +17 -9
  13. package/es/Form/FormItem/RegularFormItem.js +11 -8
  14. package/es/Form/FormItem/UpFormItem.d.ts +6 -1
  15. package/es/Form/FormItem/UpFormItem.js +27 -17
  16. package/es/Form/FormItem/hooks.d.ts +21 -4
  17. package/es/Form/FormItem/hooks.js +12 -9
  18. package/es/Form/FormItem/index.js +5 -5
  19. package/es/Form/HFormConnect.d.ts +9 -1
  20. package/es/Form/HFormConnect.js +94 -26
  21. package/es/Form/InitSet.d.ts +1 -1
  22. package/es/Form/InitSet.js +5 -5
  23. package/es/Form/Label.d.ts +4 -4
  24. package/es/Form/Label.js +36 -19
  25. package/es/Form/config.d.ts +100 -22
  26. package/es/Form/config.js +19 -19
  27. package/es/Form/hooks/index.d.ts +12 -5
  28. package/es/Form/hooks/index.js +65 -49
  29. package/es/Form/hooks/useHForm.js +233 -95
  30. package/es/Form/hooks/useInitConfigData.d.ts +4 -1
  31. package/es/Form/hooks/useInitConfigData.js +143 -61
  32. package/es/Form/index.d.ts +11 -1
  33. package/es/Form/index.js +71 -40
  34. package/es/Form/modal.d.ts +92 -51
  35. package/es/Input/ButtonInput.js +73 -51
  36. package/es/Input/InputNumber.js +21 -12
  37. package/es/Input/SelectInput.d.ts +16 -4
  38. package/es/Input/SelectInput.js +113 -56
  39. package/es/Input/defaultConfig.d.ts +3 -3
  40. package/es/Input/defaultConfig.js +2 -2
  41. package/es/Input/index.js +7 -7
  42. package/es/Input/modal.d.ts +15 -11
  43. package/es/PageHandler/ErrorComponent.js +47 -25
  44. package/es/PageHandler/LoadingComponent.js +17 -13
  45. package/es/PageHandler/index.js +7 -7
  46. package/es/PageHandler/modal.d.ts +4 -4
  47. package/es/RadioGroup/index.d.ts +12 -5
  48. package/es/RadioGroup/index.js +46 -33
  49. package/es/Select/components/AllSelect.d.ts +1 -1
  50. package/es/Select/components/AllSelect.js +40 -18
  51. package/es/Select/components/CheckBoxOption.d.ts +6 -3
  52. package/es/Select/components/CheckBoxOption.js +12 -7
  53. package/es/Select/components/DropdownComponent.d.ts +4 -4
  54. package/es/Select/components/DropdownComponent.js +30 -17
  55. package/es/Select/components/NoFindItem.d.ts +1 -1
  56. package/es/Select/components/NoFindItem.js +11 -7
  57. package/es/Select/components/NotFoundContent.d.ts +2 -2
  58. package/es/Select/components/NotFoundContent.js +49 -27
  59. package/es/Select/defaultConfig.d.ts +1 -1
  60. package/es/Select/defaultConfig.js +20 -16
  61. package/es/Select/hooks/changeHooks.d.ts +2 -2
  62. package/es/Select/hooks/changeHooks.js +147 -71
  63. package/es/Select/hooks/norHooks.d.ts +27 -9
  64. package/es/Select/hooks/norHooks.js +51 -39
  65. package/es/Select/index.d.ts +22 -1
  66. package/es/Select/index.js +124 -65
  67. package/es/Select/modal.d.ts +15 -15
  68. package/es/Select/utils.js +60 -15
  69. package/es/Submit/index.d.ts +9 -3
  70. package/es/Submit/index.js +18 -13
  71. package/es/Switch/index.d.ts +4 -4
  72. package/es/Switch/index.js +46 -20
  73. package/es/TDPicker/RangePicker.d.ts +8 -3
  74. package/es/TDPicker/RangePicker.js +138 -62
  75. package/es/TDPicker/TimePicker.d.ts +6 -1
  76. package/es/TDPicker/TimePicker.js +19 -13
  77. package/es/TDPicker/hooks.d.ts +42 -22
  78. package/es/TDPicker/hooks.js +106 -72
  79. package/es/TDPicker/index.d.ts +7 -1
  80. package/es/TDPicker/index.js +20 -14
  81. package/es/TDPicker/modal.d.ts +21 -16
  82. package/es/Upload/Btn.d.ts +5 -1
  83. package/es/Upload/Btn.js +35 -19
  84. package/es/Upload/MediaTypeEle/TypeEle.d.ts +10 -5
  85. package/es/Upload/MediaTypeEle/TypeEle.js +31 -23
  86. package/es/Upload/MediaTypeEle/index.d.ts +5 -1
  87. package/es/Upload/MediaTypeEle/index.js +21 -18
  88. package/es/Upload/Preview/index.d.ts +5 -1
  89. package/es/Upload/Preview/index.js +17 -13
  90. package/es/Upload/UrlUpload/index.d.ts +7 -1
  91. package/es/Upload/UrlUpload/index.js +72 -51
  92. package/es/Upload/enums.d.ts +3 -3
  93. package/es/Upload/enums.js +3 -3
  94. package/es/Upload/hooks/change.d.ts +8 -1
  95. package/es/Upload/hooks/change.js +115 -58
  96. package/es/Upload/hooks/customRequest.d.ts +5 -1
  97. package/es/Upload/hooks/customRequest.js +63 -46
  98. package/es/Upload/hooks/propsMaker.d.ts +5 -1
  99. package/es/Upload/hooks/propsMaker.js +52 -13
  100. package/es/Upload/index.d.ts +3 -1
  101. package/es/Upload/index.js +131 -61
  102. package/es/Upload/modal.d.ts +17 -15
  103. package/es/Upload/util.d.ts +8 -2
  104. package/es/Upload/util.js +15 -7
  105. package/es/config.js +34 -31
  106. package/es/hooks/index.d.ts +14 -7
  107. package/es/hooks/index.js +124 -49
  108. package/es/index.d.ts +98 -16
  109. package/es/index.js +22 -5
  110. package/es/modal.d.ts +6 -6
  111. package/lib/CheckboxGroup/CheckBox/index.js +26 -18
  112. package/lib/CheckboxGroup/hooks.d.ts +9 -3
  113. package/lib/CheckboxGroup/hooks.js +116 -65
  114. package/lib/CheckboxGroup/index.d.ts +6 -1
  115. package/lib/CheckboxGroup/index.js +119 -58
  116. package/lib/CheckboxGroup/modal.d.ts +9 -8
  117. package/lib/Form/Context/FormConfigProvider.js +66 -21
  118. package/lib/Form/Context/index.d.ts +4 -1
  119. package/lib/Form/Context/index.js +4 -4
  120. package/lib/Form/FormItem/BasicItem.js +82 -44
  121. package/lib/Form/FormItem/Helper.d.ts +1 -1
  122. package/lib/Form/FormItem/Helper.js +19 -11
  123. package/lib/Form/FormItem/RegularFormItem.js +13 -10
  124. package/lib/Form/FormItem/UpFormItem.d.ts +6 -1
  125. package/lib/Form/FormItem/UpFormItem.js +29 -19
  126. package/lib/Form/FormItem/hooks.d.ts +21 -4
  127. package/lib/Form/FormItem/hooks.js +13 -10
  128. package/lib/Form/FormItem/index.js +7 -7
  129. package/lib/Form/HFormConnect.d.ts +9 -1
  130. package/lib/Form/HFormConnect.js +96 -28
  131. package/lib/Form/InitSet.d.ts +1 -1
  132. package/lib/Form/InitSet.js +7 -7
  133. package/lib/Form/Label.d.ts +4 -4
  134. package/lib/Form/Label.js +41 -21
  135. package/lib/Form/config.d.ts +100 -22
  136. package/lib/Form/config.js +21 -21
  137. package/lib/Form/hooks/index.d.ts +12 -5
  138. package/lib/Form/hooks/index.js +66 -50
  139. package/lib/Form/hooks/useHForm.js +235 -97
  140. package/lib/Form/hooks/useInitConfigData.d.ts +4 -1
  141. package/lib/Form/hooks/useInitConfigData.js +144 -63
  142. package/lib/Form/index.d.ts +11 -1
  143. package/lib/Form/index.js +73 -42
  144. package/lib/Form/modal.d.ts +92 -51
  145. package/lib/Input/ButtonInput.js +75 -53
  146. package/lib/Input/InputNumber.js +23 -14
  147. package/lib/Input/SelectInput.d.ts +16 -4
  148. package/lib/Input/SelectInput.js +125 -60
  149. package/lib/Input/defaultConfig.d.ts +3 -3
  150. package/lib/Input/defaultConfig.js +3 -3
  151. package/lib/Input/index.js +9 -9
  152. package/lib/Input/modal.d.ts +15 -11
  153. package/lib/PageHandler/ErrorComponent.js +49 -27
  154. package/lib/PageHandler/LoadingComponent.js +19 -15
  155. package/lib/PageHandler/index.js +9 -9
  156. package/lib/PageHandler/modal.d.ts +4 -4
  157. package/lib/RadioGroup/index.d.ts +12 -5
  158. package/lib/RadioGroup/index.js +48 -35
  159. package/lib/Select/components/AllSelect.d.ts +1 -1
  160. package/lib/Select/components/AllSelect.js +42 -20
  161. package/lib/Select/components/CheckBoxOption.d.ts +6 -3
  162. package/lib/Select/components/CheckBoxOption.js +14 -9
  163. package/lib/Select/components/DropdownComponent.d.ts +4 -4
  164. package/lib/Select/components/DropdownComponent.js +32 -19
  165. package/lib/Select/components/NoFindItem.d.ts +1 -1
  166. package/lib/Select/components/NoFindItem.js +13 -9
  167. package/lib/Select/components/NotFoundContent.d.ts +2 -2
  168. package/lib/Select/components/NotFoundContent.js +51 -29
  169. package/lib/Select/defaultConfig.d.ts +1 -1
  170. package/lib/Select/defaultConfig.js +21 -17
  171. package/lib/Select/hooks/changeHooks.d.ts +2 -2
  172. package/lib/Select/hooks/changeHooks.js +148 -72
  173. package/lib/Select/hooks/norHooks.d.ts +27 -9
  174. package/lib/Select/hooks/norHooks.js +52 -40
  175. package/lib/Select/index.d.ts +22 -1
  176. package/lib/Select/index.js +128 -67
  177. package/lib/Select/modal.d.ts +15 -15
  178. package/lib/Select/utils.js +61 -16
  179. package/lib/Submit/index.d.ts +9 -3
  180. package/lib/Submit/index.js +20 -15
  181. package/lib/Switch/index.d.ts +4 -4
  182. package/lib/Switch/index.js +48 -22
  183. package/lib/TDPicker/RangePicker.d.ts +8 -3
  184. package/lib/TDPicker/RangePicker.js +136 -64
  185. package/lib/TDPicker/TimePicker.d.ts +6 -1
  186. package/lib/TDPicker/TimePicker.js +21 -15
  187. package/lib/TDPicker/hooks.d.ts +42 -22
  188. package/lib/TDPicker/hooks.js +98 -72
  189. package/lib/TDPicker/index.d.ts +7 -1
  190. package/lib/TDPicker/index.js +22 -16
  191. package/lib/TDPicker/modal.d.ts +21 -16
  192. package/lib/Upload/Btn.d.ts +5 -1
  193. package/lib/Upload/Btn.js +37 -21
  194. package/lib/Upload/MediaTypeEle/TypeEle.d.ts +10 -5
  195. package/lib/Upload/MediaTypeEle/TypeEle.js +33 -25
  196. package/lib/Upload/MediaTypeEle/index.d.ts +5 -1
  197. package/lib/Upload/MediaTypeEle/index.js +23 -20
  198. package/lib/Upload/Preview/index.d.ts +5 -1
  199. package/lib/Upload/Preview/index.js +19 -15
  200. package/lib/Upload/UrlUpload/index.d.ts +7 -1
  201. package/lib/Upload/UrlUpload/index.js +74 -53
  202. package/lib/Upload/enums.d.ts +3 -3
  203. package/lib/Upload/enums.js +4 -4
  204. package/lib/Upload/hooks/change.d.ts +8 -1
  205. package/lib/Upload/hooks/change.js +116 -59
  206. package/lib/Upload/hooks/customRequest.d.ts +5 -1
  207. package/lib/Upload/hooks/customRequest.js +64 -47
  208. package/lib/Upload/hooks/propsMaker.d.ts +5 -1
  209. package/lib/Upload/hooks/propsMaker.js +55 -15
  210. package/lib/Upload/index.d.ts +3 -1
  211. package/lib/Upload/index.js +133 -63
  212. package/lib/Upload/modal.d.ts +17 -15
  213. package/lib/Upload/util.d.ts +8 -2
  214. package/lib/Upload/util.js +16 -8
  215. package/lib/config.js +35 -32
  216. package/lib/hooks/index.d.ts +14 -7
  217. package/lib/hooks/index.js +125 -50
  218. package/lib/index.d.ts +98 -16
  219. package/lib/index.js +5 -5
  220. package/lib/modal.d.ts +6 -6
  221. package/package.json +2 -2
  222. package/src/components/CheckboxGroup/index.tsx +2 -2
  223. package/src/components/Form/FormItem/Helper.tsx +3 -4
  224. package/src/components/Form/HFormConnect.tsx +6 -2
  225. package/src/components/Form/hooks/useHForm.ts +59 -10
  226. package/src/components/Form/modal.ts +12 -8
  227. package/src/components/TDPicker/RangePicker.tsx +7 -5
  228. package/src/components/TDPicker/modal.ts +1 -0
  229. package/src/pages/Form/index.tsx +2 -2
@@ -1,14 +1,18 @@
1
1
  // welcome to hoo hoo hoo
2
- import _concatInstanceProperty from '@babel/runtime-corejs3/core-js/instance/concat';
3
- import { Space, Checkbox } from 'antd';
4
- import { itemOpProvider } from '../utils.js';
5
- import { useClassName } from '../../hooks/index.js';
6
- import React from 'react';
2
+ import _concatInstanceProperty from "@babel/runtime-corejs3/core-js/instance/concat";
3
+ import { Space, Checkbox } from "antd";
4
+ import { itemOpProvider } from "../utils.js";
5
+ import { useClassName } from "../../hooks/index.js";
6
+ import React from "react";
7
7
 
8
8
  var useRootClassName = function useRootClassName(checked) {
9
9
  var _context;
10
10
  var norClassNames = ["select-item", "select-item-option"];
11
- return checked ? _concatInstanceProperty(_context = []).call(_context, norClassNames, ["select-item-option-selected"]) : norClassNames;
11
+ return checked
12
+ ? _concatInstanceProperty((_context = [])).call(_context, norClassNames, [
13
+ "select-item-option-selected",
14
+ ])
15
+ : norClassNames;
12
16
  };
13
17
  var Index = function Index(_ref) {
14
18
  var allSelect = _ref.allSelect,
@@ -20,30 +24,48 @@ var Index = function Index(_ref) {
20
24
  _ref$fieldNames = _ref.fieldNames,
21
25
  fieldNames = _ref$fieldNames === void 0 ? {} : _ref$fieldNames,
22
26
  children = _ref.children;
23
- var opLen = (options === null || options === void 0 ? void 0 : options.length) || 0;
24
- var checked = (value === null || value === void 0 ? void 0 : value.length) >= opLen;
27
+ var opLen =
28
+ (options === null || options === void 0 ? void 0 : options.length) || 0;
29
+ var checked =
30
+ (value === null || value === void 0 ? void 0 : value.length) >= opLen;
25
31
  var classNames = useRootClassName(checked);
26
32
  var optionsClassName = useClassName(classNames);
27
33
  var allCheckBox = useClassName("hw-all-check-box");
28
34
  var change = function change() {
29
35
  if (!checked) {
30
36
  var subItemOps = itemOpProvider(options, fieldNames);
31
- onChange === null || onChange === void 0 ? void 0 : onChange(options, subItemOps);
37
+ onChange === null || onChange === void 0
38
+ ? void 0
39
+ : onChange(options, subItemOps);
32
40
  return;
33
41
  }
34
42
  onChange === null || onChange === void 0 ? void 0 : onChange([], []);
35
43
  };
36
44
  if (!allSelect || mode !== "multiple" || serviceSearch) {
37
- return /*#__PURE__*/React.createElement(React.Fragment, null, children);
45
+ return /*#__PURE__*/ React.createElement(React.Fragment, null, children);
38
46
  }
39
- return /*#__PURE__*/React.createElement("div", {
40
- className: allCheckBox
41
- }, /*#__PURE__*/React.createElement("div", {
42
- className: optionsClassName,
43
- onClick: change
44
- }, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Checkbox, {
45
- checked: checked
46
- }), "\u5168\u90E8")), children);
47
+ return /*#__PURE__*/ React.createElement(
48
+ "div",
49
+ {
50
+ className: allCheckBox,
51
+ },
52
+ /*#__PURE__*/ React.createElement(
53
+ "div",
54
+ {
55
+ className: optionsClassName,
56
+ onClick: change,
57
+ },
58
+ /*#__PURE__*/ React.createElement(
59
+ Space,
60
+ null,
61
+ /*#__PURE__*/ React.createElement(Checkbox, {
62
+ checked: checked,
63
+ }),
64
+ "\u5168\u90E8"
65
+ )
66
+ ),
67
+ children
68
+ );
47
69
  };
48
70
 
49
71
  export { Index as default };
@@ -1,7 +1,10 @@
1
1
  import React from "react";
2
2
  interface ICheckBoxOptionProps {
3
- label?: React.ReactNode;
4
- checked: boolean;
3
+ label?: React.ReactNode;
4
+ checked: boolean;
5
5
  }
6
- declare const _default: ({ label, checked }: ICheckBoxOptionProps) => JSX.Element;
6
+ declare const _default: ({
7
+ label,
8
+ checked,
9
+ }: ICheckBoxOptionProps) => JSX.Element;
7
10
  export default _default;
@@ -1,14 +1,19 @@
1
1
  // welcome to hoo hoo hoo
2
- import { Space, Checkbox } from 'antd';
3
- import React from 'react';
2
+ import { Space, Checkbox } from "antd";
3
+ import React from "react";
4
4
 
5
- var CheckBoxOption = (function (_ref) {
5
+ var CheckBoxOption = function (_ref) {
6
6
  var label = _ref.label,
7
7
  checked = _ref.checked;
8
- return /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Checkbox, {
9
- checked: checked
10
- }), label);
11
- });
8
+ return /*#__PURE__*/ React.createElement(
9
+ Space,
10
+ null,
11
+ /*#__PURE__*/ React.createElement(Checkbox, {
12
+ checked: checked,
13
+ }),
14
+ label
15
+ );
16
+ };
12
17
 
13
18
  export { CheckBoxOption as default };
14
19
  // powered by hdj
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  interface IProps {
3
- loading?: boolean;
4
- options?: any[];
5
- error?: Error;
6
- reload: VoidFunction;
3
+ loading?: boolean;
4
+ options?: any[];
5
+ error?: Error;
6
+ reload: VoidFunction;
7
7
  }
8
8
  declare const Index: React.FC<IProps>;
9
9
  export default Index;
@@ -1,7 +1,7 @@
1
1
  // welcome to hoo hoo hoo
2
- import React from 'react';
3
- import { Typography, Row, Space, Spin } from 'antd';
4
- import NotFoundContent from './NotFoundContent.js';
2
+ import React from "react";
3
+ import { Typography, Row, Space, Spin } from "antd";
4
+ import NotFoundContent from "./NotFoundContent.js";
5
5
 
6
6
  var Text = Typography.Text;
7
7
  var Index = function Index(_ref) {
@@ -13,26 +13,39 @@ var Index = function Index(_ref) {
13
13
  children = _ref.children;
14
14
  var len = options === null || options === void 0 ? void 0 : options.length;
15
15
  if (loading && len === 0) {
16
- return /*#__PURE__*/React.createElement(Row, {
17
- style: {
18
- height: 125
16
+ return /*#__PURE__*/ React.createElement(
17
+ Row,
18
+ {
19
+ style: {
20
+ height: 125,
21
+ },
22
+ justify: "center",
23
+ align: "middle",
19
24
  },
20
- justify: "center",
21
- align: "middle"
22
- }, /*#__PURE__*/React.createElement(Space, {
23
- direction: "vertical",
24
- align: "center"
25
- }, /*#__PURE__*/React.createElement(Spin, null), /*#__PURE__*/React.createElement(Text, {
26
- type: "secondary"
27
- }, "\u62FC\u547D\u52A0\u8F7D\u4E2D...")));
25
+ /*#__PURE__*/ React.createElement(
26
+ Space,
27
+ {
28
+ direction: "vertical",
29
+ align: "center",
30
+ },
31
+ /*#__PURE__*/ React.createElement(Spin, null),
32
+ /*#__PURE__*/ React.createElement(
33
+ Text,
34
+ {
35
+ type: "secondary",
36
+ },
37
+ "\u62FC\u547D\u52A0\u8F7D\u4E2D..."
38
+ )
39
+ )
40
+ );
28
41
  }
29
42
  if (error && len === 0) {
30
- return /*#__PURE__*/React.createElement(NotFoundContent, {
43
+ return /*#__PURE__*/ React.createElement(NotFoundContent, {
31
44
  error: error,
32
- reload: reload
45
+ reload: reload,
33
46
  });
34
47
  }
35
- return /*#__PURE__*/React.createElement(React.Fragment, null, children);
48
+ return /*#__PURE__*/ React.createElement(React.Fragment, null, children);
36
49
  };
37
50
 
38
51
  export { Index as default };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  interface IProps {
3
- label: string;
3
+ label: string;
4
4
  }
5
5
  declare const _default: ({ label }: IProps) => JSX.Element;
6
6
  export default _default;
@@ -1,13 +1,17 @@
1
1
  // welcome to hoo hoo hoo
2
- import React from 'react';
3
- import { Typography } from 'antd';
2
+ import React from "react";
3
+ import { Typography } from "antd";
4
4
 
5
- var NoFindItem = (function (_ref) {
5
+ var NoFindItem = function (_ref) {
6
6
  var label = _ref.label;
7
- return /*#__PURE__*/React.createElement(Typography.Text, {
8
- type: "danger"
9
- }, label);
10
- });
7
+ return /*#__PURE__*/ React.createElement(
8
+ Typography.Text,
9
+ {
10
+ type: "danger",
11
+ },
12
+ label
13
+ );
14
+ };
11
15
 
12
16
  export { NoFindItem as default };
13
17
  // powered by hdj
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  interface IProps {
3
- error?: Error;
4
- reload: VoidFunction;
3
+ error?: Error;
4
+ reload: VoidFunction;
5
5
  }
6
6
  declare const _default: ({ error, reload }: IProps) => JSX.Element;
7
7
  export default _default;
@@ -1,38 +1,60 @@
1
1
  // welcome to hoo hoo hoo
2
- import React from 'react';
3
- import { Typography, Row, Space, Button, Empty } from 'antd';
4
- import { ExclamationCircleOutlined } from '@ant-design/icons';
2
+ import React from "react";
3
+ import { Typography, Row, Space, Button, Empty } from "antd";
4
+ import { ExclamationCircleOutlined } from "@ant-design/icons";
5
5
 
6
6
  var Text = Typography.Text;
7
- var NotFoundContent = (function (_ref) {
7
+ var NotFoundContent = function (_ref) {
8
8
  var error = _ref.error,
9
9
  reload = _ref.reload;
10
10
  if (error) {
11
- return /*#__PURE__*/React.createElement(Row, {
12
- justify: "center",
13
- align: "middle",
14
- style: {
15
- height: 125
16
- }
17
- }, /*#__PURE__*/React.createElement(Space, {
18
- align: "center",
19
- direction: "vertical"
20
- }, /*#__PURE__*/React.createElement(Text, {
21
- type: "danger"
22
- }, /*#__PURE__*/React.createElement(ExclamationCircleOutlined, {
23
- size: 24
24
- })), /*#__PURE__*/React.createElement(Text, {
25
- type: "danger"
26
- }, error.message), /*#__PURE__*/React.createElement(Button, {
27
- type: "primary",
28
- size: "small",
29
- onClick: reload
30
- }, "\u91CD\u65B0\u52A0\u8F7D")));
11
+ return /*#__PURE__*/ React.createElement(
12
+ Row,
13
+ {
14
+ justify: "center",
15
+ align: "middle",
16
+ style: {
17
+ height: 125,
18
+ },
19
+ },
20
+ /*#__PURE__*/ React.createElement(
21
+ Space,
22
+ {
23
+ align: "center",
24
+ direction: "vertical",
25
+ },
26
+ /*#__PURE__*/ React.createElement(
27
+ Text,
28
+ {
29
+ type: "danger",
30
+ },
31
+ /*#__PURE__*/ React.createElement(ExclamationCircleOutlined, {
32
+ size: 24,
33
+ })
34
+ ),
35
+ /*#__PURE__*/ React.createElement(
36
+ Text,
37
+ {
38
+ type: "danger",
39
+ },
40
+ error.message
41
+ ),
42
+ /*#__PURE__*/ React.createElement(
43
+ Button,
44
+ {
45
+ type: "primary",
46
+ size: "small",
47
+ onClick: reload,
48
+ },
49
+ "\u91CD\u65B0\u52A0\u8F7D"
50
+ )
51
+ )
52
+ );
31
53
  }
32
- return /*#__PURE__*/React.createElement(Empty, {
33
- image: Empty.PRESENTED_IMAGE_SIMPLE
54
+ return /*#__PURE__*/ React.createElement(Empty, {
55
+ image: Empty.PRESENTED_IMAGE_SIMPLE,
34
56
  });
35
- });
57
+ };
36
58
 
37
59
  export { NotFoundContent as default };
38
60
  // powered by hdj
@@ -2,5 +2,5 @@
2
2
  import type { HSelectProps } from "@/components/Select/modal";
3
3
  export declare const defaultModeConfig: HSelectProps["modeConfig"];
4
4
  export declare const defaultSelectConfig: {
5
- noMatchItemRender: () => JSX.Element;
5
+ noMatchItemRender: () => JSX.Element;
6
6
  };
@@ -1,32 +1,36 @@
1
1
  // welcome to hoo hoo hoo
2
- import React from 'react';
3
- import _mapInstanceProperty from '@babel/runtime-corejs3/core-js/instance/map';
4
- import _indexOfInstanceProperty from '@babel/runtime-corejs3/core-js/instance/index-of';
5
- import CheckBoxOption from './components/CheckBoxOption.js';
6
- import NoFindItem from './components/NoFindItem.js';
2
+ import React from "react";
3
+ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js/instance/map";
4
+ import _indexOfInstanceProperty from "@babel/runtime-corejs3/core-js/instance/index-of";
5
+ import CheckBoxOption from "./components/CheckBoxOption.js";
6
+ import NoFindItem from "./components/NoFindItem.js";
7
7
 
8
8
  var defaultModeConfig = {
9
9
  multiple: {
10
10
  icon: null,
11
11
  render: function render(item, value) {
12
- var checkVal = value === null || value === void 0 ? void 0 : _mapInstanceProperty(value).call(value, function (itemVal) {
13
- return itemVal.value;
14
- });
12
+ var checkVal =
13
+ value === null || value === void 0
14
+ ? void 0
15
+ : _mapInstanceProperty(value).call(value, function (itemVal) {
16
+ return itemVal.value;
17
+ });
15
18
  var newVal = checkVal || [];
16
- var checked = _indexOfInstanceProperty(newVal).call(newVal, item.value) !== -1;
17
- return /*#__PURE__*/React.createElement(CheckBoxOption, {
19
+ var checked =
20
+ _indexOfInstanceProperty(newVal).call(newVal, item.value) !== -1;
21
+ return /*#__PURE__*/ React.createElement(CheckBoxOption, {
18
22
  label: item.label,
19
- checked: checked
23
+ checked: checked,
20
24
  });
21
- }
22
- }
25
+ },
26
+ },
23
27
  };
24
28
  var defaultSelectConfig = {
25
29
  noMatchItemRender: function noMatchItemRender() {
26
- return /*#__PURE__*/React.createElement(NoFindItem, {
27
- label: "选项被删除,请重新选择"
30
+ return /*#__PURE__*/ React.createElement(NoFindItem, {
31
+ label: "选项被删除,请重新选择",
28
32
  });
29
- }
33
+ },
30
34
  };
31
35
 
32
36
  export { defaultModeConfig, defaultSelectConfig };
@@ -1,5 +1,5 @@
1
1
  import type { PartialHSelectProps } from "@/components/Select/modal";
2
2
  export declare const useValueChange: (params: PartialHSelectProps) => {
3
- val: any;
4
- change: (changeVal: any, itemOps: any) => void;
3
+ val: any;
4
+ change: (changeVal: any, itemOps: any) => void;
5
5
  };