@para-ui/core 4.0.0-rc → 4.0.0-rc.1

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 (250) hide show
  1. package/AutoBox/index.d.ts +1 -1
  2. package/AutoBox/index.js +12 -12
  3. package/AutoTips/autoTipsMultiline/index.d.ts +1 -1
  4. package/AutoTips/index.d.ts +2 -2
  5. package/AutoTips/index.js +12 -12
  6. package/Badge/index.d.ts +23 -0
  7. package/Badge/index.js +54 -0
  8. package/Breadcrumbs/index.js +8 -8
  9. package/Button/SplitButton.d.ts +1 -1
  10. package/Button/index.d.ts +1 -1
  11. package/Button/index.js +3 -3
  12. package/Carousel/index.d.ts +6 -6
  13. package/Carousel/index.js +5 -5
  14. package/Cascader/Cascader.d.ts +10 -10
  15. package/Cascader/OptionList/Column.d.ts +3 -3
  16. package/Cascader/OptionList/index.d.ts +2 -2
  17. package/Cascader/index.d.ts +1 -1
  18. package/Cascader/index.js +4 -2
  19. package/Cascader/lang/en_US.d.ts +5 -0
  20. package/Cascader/lang/index.d.ts +11 -0
  21. package/Cascader/lang/zh_CN.d.ts +5 -0
  22. package/Cascader/utils/treeUtil.d.ts +1 -1
  23. package/Checkbox/index.d.ts +1 -1
  24. package/Checkbox/index.js +4 -4
  25. package/CheckboxGroup/index.d.ts +2 -2
  26. package/CheckboxGroup/index.js +3 -3
  27. package/Collapse/index.js +4 -4
  28. package/CollapseBox/index.js +12 -20
  29. package/CollapseLayout/index.js +20 -20
  30. package/ColorPicker/index.js +2 -2
  31. package/ComboSelect/index.js +43 -52
  32. package/ComboSelect/interface.d.ts +3 -3
  33. package/Container/index.d.ts +3 -3
  34. package/Container/index.js +56 -56
  35. package/CopyText/index.d.ts +2 -2
  36. package/DatePicker/generatePicker/index.d.ts +22 -22
  37. package/DatePicker/index.js +8 -7
  38. package/DatePicker/util.d.ts +1 -1
  39. package/Desktop/index.d.ts +1 -1
  40. package/Desktop/index.js +18 -13
  41. package/DragVerify/index.d.ts +1 -1
  42. package/DragVerify/index.js +13 -13
  43. package/Drawer/index.js +29 -33
  44. package/Drawer/interface.d.ts +2 -2
  45. package/Dropdown/index.d.ts +1 -1
  46. package/DynamicMultiBox/formItem.d.ts +1 -1
  47. package/DynamicMultiBox/index.d.ts +1 -1
  48. package/DynamicMultiBox/index.js +38 -35
  49. package/DynamicMultiBox/interface.d.ts +8 -8
  50. package/DynamicMultiBox/rowForm.d.ts +3 -1
  51. package/Empty/index.d.ts +1 -1
  52. package/Empty/index.js +2 -2
  53. package/Form/index.d.ts +12 -13
  54. package/Form/index.js +10 -8
  55. package/FormItem/compoments/defaultCompoments/index.d.ts +4 -4
  56. package/FormItem/compoments/formCheckboxGroup/index.d.ts +1 -1
  57. package/FormItem/compoments/formFile/index.d.ts +2 -2
  58. package/FormItem/compoments/formRadioGroup/index.d.ts +1 -1
  59. package/FormItem/compoments/formSelect/index.d.ts +7 -7
  60. package/FormItem/errorTips.d.ts +3 -3
  61. package/FormItem/index.d.ts +5 -5
  62. package/FormItem/index.js +3 -2
  63. package/FormItem/lang/en_US.d.ts +10 -0
  64. package/FormItem/lang/index.d.ts +21 -0
  65. package/FormItem/lang/zh_CN.d.ts +10 -0
  66. package/FormItem/validateFunction.d.ts +1 -1
  67. package/FunctionModal/dialog.d.ts +26 -26
  68. package/FunctionModal/index.d.ts +6 -6
  69. package/FunctionModal/index.js +6 -6
  70. package/FunctionModal/modalContext.d.ts +3 -3
  71. package/GlobalContext/componentsProps.d.ts +7 -7
  72. package/GlobalContext/index.d.ts +2 -2
  73. package/GlobalContext/useFormatMessage.d.ts +1 -1
  74. package/Help/index.js +1 -1
  75. package/HelperText/index.js +1 -1
  76. package/InputLang/index.d.ts +2 -2
  77. package/InputLang/index.js +8 -8
  78. package/InputNumber/index.d.ts +2 -2
  79. package/InputNumber/index.js +3 -3
  80. package/Label/index.js +2 -2
  81. package/Loading/index.js +1 -1
  82. package/Menu/index.js +14 -14
  83. package/Menu/interface.d.ts +1 -1
  84. package/Message/index.js +12 -12
  85. package/Modal/Confirm/index.d.ts +3 -3
  86. package/Modal/index.d.ts +1 -1
  87. package/Modal/index.js +5 -5
  88. package/MultiBox/index.d.ts +2 -2
  89. package/MultiBox/index.js +3 -3
  90. package/Notification/index.js +1 -1
  91. package/OperateBtn/index.d.ts +2 -2
  92. package/OperateBtn/index.js +40 -36
  93. package/PageHeader/index.js +30 -30
  94. package/PageHeader/interface.d.ts +1 -1
  95. package/Pagination/index.d.ts +1 -1
  96. package/Pagination/index.js +17 -17
  97. package/PasswordRules/index.js +7 -7
  98. package/PopConfirm/index.js +3 -3
  99. package/Progress/Line.d.ts +10 -10
  100. package/Progress/Steps.d.ts +2 -2
  101. package/Progress/index.d.ts +12 -12
  102. package/Progress/index.js +40 -40
  103. package/Progress/utils.d.ts +4 -4
  104. package/Querying/index.d.ts +1 -1
  105. package/Querying/index.js +2 -2
  106. package/README.md +3 -0
  107. package/Radio/index.d.ts +1 -1
  108. package/Radio/index.js +4 -4
  109. package/RadioGroup/index.d.ts +2 -2
  110. package/RadioGroup/index.js +3 -3
  111. package/Search/index.js +1 -1
  112. package/Select/index.d.ts +3 -3
  113. package/Select/index.js +42 -42
  114. package/SelectInput/index.js +2 -2
  115. package/Selector/index.js +15 -15
  116. package/Selector/interface.d.ts +6 -6
  117. package/SelectorPicker/index.d.ts +4 -4
  118. package/SelectorPicker/index.js +9 -9
  119. package/SingleBox/index.d.ts +2 -2
  120. package/SingleBox/index.js +3 -3
  121. package/Slider/interface.d.ts +1 -1
  122. package/Status/index.d.ts +4 -4
  123. package/Status/index.js +4 -4
  124. package/Stepper/index.d.ts +5 -5
  125. package/Stepper/index.js +23 -23
  126. package/Switch/index.d.ts +7 -7
  127. package/Switch/index.js +23 -5
  128. package/Switch/lang/en_US.d.ts +4 -0
  129. package/Switch/lang/index.d.ts +9 -0
  130. package/Switch/lang/zh_CN.d.ts +4 -0
  131. package/Table/index.js +34 -34
  132. package/Table/interface.d.ts +4 -4
  133. package/Table/tableBodyElement/index.d.ts +1 -1
  134. package/Table/tableBodyInterface.d.ts +2 -2
  135. package/Table/tableContainer/index.d.ts +1 -1
  136. package/Table/tableElement/index.d.ts +1 -1
  137. package/Table/tableHeadElement/index.d.ts +1 -1
  138. package/Table/tableHeadInterface.d.ts +1 -1
  139. package/Table/tablePaginationInterface.d.ts +6 -6
  140. package/Table/tdElement/index.d.ts +1 -1
  141. package/Table/thElement/index.d.ts +2 -2
  142. package/Table/trElement/index.d.ts +1 -1
  143. package/Table/util.d.ts +1 -1
  144. package/Tabs/index.d.ts +1 -1
  145. package/Tabs/index.js +25 -17
  146. package/Tag/TagGroup.d.ts +5 -5
  147. package/Tag/index.d.ts +7 -7
  148. package/Tag/index.js +25 -25
  149. package/TextEditor/index.d.ts +2 -2
  150. package/TextEditor/index.js +45 -27
  151. package/TextEditor/lang/en_US.d.ts +4 -0
  152. package/TextEditor/lang/index.d.ts +9 -0
  153. package/TextEditor/lang/zh_CN.d.ts +4 -0
  154. package/TextField/index.d.ts +1 -1
  155. package/TextField/index.js +13 -13
  156. package/TimePicker/index.d.ts +1 -1
  157. package/TimePicker/index.js +1 -1
  158. package/Timeline/TimelineItem.d.ts +1 -1
  159. package/Timeline/index.d.ts +5 -5
  160. package/Timeline/index.js +14 -14
  161. package/Title/index.d.ts +4 -4
  162. package/Title/index.js +3 -3
  163. package/ToggleButton/ToggleButtonGroup.d.ts +1 -1
  164. package/ToggleButton/index.d.ts +5 -1
  165. package/ToggleButton/index.js +17 -10
  166. package/Transfer/box.d.ts +6 -6
  167. package/Transfer/index.js +21 -21
  168. package/Tree/OperateBar/index.d.ts +4 -4
  169. package/Tree/Tree.d.ts +2 -2
  170. package/Tree/index.js +2 -2
  171. package/Tree/interface.d.ts +4 -4
  172. package/Tree/utils/tools.d.ts +1 -1
  173. package/Upload/Dragger/index.d.ts +2 -2
  174. package/Upload/ErroTip/index.d.ts +1 -1
  175. package/Upload/index.d.ts +2 -2
  176. package/Upload/index.js +7 -7
  177. package/Upload/interface.d.ts +1 -1
  178. package/_verture/{index-8469865e.js → index-0f315bca.js} +2 -2
  179. package/_verture/{index-e1b800aa.js → index-92e406f4.js} +48 -24
  180. package/_verture/{index-47297a40.js → index-bc461491.js} +45 -45
  181. package/_verture/{index-1c8d3e94.js → index-d251967e.js} +101 -47
  182. package/_verture/{modalContext-670eab09.js → modalContext-9299acc9.js} +25 -25
  183. package/index.d.ts +2 -0
  184. package/index.js +8 -7
  185. package/locale/en-US.d.ts +19 -0
  186. package/locale/index.d.ts +38 -0
  187. package/locale/index.js +39 -1
  188. package/locale/zh-CN.d.ts +19 -0
  189. package/package.json +3 -1
  190. package/umd/AutoBox.js +1 -1
  191. package/umd/AutoTips.js +1 -1
  192. package/umd/Badge.js +1 -0
  193. package/umd/Breadcrumbs.js +1 -1
  194. package/umd/Button.js +2 -2
  195. package/umd/ButtonGroup.js +2 -2
  196. package/umd/Cascader.js +5 -5
  197. package/umd/Checkbox.js +1 -1
  198. package/umd/CheckboxGroup.js +1 -1
  199. package/umd/Collapse.js +1 -1
  200. package/umd/CollapseBox.js +1 -1
  201. package/umd/CollapseLayout.js +4 -4
  202. package/umd/ComboSelect.js +4 -4
  203. package/umd/CopyText.js +1 -1
  204. package/umd/DatePicker.js +2 -2
  205. package/umd/Desktop.js +2 -2
  206. package/umd/DragVerify.js +4 -4
  207. package/umd/Drawer.js +2 -2
  208. package/umd/DynamicMultiBox.js +4 -4
  209. package/umd/Form.js +4 -4
  210. package/umd/FormItem.js +4 -4
  211. package/umd/FunctionModal.js +2 -2
  212. package/umd/Help.js +1 -1
  213. package/umd/HelperText.js +1 -1
  214. package/umd/InputLang.js +1 -1
  215. package/umd/InputNumber.js +1 -1
  216. package/umd/Label.js +1 -1
  217. package/umd/Loading.js +1 -1
  218. package/umd/Menu.js +2 -2
  219. package/umd/Message.js +1 -1
  220. package/umd/Modal.js +2 -2
  221. package/umd/MultiBox.js +7 -7
  222. package/umd/Notification.js +1 -1
  223. package/umd/OperateBtn.js +2 -2
  224. package/umd/PageHeader.js +2 -2
  225. package/umd/Pagination.js +4 -4
  226. package/umd/PasswordRules.js +4 -4
  227. package/umd/PopConfirm.js +2 -2
  228. package/umd/Progress.js +1 -1
  229. package/umd/Radio.js +1 -1
  230. package/umd/RadioGroup.js +1 -1
  231. package/umd/Search.js +7 -7
  232. package/umd/Select.js +1 -1
  233. package/umd/SelectInput.js +1 -1
  234. package/umd/Selector.js +1 -1
  235. package/umd/SelectorPicker.js +1 -1
  236. package/umd/SingleBox.js +1 -1
  237. package/umd/Stepper.js +1 -1
  238. package/umd/Switch.js +4 -4
  239. package/umd/Table.js +2 -2
  240. package/umd/Tabs.js +4 -4
  241. package/umd/Tag.js +1 -1
  242. package/umd/TextEditor.js +2 -2
  243. package/umd/TextField.js +7 -7
  244. package/umd/TimePicker.js +2 -2
  245. package/umd/Title.js +1 -1
  246. package/umd/ToggleButton.js +4 -4
  247. package/umd/Transfer.js +2 -2
  248. package/umd/Tree.js +1 -1
  249. package/umd/Upload.js +2 -2
  250. package/umd/locale.js +1 -1
package/Form/index.js CHANGED
@@ -3,8 +3,9 @@ import { _ as _slicedToArray } from '../_verture/slicedToArray-a8206399.js';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import { DeepClone } from '@paraview/lib';
5
5
  import React__default from 'react';
6
- import { F as FormItem, v as validate } from '../_verture/index-1c8d3e94.js';
6
+ import { F as FormItem, l as localeJson, v as validate } from '../_verture/index-d251967e.js';
7
7
  import { $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
8
+ import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
8
9
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
9
10
  import '../TextField/index.js';
10
11
  import '../_verture/typeof-adeedc13.js';
@@ -36,7 +37,6 @@ import '../Radio/index.js';
36
37
  import '../Select/index.js';
37
38
  import '../_verture/defineProperty-1d116156.js';
38
39
  import '../Empty/index.js';
39
- import '../_verture/useFormatMessage-703f8b20.js';
40
40
  import '@para-ui/icons/Close';
41
41
  import '@para-ui/icons/Down';
42
42
  import '@para-ui/icons/Check';
@@ -70,7 +70,7 @@ import 'rc-pagination';
70
70
  import '@para-ui/icons/Right';
71
71
  import '@para-ui/icons/DoubleLeft';
72
72
  import '@para-ui/icons/DoubleRight';
73
- import '../_verture/index-47297a40.js';
73
+ import '../_verture/index-bc461491.js';
74
74
  import 'rc-tree';
75
75
  import '@para-ui/icons/Document';
76
76
  import 'react-dom';
@@ -78,6 +78,7 @@ import '@para-ui/icons/EditFile';
78
78
  import '@para-ui/icons/PlusCircle';
79
79
  import '@para-ui/icons/MoreCircle';
80
80
  import '../_verture/utils-06d86594.js';
81
+ import '../Search/index.js';
81
82
 
82
83
  /**
83
84
  * form 表单组件
@@ -90,6 +91,7 @@ import '../_verture/utils-06d86594.js';
90
91
  * @description 用于根据配置自动生成表单
91
92
  */
92
93
  var Form = function Form(props) {
94
+ var intl = useFormatMessage('FormItem', localeJson);
93
95
  var _props$className = props.className,
94
96
  className = _props$className === void 0 ? '' : _props$className,
95
97
  FormProps = props.FormProps,
@@ -192,7 +194,7 @@ var Form = function Form(props) {
192
194
  errorCount++;
193
195
  continue;
194
196
  }
195
- var msg = validate(tItem, refData.current.allValues[key]);
197
+ var msg = validate(tItem, refData.current.allValues[key], intl);
196
198
  if (msg) {
197
199
  errorCount++;
198
200
  if (typeof msg === 'string') refData.current.itemsCheckMessage[key] = msg;
@@ -202,8 +204,8 @@ var Form = function Form(props) {
202
204
  return !errorCount && refData.current.allValues;
203
205
  };
204
206
  /**
205
- * 过滤有效值
206
- */
207
+ * 过滤有效值
208
+ */
207
209
  var getValidValues = function getValidValues() {
208
210
  var tObj = {};
209
211
  for (var i = 0; i < refData.current.configList.length; i++) {
@@ -215,8 +217,8 @@ var Form = function Form(props) {
215
217
  return tObj;
216
218
  };
217
219
  /**
218
- * 重置表单
219
- */
220
+ * 重置表单
221
+ */
220
222
  var resetForm = function resetForm() {
221
223
  var isClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
222
224
  var name = arguments.length > 1 ? arguments[1] : undefined;
@@ -11,9 +11,9 @@ interface DefaultCompomentsProps {
11
11
  };
12
12
  }
13
13
  /**
14
- * @module src\FormItem\compoments\defaultCompoments\index.tsx
15
- * @author zhanzl
16
- * @date 2022/06/02
17
- */
14
+ * @module src\FormItem\compoments\defaultCompoments\index.tsx
15
+ * @author zhanzl
16
+ * @date 2022/06/02
17
+ */
18
18
  declare const DefaultCompoments: FC<DefaultCompomentsProps>;
19
19
  export default DefaultCompoments;
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
2
  import { CheckboxGroupProps } from '../../../CheckboxGroup';
3
3
  export interface FormCheckboxGroupProps extends CheckboxGroupProps {
4
4
  defaultValue?: any[];
@@ -1,5 +1,5 @@
1
- import { FC, InputHTMLAttributes } from "react";
2
- import { ButtonProps } from "../../../Button";
1
+ import { FC, InputHTMLAttributes } from 'react';
2
+ import { ButtonProps } from '../../../Button';
3
3
  import './index.scss';
4
4
  export interface FormFileProps {
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
2
  import { RadioGroupProps } from '../../../RadioGroup';
3
3
  export interface FormRadioGroupProps extends RadioGroupProps {
4
4
  defaultValue?: string;
@@ -1,17 +1,17 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
2
  import { SelectProps } from '../../../Select';
3
3
  export interface FormSelectProps extends SelectProps {
4
4
  /**
5
- * 默认值
6
- */
5
+ * 默认值
6
+ */
7
7
  defaultValue?: string;
8
8
  /**
9
- * 改变方法
10
- */
9
+ * 改变方法
10
+ */
11
11
  change?: (value: any) => any;
12
12
  /**
13
- * 绑定值
14
- */
13
+ * 绑定值
14
+ */
15
15
  value?: string;
16
16
  }
17
17
  declare const FormSelect: FC<FormSelectProps>;
@@ -1,9 +1,9 @@
1
1
  import { HelperTextProps } from '../HelperText';
2
2
  import { FC } from 'react';
3
3
  /**
4
- * 报错信息组件
5
- * @description 为了解决,在主组件设置state,导致输入框中内容刷新,且失去焦点
6
- */
4
+ * 报错信息组件
5
+ * @description 为了解决,在主组件设置state,导致输入框中内容刷新,且失去焦点
6
+ */
7
7
  declare const ErrorTips: FC<{
8
8
  getSetError?: Function;
9
9
  errorMessage?: string;
@@ -21,11 +21,11 @@ export interface ruleType {
21
21
  * @return {boolean | string}, 子定义校验方法时 返回 false 或 字符串 均为校验失败 true为校验通过
22
22
  */
23
23
  validate?: {
24
- 'required'?: boolean | validateFunctionType;
25
- 'maxlength'?: number | validateFunctionType;
26
- 'minLength'?: number | validateFunctionType;
27
- 'pattern'?: RegExp | validateFunctionType;
28
- 'disOnlySpace'?: boolean | validateFunctionType;
24
+ required?: boolean | validateFunctionType;
25
+ maxlength?: number | validateFunctionType;
26
+ minLength?: number | validateFunctionType;
27
+ pattern?: RegExp | validateFunctionType;
28
+ disOnlySpace?: boolean | validateFunctionType;
29
29
  [name: string]: validateFunctionType | boolean | number | RegExp | undefined;
30
30
  };
31
31
  message?: {
package/FormItem/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'react/jsx-runtime';
2
2
  import 'react';
3
- export { F as default } from '../_verture/index-1c8d3e94.js';
3
+ export { F as default } from '../_verture/index-d251967e.js';
4
4
  import 'clsx';
5
5
  import '../Label/index.js';
6
6
  import '../_verture/constant-0d9802f7.js';
@@ -70,7 +70,7 @@ import 'rc-pagination';
70
70
  import '@para-ui/icons/Right';
71
71
  import '@para-ui/icons/DoubleLeft';
72
72
  import '@para-ui/icons/DoubleRight';
73
- import '../_verture/index-47297a40.js';
73
+ import '../_verture/index-bc461491.js';
74
74
  import 'rc-tree';
75
75
  import '@para-ui/icons/Document';
76
76
  import 'react-dom';
@@ -78,3 +78,4 @@ import '@para-ui/icons/EditFile';
78
78
  import '@para-ui/icons/PlusCircle';
79
79
  import '@para-ui/icons/MoreCircle';
80
80
  import '../_verture/utils-06d86594.js';
81
+ import '../Search/index.js';
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ choseFile: string;
3
+ unEmpty: string;
4
+ maxLength: string;
5
+ minLength: string;
6
+ unRule: string;
7
+ minValue: string;
8
+ maxValue: string;
9
+ };
10
+ export default _default;
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ zh: {
3
+ choseFile: string;
4
+ unEmpty: string;
5
+ maxLength: string;
6
+ minLength: string;
7
+ unRule: string;
8
+ minValue: string;
9
+ maxValue: string;
10
+ };
11
+ en: {
12
+ choseFile: string;
13
+ unEmpty: string;
14
+ maxLength: string;
15
+ minLength: string;
16
+ unRule: string;
17
+ minValue: string;
18
+ maxValue: string;
19
+ };
20
+ };
21
+ export default _default;
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ choseFile: string;
3
+ unEmpty: string;
4
+ maxLength: string;
5
+ minLength: string;
6
+ unRule: string;
7
+ minValue: string;
8
+ maxValue: string;
9
+ };
10
+ export default _default;
@@ -6,7 +6,7 @@ import { FormItemProps } from './index';
6
6
  * @param {any} val 校验项的值
7
7
  * @return {boolean | string} 返回校验结果或报错信息
8
8
  */
9
- export type validateFunctionType = (item: FormItemProps, val: any) => boolean | string;
9
+ export type validateFunctionType = (item: FormItemProps, val: any, intl: any) => boolean | string;
10
10
  /**
11
11
  * 表单rules校验方法
12
12
  * @type {validateFunctionType}
@@ -1,57 +1,57 @@
1
- import React, { ReactElement } from "react";
1
+ import React, { ReactElement } from 'react';
2
2
  import { ModalProps } from '../Modal';
3
- import { JsxElement } from "typescript";
3
+ import { JsxElement } from 'typescript';
4
4
  import './index.scss';
5
5
  /**
6
- * 弹窗配置
7
- */
6
+ * 弹窗配置
7
+ */
8
8
  export interface modalOptions extends ModalProps {
9
9
  /**
10
- * 非正常关闭仍然返回true
11
- */
10
+ * 非正常关闭仍然返回true
11
+ */
12
12
  disCatchOnCancel?: boolean;
13
13
  /**
14
- * 模态框大小
15
- */
14
+ * 模态框大小
15
+ */
16
16
  size?: 'sm' | 'md' | 'lg' | 'auto' | 'fullScreen';
17
17
  /**
18
- * 模态框标题
19
- */
18
+ * 模态框标题
19
+ */
20
20
  title?: string;
21
21
  context?: ReactElement | JsxElement;
22
22
  /**
23
- * 内容
24
- */
23
+ * 内容
24
+ */
25
25
  content?: ReactElement | JsxElement;
26
26
  /**
27
- * 检查方法,根据返回值判断是否关闭模态框
28
- */
27
+ * 检查方法,根据返回值判断是否关闭模态框
28
+ */
29
29
  checkFunction?: () => boolean | Promise<boolean>;
30
30
  /**
31
- * 获得关闭模态框方法
32
- */
31
+ * 获得关闭模态框方法
32
+ */
33
33
  getClose?: (close: Function) => void;
34
34
  /**
35
- * 模态框其他配置
36
- */
35
+ * 模态框其他配置
36
+ */
37
37
  ModalProps?: ModalProps;
38
38
  }
39
39
  interface DialogProps extends modalOptions {
40
40
  /**
41
- * 模态框状态
42
- */
41
+ * 模态框状态
42
+ */
43
43
  open: boolean;
44
44
  /**
45
- * 提交方法
46
- */
45
+ * 提交方法
46
+ */
47
47
  onSubmit: (idx: number) => void;
48
48
  /**
49
- * 关闭方法
50
- */
49
+ * 关闭方法
50
+ */
51
51
  onClose: (idx: number) => void;
52
52
  /**
53
- * 模态框组下标
54
- */
53
+ * 模态框组下标
54
+ */
55
55
  listIndex: number;
56
56
  }
57
57
  export declare const FDialog: React.FC<DialogProps>;
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @author zhanzl
3
- * @date 2021/08/13
4
- * @description 函数式弹窗
5
- */
6
- import { useModal, useClose, FunctionModalProvider } from "./modalContext";
2
+ * @author zhanzl
3
+ * @date 2021/08/13
4
+ * @description 函数式弹窗
5
+ */
6
+ import { useModal, useClose, FunctionModalProvider } from './modalContext';
7
7
  export default useModal;
8
- export { useClose, FunctionModalProvider, };
8
+ export { useClose, FunctionModalProvider };
@@ -1,5 +1,5 @@
1
- import { u as useModal } from '../_verture/modalContext-670eab09.js';
2
- export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-670eab09.js';
1
+ import { u as useModal } from '../_verture/modalContext-9299acc9.js';
2
+ export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-9299acc9.js';
3
3
  import '../_verture/toConsumableArray-8f4c9589.js';
4
4
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
5
5
  import '../_verture/slicedToArray-a8206399.js';
@@ -39,7 +39,7 @@ import '@para-ui/icons/WarningCircle';
39
39
  import '@para-ui/icons/WarningCircleF';
40
40
 
41
41
  /**
42
- * @author zhanzl
43
- * @date 2021/08/13
44
- * @description 函数式弹窗
45
- */
42
+ * @author zhanzl
43
+ * @date 2021/08/13
44
+ * @description 函数式弹窗
45
+ */
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { modalOptions } from "./dialog";
2
+ import { modalOptions } from './dialog';
3
3
  /**
4
4
  * 弹出框组件
5
5
  * @param context 主体内容
@@ -9,7 +9,7 @@ import { modalOptions } from "./dialog";
9
9
  **/
10
10
  export declare const useModal: () => (options: modalOptions) => Promise<boolean>;
11
11
  /**
12
- * 函数弹窗组件Provider
13
- */
12
+ * 函数弹窗组件Provider
13
+ */
14
14
  export declare const FunctionModalProvider: ({ children }: any) => JSX.Element;
15
15
  export declare const useClose: () => Function;
@@ -3,13 +3,13 @@
3
3
  * @date 2022/5/5 4:08 PM
4
4
  * @description 全局每个组件的props
5
5
  */
6
- import { SelectProps } from "../Select";
7
- import { TextFieldProps } from "../TextField";
8
- import { TableProps } from "../Table/interface";
9
- import { EmptyProps } from "../Empty";
10
- import { QueryingProps } from "../Querying";
11
- import { SelectorProps } from "../Selector/interface";
12
- import { ComboSelectProps } from "../ComboSelect/interface";
6
+ import { SelectProps } from '../Select';
7
+ import { TextFieldProps } from '../TextField';
8
+ import { TableProps } from '../Table/interface';
9
+ import { EmptyProps } from '../Empty';
10
+ import { QueryingProps } from '../Querying';
11
+ import { SelectorProps } from '../Selector/interface';
12
+ import { ComboSelectProps } from '../ComboSelect/interface';
13
13
  interface ComponentsProps {
14
14
  Select?: Partial<SelectProps>;
15
15
  TextField?: Partial<TextFieldProps>;
@@ -1,6 +1,6 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { changeConfirmLocale, getConfirmLocale } from './confirmLocale';
3
- import ComponentsProps from "./componentsProps";
3
+ import ComponentsProps from './componentsProps';
4
4
  /** 国际化props */
5
5
  export interface localeProps {
6
6
  /** 语言 */
@@ -1,3 +1,3 @@
1
- import { I18nData } from "./intl";
1
+ import { I18nData } from './intl';
2
2
  declare const useFormatMessage: (comName: string, defI18nData: I18nData) => any;
3
3
  export default useFormatMessage;
package/Help/index.js CHANGED
@@ -32,7 +32,7 @@ var Help = function Help(props) {
32
32
  placement: placement
33
33
  }, restProps, {
34
34
  children: jsx("span", Object.assign({
35
- className: clsx($prefixCls + '-help', className)
35
+ className: clsx("".concat($prefixCls, "-help"), className)
36
36
  }, {
37
37
  children: children || jsx(HelpIcon, {})
38
38
  }))
@@ -19,7 +19,7 @@ var HelperText = function HelperText(props) {
19
19
  // 处理class
20
20
  var handClass = function handClass() {
21
21
  var str = "".concat($prefixCls, "-helper-text");
22
- if (className) str += ' ' + className;
22
+ if (className) str += " ".concat(className);
23
23
  if (error) str += " ".concat($prefixCls, "-helper-text-error");
24
24
  return str;
25
25
  };
@@ -5,9 +5,9 @@
5
5
  */
6
6
  import React, { FunctionComponent, ReactNode } from 'react';
7
7
  import { HelperTextDetailProps } from '../HelperText';
8
- import { LabelTooltipProps } from "../Label";
8
+ import { LabelTooltipProps } from '../Label';
9
+ import { TooltipProps } from '../Tooltip';
9
10
  import './index.scss';
10
- import { TooltipProps } from "../Tooltip";
11
11
  interface valueProps {
12
12
  [name: string]: string;
13
13
  }
@@ -123,7 +123,7 @@ var InputLang = function InputLang(props) {
123
123
  var objLabel = {};
124
124
  for (var i = 0, l = langList.length; i < l; i++) {
125
125
  var item = langList[i];
126
- if (typeof item === "string") {
126
+ if (typeof item === 'string') {
127
127
  obj[item] = {
128
128
  label: item,
129
129
  value: item
@@ -216,7 +216,7 @@ var InputLang = function InputLang(props) {
216
216
  var jsonMapping = ArrayToObject('label', valueListLang);
217
217
  for (var i = 0, l = langList.length; i < l; i++) {
218
218
  var item = langList[i];
219
- if (_typeof(item) === "object") {
219
+ if (_typeof(item) === 'object') {
220
220
  item = item.label;
221
221
  }
222
222
  if (!jsonMapping[item] && item !== (((_a = langMapping[lang]) === null || _a === void 0 ? void 0 : _a.label) || lang)) arr.push({
@@ -268,8 +268,8 @@ var InputLang = function InputLang(props) {
268
268
  }, []);
269
269
  /** 处理弹出框className */
270
270
  var popoverHandClass = function popoverHandClass() {
271
- var str = $prefixCls + '-input-lang-popover';
272
- if (popoverClassName) str += ' ' + popoverClassName;
271
+ var str = "".concat($prefixCls, "-input-lang-popover");
272
+ if (popoverClassName) str += " ".concat(popoverClassName);
273
273
  if (disabledAdd) str += " ".concat($prefixCls, "-input-lang-popover-disabled-add");
274
274
  if (disabledDelete) str += " ".concat($prefixCls, "-input-lang-popover-disabled-delete");
275
275
  return str;
@@ -315,10 +315,10 @@ var InputLang = function InputLang(props) {
315
315
  * @return {string}
316
316
  */
317
317
  var handClass = function handClass() {
318
- var str = $prefixCls + '-input-lang';
318
+ var str = "".concat($prefixCls, "-input-lang");
319
319
  if (size) str += " ".concat($prefixCls, "-input-lang-").concat(size);
320
320
  if (error) str += " ".concat($prefixCls, "-input-lang-error");
321
- if (className) str += ' ' + className;
321
+ if (className) str += " ".concat(className);
322
322
  return str;
323
323
  };
324
324
  return jsxs("div", Object.assign({
@@ -327,7 +327,7 @@ var InputLang = function InputLang(props) {
327
327
  ref: refDom
328
328
  }, {
329
329
  children: [jsx(Popover, Object.assign({
330
- placement: "bottom-end",
330
+ placement: 'bottom-end',
331
331
  visible: open,
332
332
  content: langListPopoverContent(),
333
333
  onVisibleChange: handleClose,
@@ -335,7 +335,7 @@ var InputLang = function InputLang(props) {
335
335
  maxWidth: 'none',
336
336
  overlayInnerStyle: {
337
337
  minWidth: '440px',
338
- width: ((_a = refDom.current) === null || _a === void 0 ? void 0 : _a.offsetWidth) + 'px'
338
+ width: "".concat((_a = refDom.current) === null || _a === void 0 ? void 0 : _a.offsetWidth, "px")
339
339
  }
340
340
  }, {
341
341
  children: jsx(TextField, {
@@ -4,8 +4,8 @@
4
4
  * @description 数字输入框
5
5
  */
6
6
  import React, { FunctionComponent, ReactNode } from 'react';
7
- import { LabelTooltipProps } from "../Label";
8
- import { HelperTextDetailProps } from "../HelperText";
7
+ import { LabelTooltipProps } from '../Label';
8
+ import { HelperTextDetailProps } from '../HelperText';
9
9
  import { TooltipProps } from '../Tooltip';
10
10
  import './index.scss';
11
11
  export interface InputNumberProps extends HelperTextDetailProps {
@@ -127,7 +127,7 @@ var InputNumber = function InputNumber(props) {
127
127
  var handLabelClass = function handLabelClass() {
128
128
  var str = 'input-number-label';
129
129
  if (labelTooltip && labelTooltip.className) {
130
- str += ' ' + labelTooltip.className;
130
+ str += " ".concat(labelTooltip.className);
131
131
  }
132
132
  return str;
133
133
  };
@@ -263,8 +263,8 @@ var InputNumber = function InputNumber(props) {
263
263
  };
264
264
  /** 处理class */
265
265
  var handClass = function handClass() {
266
- var str = $prefixCls + '-input-number ';
267
- if (className) str += ' ' + className;
266
+ var str = "".concat($prefixCls, "-input-number ");
267
+ if (className) str += " ".concat(className);
268
268
  if (size) str += " ".concat($prefixCls, "-input-number-").concat(size);
269
269
  if (btnMode) {
270
270
  str += " ".concat($prefixCls, "-input-number-").concat(btnMode === 'none' ? 'none' : 'tb');
package/Label/index.js CHANGED
@@ -34,10 +34,10 @@ var Label = function Label(props) {
34
34
  othersProps = __rest(props, ["className", "helpClassName", "style", "label", "labelSign", "required", "tooltip", "tooltipType", "placement", "arrow", "tooltipIcon", "onClick"]);
35
35
  // 处理class
36
36
  var handClass = function handClass() {
37
- var str = $prefixCls + '-label';
37
+ var str = "".concat($prefixCls, "-label");
38
38
  if (tooltipType) str += " ".concat($prefixCls, "-label-").concat(tooltipType);
39
39
  if (tooltip) str += " ".concat($prefixCls, "-label-tooltip");
40
- if (className) str += ' ' + className;
40
+ if (className) str += " ".concat(className);
41
41
  return str;
42
42
  };
43
43
  var onClickCom = function onClickCom(e) {
package/Loading/index.js CHANGED
@@ -23,7 +23,7 @@ var Loading = function Loading(props) {
23
23
  // 处理class
24
24
  var handClass = function handClass() {
25
25
  var str = "".concat($prefixCls, "-loading");
26
- if (className) str += ' ' + className;
26
+ if (className) str += " ".concat(className);
27
27
  return str;
28
28
  };
29
29
  return jsxs("div", Object.assign({