@para-ui/core 2.2.1-beta → 2.2.2

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 (326) hide show
  1. package/AutoBox/index.d.ts +34 -0
  2. package/AutoBox/index.js +15 -0
  3. package/AutoTips/index.d.ts +27 -0
  4. package/AutoTips/index.js +15 -0
  5. package/Breadcrumbs/index.d.ts +39 -0
  6. package/Breadcrumbs/index.js +15 -0
  7. package/Button/SplitButton.d.ts +61 -0
  8. package/Button/index.d.ts +56 -0
  9. package/Button/index.js +14 -0
  10. package/Button/lang/en_US.d.ts +4 -0
  11. package/Button/lang/index.d.ts +9 -0
  12. package/Button/lang/zh_CN.d.ts +4 -0
  13. package/ButtonGroup/index.d.ts +33 -0
  14. package/ButtonGroup/index.js +14 -0
  15. package/Carousel/index.d.ts +30 -0
  16. package/Carousel/index.js +15 -0
  17. package/Cascader/index.d.ts +52 -0
  18. package/Cascader/index.js +15 -0
  19. package/Cascader/lang/en_US.d.ts +4 -0
  20. package/Cascader/lang/index.d.ts +9 -0
  21. package/Cascader/lang/zh_CN.d.ts +4 -0
  22. package/Checkbox/index.d.ts +40 -0
  23. package/Checkbox/index.js +14 -0
  24. package/CheckboxGroup/index.d.ts +46 -0
  25. package/CheckboxGroup/index.js +14 -0
  26. package/Collapse/collapsePanel.d.ts +30 -0
  27. package/Collapse/index.d.ts +57 -0
  28. package/Collapse/index.js +15 -0
  29. package/Collapse/motion.d.ts +5 -0
  30. package/Collapse/util.d.ts +11 -0
  31. package/CollapseBox/index.d.ts +27 -0
  32. package/CollapseBox/index.js +15 -0
  33. package/CollapseBox/util.d.ts +5 -0
  34. package/ColorPicker/index.d.ts +4 -0
  35. package/ColorPicker/index.js +1 -0
  36. package/ComboSelect/WithTabsCombo/index.d.ts +11 -0
  37. package/ComboSelect/WithTabsCombo/interface.d.ts +141 -0
  38. package/ComboSelect/index.d.ts +11 -0
  39. package/ComboSelect/index.js +14 -0
  40. package/ComboSelect/interface.d.ts +141 -0
  41. package/ComboSelect/lang/en_US.d.ts +8 -0
  42. package/ComboSelect/lang/index.d.ts +17 -0
  43. package/ComboSelect/lang/zh_CN.d.ts +8 -0
  44. package/ComboSelect/utils.d.ts +13 -0
  45. package/Container/index.d.ts +77 -0
  46. package/Container/index.js +15 -0
  47. package/DatePicker/PickerButton.d.ts +3 -0
  48. package/DatePicker/PickerTag.d.ts +3 -0
  49. package/DatePicker/generatePicker/generateRangePicker.d.ts +4 -0
  50. package/DatePicker/generatePicker/generateSinglePicker.d.ts +11 -0
  51. package/DatePicker/generatePicker/index.d.ts +77 -0
  52. package/DatePicker/index.d.ts +18 -0
  53. package/DatePicker/index.js +14 -0
  54. package/DatePicker/lang/en_US.d.ts +3 -0
  55. package/DatePicker/lang/index.d.ts +7 -0
  56. package/DatePicker/lang/zh_CN.d.ts +3 -0
  57. package/DatePicker/util.d.ts +20 -0
  58. package/Desktop/index.d.ts +55 -0
  59. package/Desktop/index.js +14 -0
  60. package/Drawer/index.d.ts +11 -0
  61. package/Drawer/index.js +14 -0
  62. package/Drawer/interface.d.ts +83 -0
  63. package/Drawer/lang/en_US.d.ts +5 -0
  64. package/Drawer/lang/index.d.ts +11 -0
  65. package/Drawer/lang/zh_CN.d.ts +5 -0
  66. package/Empty/images/index.d.ts +2 -0
  67. package/Empty/index.d.ts +30 -0
  68. package/Empty/index.js +14 -0
  69. package/Empty/lang/en_US.d.ts +6 -0
  70. package/Empty/lang/index.d.ts +13 -0
  71. package/Empty/lang/zh_CN.d.ts +6 -0
  72. package/Form/index.d.ts +181 -0
  73. package/Form/index.js +14 -0
  74. package/FormItem/compoments/defaultCompoments/index.d.ts +19 -0
  75. package/FormItem/compoments/formCheckboxGroup/index.d.ts +8 -0
  76. package/FormItem/compoments/formFile/index.d.ts +38 -0
  77. package/FormItem/compoments/formRadioGroup/index.d.ts +8 -0
  78. package/FormItem/compoments/formSelect/index.d.ts +18 -0
  79. package/FormItem/errorTips.d.ts +12 -0
  80. package/FormItem/index.d.ts +152 -0
  81. package/FormItem/index.js +14 -0
  82. package/FormItem/itemType.d.ts +42 -0
  83. package/FormItem/validateFunction.d.ts +15 -0
  84. package/FunctionModal/dialog.d.ts +58 -0
  85. package/FunctionModal/index.d.ts +8 -0
  86. package/FunctionModal/index.js +14 -0
  87. package/FunctionModal/modalContext.d.ts +14 -0
  88. package/GlobalContext/componentsProps.d.ts +19 -0
  89. package/GlobalContext/confirmLocale.d.ts +7 -0
  90. package/GlobalContext/index.d.ts +28 -0
  91. package/GlobalContext/index.js +16 -0
  92. package/GlobalContext/intl.d.ts +34 -0
  93. package/GlobalContext/useFormatMessage.d.ts +3 -0
  94. package/Help/index.d.ts +20 -0
  95. package/Help/index.js +15 -0
  96. package/HelperText/index.d.ts +19 -0
  97. package/HelperText/index.js +15 -0
  98. package/Hooks/useGlobalProps.d.ts +1 -0
  99. package/InputLang/index.d.ts +49 -0
  100. package/InputLang/index.js +14 -0
  101. package/InputNumber/index.d.ts +74 -0
  102. package/InputNumber/index.js +14 -0
  103. package/Label/index.d.ts +35 -0
  104. package/Label/index.js +14 -0
  105. package/Loading/index.d.ts +17 -0
  106. package/Loading/index.js +15 -0
  107. package/Menu/footerExpansion.d.ts +9 -0
  108. package/Menu/index.d.ts +10 -0
  109. package/Menu/index.js +14 -0
  110. package/Menu/interface.d.ts +139 -0
  111. package/Menu/logo.d.ts +9 -0
  112. package/Menu/verticalMenuList.d.ts +14 -0
  113. package/Message/index.d.ts +59 -0
  114. package/Message/index.js +15 -0
  115. package/Modal/Confirm/index.d.ts +66 -0
  116. package/Modal/index.d.ts +61 -0
  117. package/Modal/index.js +14 -0
  118. package/Modal/lang/en_US.d.ts +5 -0
  119. package/Modal/lang/index.d.ts +11 -0
  120. package/Modal/lang/zh_CN.d.ts +5 -0
  121. package/MultiBox/index.d.ts +54 -0
  122. package/MultiBox/index.js +14 -0
  123. package/Notification/index.d.ts +52 -0
  124. package/Notification/index.js +15 -0
  125. package/OperateBtn/index.d.ts +59 -0
  126. package/OperateBtn/index.js +14 -0
  127. package/OperateBtn/lang/en_US.d.ts +4 -0
  128. package/OperateBtn/lang/index.d.ts +9 -0
  129. package/OperateBtn/lang/zh_CN.d.ts +4 -0
  130. package/PageHeader/horizontalMeun.d.ts +9 -0
  131. package/PageHeader/horizontalMeunRight.d.ts +9 -0
  132. package/PageHeader/index.d.ts +10 -0
  133. package/PageHeader/index.js +14 -0
  134. package/PageHeader/interface.d.ts +167 -0
  135. package/Pagination/index.d.ts +33 -0
  136. package/Pagination/index.js +14 -0
  137. package/Pagination/lang/en_US.d.ts +8 -0
  138. package/Pagination/lang/index.d.ts +17 -0
  139. package/Pagination/lang/zh_CN.d.ts +8 -0
  140. package/ParauiProvider/index.d.ts +12 -0
  141. package/ParauiProvider/index.js +15 -0
  142. package/PopConfirm/index.d.ts +56 -0
  143. package/PopConfirm/index.js +14 -0
  144. package/PopConfirm/lang/en_US.d.ts +5 -0
  145. package/PopConfirm/lang/index.d.ts +11 -0
  146. package/PopConfirm/lang/zh_CN.d.ts +5 -0
  147. package/Popover/index.d.ts +14 -0
  148. package/Popover/index.js +15 -0
  149. package/Popper/index.d.ts +13 -0
  150. package/Popper/index.js +16 -0
  151. package/Progress/Line.d.ts +47 -0
  152. package/Progress/Steps.d.ts +17 -0
  153. package/Progress/index.d.ts +81 -0
  154. package/Progress/index.js +20 -0
  155. package/Progress/utils.d.ts +6 -0
  156. package/Querying/images/index.d.ts +2 -0
  157. package/Querying/index.d.ts +26 -0
  158. package/Querying/index.js +14 -0
  159. package/Querying/lang/en_US.d.ts +4 -0
  160. package/Querying/lang/index.d.ts +9 -0
  161. package/Querying/lang/zh_CN.d.ts +4 -0
  162. package/README.md +481 -0
  163. package/Radio/index.d.ts +38 -0
  164. package/Radio/index.js +14 -0
  165. package/RadioGroup/index.d.ts +47 -0
  166. package/RadioGroup/index.js +14 -0
  167. package/Search/index.d.ts +56 -0
  168. package/Search/index.js +14 -0
  169. package/Select/index.d.ts +86 -0
  170. package/Select/index.js +14 -0
  171. package/Select/lang/en_US.d.ts +5 -0
  172. package/Select/lang/index.d.ts +11 -0
  173. package/Select/lang/zh_CN.d.ts +5 -0
  174. package/SelectInput/index.d.ts +11 -0
  175. package/SelectInput/index.js +14 -0
  176. package/SingleBox/index.d.ts +42 -0
  177. package/SingleBox/index.js +14 -0
  178. package/Slider/index.d.ts +14 -0
  179. package/Slider/index.js +15 -0
  180. package/Slider/interface.d.ts +102 -0
  181. package/Split/index.d.ts +7 -0
  182. package/Split/index.js +15 -0
  183. package/Stepper/icons.d.ts +5 -0
  184. package/Stepper/index.d.ts +39 -0
  185. package/Stepper/index.js +15 -0
  186. package/Switch/index.d.ts +78 -0
  187. package/Switch/index.js +14 -0
  188. package/Table/index.d.ts +10 -0
  189. package/Table/index.js +14 -0
  190. package/Table/interface.d.ts +202 -0
  191. package/Table/lang/en_US.d.ts +6 -0
  192. package/Table/lang/index.d.ts +13 -0
  193. package/Table/lang/zh_CN.d.ts +6 -0
  194. package/Table/tableBody.d.ts +9 -0
  195. package/Table/tableBodyElement/index.d.ts +15 -0
  196. package/Table/tableBodyInterface.d.ts +67 -0
  197. package/Table/tableContainer/index.d.ts +16 -0
  198. package/Table/tableElement/index.d.ts +17 -0
  199. package/Table/tableHead.d.ts +9 -0
  200. package/Table/tableHeadElement/index.d.ts +15 -0
  201. package/Table/tableHeadInterface.d.ts +30 -0
  202. package/Table/tablePagination.d.ts +9 -0
  203. package/Table/tablePaginationInterFace.d.ts +24 -0
  204. package/Table/tdElement/index.d.ts +15 -0
  205. package/Table/thElement/index.d.ts +15 -0
  206. package/Table/trElement/index.d.ts +15 -0
  207. package/Table/util.d.ts +16 -0
  208. package/Tabs/index.d.ts +48 -0
  209. package/Tabs/index.js +14 -0
  210. package/Tag/TagGroup.d.ts +66 -0
  211. package/Tag/index.d.ts +34 -0
  212. package/Tag/index.js +14 -0
  213. package/Test/index.d.ts +2 -0
  214. package/Test/index.js +16 -0
  215. package/TextField/index.d.ts +93 -0
  216. package/TextField/index.js +14 -0
  217. package/TimePicker/index.d.ts +22 -0
  218. package/TimePicker/index.js +14 -0
  219. package/TimePicker/locale/en_US.d.ts +3 -0
  220. package/TimePicker/locale/zh_CN.d.ts +3 -0
  221. package/TimePicker/style/index.d.ts +1 -0
  222. package/Timeline/index.d.ts +22 -0
  223. package/Timeline/index.js +15 -0
  224. package/ToggleButton/ToggleButtonGroup.d.ts +49 -0
  225. package/ToggleButton/index.d.ts +49 -0
  226. package/ToggleButton/index.js +14 -0
  227. package/Tooltip/index.d.ts +14 -0
  228. package/Tooltip/index.js +15 -0
  229. package/Transfer/index.d.ts +17 -0
  230. package/Transfer/index.js +14 -0
  231. package/Transfer/lang/en_US.d.ts +6 -0
  232. package/Transfer/lang/index.d.ts +13 -0
  233. package/Transfer/lang/zh_CN.d.ts +6 -0
  234. package/Tree/OperateBar/index.d.ts +13 -0
  235. package/Tree/Tree.d.ts +4 -0
  236. package/Tree/index.d.ts +5 -0
  237. package/Tree/index.js +14 -0
  238. package/Tree/interface.d.ts +207 -0
  239. package/Tree/lang/en_US.d.ts +8 -0
  240. package/Tree/lang/index.d.ts +17 -0
  241. package/Tree/lang/zh_CN.d.ts +8 -0
  242. package/Tree/utils/closestPolyfill.d.ts +0 -0
  243. package/Tree/utils/tools.d.ts +26 -0
  244. package/Tree/utils/treeUtil.d.ts +15 -0
  245. package/Upload/Dragger/index.d.ts +10 -0
  246. package/Upload/ErroTip/index.d.ts +13 -0
  247. package/Upload/ImageUpload/index.d.ts +14 -0
  248. package/Upload/ImgCrop/EasyCrop.d.ts +17 -0
  249. package/Upload/ImgCrop/constants.d.ts +7 -0
  250. package/Upload/ImgCrop/index.d.ts +6 -0
  251. package/Upload/ImgCrop/interface.d.ts +24 -0
  252. package/Upload/UploadList/index.d.ts +5 -0
  253. package/Upload/index.d.ts +15 -0
  254. package/Upload/index.js +14 -0
  255. package/Upload/interface.d.ts +134 -0
  256. package/Upload/lang/en_US.d.ts +12 -0
  257. package/Upload/lang/index.d.ts +25 -0
  258. package/Upload/lang/zh_CN.d.ts +12 -0
  259. package/cdn/AutoBox/index.js +29 -0
  260. package/cdn/AutoTips/index.js +40 -0
  261. package/cdn/Breadcrumbs/index.js +53 -0
  262. package/cdn/Button/index.js +79 -0
  263. package/cdn/ButtonGroup/index.js +79 -0
  264. package/cdn/Carousel/index.js +6 -0
  265. package/cdn/Cascader/index.js +42 -0
  266. package/cdn/Checkbox/index.js +53 -0
  267. package/cdn/CheckboxGroup/index.js +53 -0
  268. package/cdn/Collapse/index.js +27 -0
  269. package/cdn/CollapseBox/index.js +1 -0
  270. package/cdn/ColorPicker/index.js +1 -0
  271. package/cdn/ComboSelect/index.js +438 -0
  272. package/cdn/Container/index.js +1 -0
  273. package/cdn/DatePicker/index.js +185 -0
  274. package/cdn/Desktop/index.js +24 -0
  275. package/cdn/Drawer/index.js +84 -0
  276. package/cdn/Empty/index.js +1 -0
  277. package/cdn/Form/index.js +477 -0
  278. package/cdn/FormItem/index.js +477 -0
  279. package/cdn/FunctionModal/index.js +144 -0
  280. package/cdn/GlobalContext/index.js +1 -0
  281. package/cdn/Help/index.js +53 -0
  282. package/cdn/HelperText/index.js +1 -0
  283. package/cdn/InputLang/index.js +144 -0
  284. package/cdn/InputNumber/index.js +118 -0
  285. package/cdn/Label/index.js +53 -0
  286. package/cdn/Loading/index.js +14 -0
  287. package/cdn/Menu/index.js +40 -0
  288. package/cdn/Message/index.js +53 -0
  289. package/cdn/Modal/index.js +144 -0
  290. package/cdn/MultiBox/index.js +131 -0
  291. package/cdn/Notification/index.js +66 -0
  292. package/cdn/OperateBtn/index.js +92 -0
  293. package/cdn/PageHeader/index.js +92 -0
  294. package/cdn/Pagination/index.js +214 -0
  295. package/cdn/ParauiProvider/index.js +9 -0
  296. package/cdn/PopConfirm/index.js +131 -0
  297. package/cdn/Popover/index.js +16 -0
  298. package/cdn/Popper/index.js +26 -0
  299. package/cdn/Progress/index.js +58 -0
  300. package/cdn/Querying/index.js +1 -0
  301. package/cdn/Radio/index.js +53 -0
  302. package/cdn/RadioGroup/index.js +53 -0
  303. package/cdn/Search/index.js +144 -0
  304. package/cdn/Select/index.js +131 -0
  305. package/cdn/SelectInput/index.js +131 -0
  306. package/cdn/SingleBox/index.js +131 -0
  307. package/cdn/Slider/index.js +16 -0
  308. package/cdn/Split/index.js +1 -0
  309. package/cdn/Stepper/index.js +154 -0
  310. package/cdn/Switch/index.js +71 -0
  311. package/cdn/Table/index.js +292 -0
  312. package/cdn/Tabs/index.js +165 -0
  313. package/cdn/Tag/index.js +27 -0
  314. package/cdn/Test/index.js +1 -0
  315. package/cdn/TextField/index.js +105 -0
  316. package/cdn/TimePicker/index.js +185 -0
  317. package/cdn/Timeline/index.js +16 -0
  318. package/cdn/ToggleButton/index.js +79 -0
  319. package/cdn/Tooltip/index.js +40 -0
  320. package/cdn/Transfer/index.js +170 -0
  321. package/cdn/Tree/index.js +170 -0
  322. package/cdn/Upload/index.js +252 -0
  323. package/index.d.ts +128 -0
  324. package/index.js +19 -0
  325. package/package.json +21 -21
  326. package/style.css +72 -0
@@ -0,0 +1,19 @@
1
+ import { FC } from 'react';
2
+ interface DefaultCompomentsProps {
3
+ moudle: any;
4
+ error: boolean;
5
+ placeholder: string;
6
+ defaultValue: any;
7
+ disabled?: boolean;
8
+ onChange: (e: any) => void;
9
+ inputProps?: {
10
+ [name: string]: any;
11
+ };
12
+ }
13
+ /**
14
+ * @module src\FormItem\compoments\defaultCompoments\index.tsx
15
+ * @author zhanzl
16
+ * @date 2022/06/02
17
+ */
18
+ declare const DefaultCompoments: FC<DefaultCompomentsProps>;
19
+ export default DefaultCompoments;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ import { CheckboxGroupProps } from '../../../CheckboxGroup';
3
+ export interface FormCheckboxGroupProps extends CheckboxGroupProps {
4
+ defaultValue?: any[];
5
+ change?: (value: any) => any;
6
+ }
7
+ declare const FormCheckboxGroup: FC<FormCheckboxGroupProps>;
8
+ export default FormCheckboxGroup;
@@ -0,0 +1,38 @@
1
+ import { FC, InputHTMLAttributes } from "react";
2
+ import { ButtonProps } from "../../../Button";
3
+ import './index.scss';
4
+ export interface FormFileProps {
5
+ /**
6
+ * 禁用
7
+ */
8
+ disabled?: boolean;
9
+ /**
10
+ * 文件类型 可接受字符串 或数组
11
+ */
12
+ fileType?: string | Array<string>;
13
+ /**
14
+ * 按钮名称 默认 选择文件
15
+ */
16
+ buttonLabel?: string;
17
+ /**
18
+ * 值改变传出
19
+ */
20
+ onChange?: (value: FileList) => any;
21
+ /**
22
+ * 默认值
23
+ */
24
+ defaultValue?: string | FileList;
25
+ /**
26
+ * input 其他属性
27
+ */
28
+ inputProps?: InputHTMLAttributes<HTMLInputElement>;
29
+ /**
30
+ * 按钮配置
31
+ */
32
+ buttonProps?: ButtonProps;
33
+ }
34
+ /**
35
+ * 文件组件
36
+ */
37
+ declare const FormFile: FC<FormFileProps>;
38
+ export default FormFile;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ import { RadioGroupProps } from '../../../RadioGroup';
3
+ export interface FormRadioGroupProps extends RadioGroupProps {
4
+ defaultValue?: string;
5
+ change?: (value: any) => any;
6
+ }
7
+ declare const FormRadioGroup: FC<FormRadioGroupProps>;
8
+ export default FormRadioGroup;
@@ -0,0 +1,18 @@
1
+ import { FC } from "react";
2
+ import { SelectProps } from '../../../Select';
3
+ export interface FormSelectProps extends SelectProps {
4
+ /**
5
+ * 默认值
6
+ */
7
+ defaultValue?: string;
8
+ /**
9
+ * 改变方法
10
+ */
11
+ change?: (value: any) => any;
12
+ /**
13
+ * 绑定值
14
+ */
15
+ value?: string;
16
+ }
17
+ declare const FormSelect: FC<FormSelectProps>;
18
+ export default FormSelect;
@@ -0,0 +1,12 @@
1
+ import { HelperTextProps } from '../HelperText';
2
+ import { FC } from 'react';
3
+ /**
4
+ * 报错信息组件
5
+ * @description 为了解决,在主组件设置state,导致输入框中内容刷新,且失去焦点
6
+ */
7
+ declare const ErrorTips: FC<{
8
+ getSetError?: Function;
9
+ errorMessage?: string;
10
+ helperTextProps?: HelperTextProps;
11
+ }>;
12
+ export default ErrorTips;
@@ -0,0 +1,152 @@
1
+ import { FC, ReactElement, ReactNode } from 'react';
2
+ import { ItemTypeProps } from './itemType';
3
+ import { validateFunctionType } from './validateFunction';
4
+ import { LabelProps } from '../Label';
5
+ import { HelperTextProps } from '../HelperText';
6
+ import './index.scss';
7
+ export declare type formInputType = 'checkGroup' | 'select' | 'radioGroup' | 'textarea' | 'default' | 'switch' | 'number' | 'file' | 'comboSelect' | ReactNode | string | FC<ItemTypeProps>;
8
+ /**
9
+ * 表单操作项的其他配置
10
+ */
11
+ interface inputProps {
12
+ [name: string]: any;
13
+ }
14
+ /**
15
+ * 校验规则
16
+ * 一条校验规则对应一个错误提示
17
+ */
18
+ export interface ruleType {
19
+ /**
20
+ * 校验方法
21
+ * @return {boolean | string}, 子定义校验方法时 返回 false 或 字符串 均为校验失败 true为校验通过
22
+ */
23
+ validate?: {
24
+ 'required'?: boolean | validateFunctionType;
25
+ 'maxlength'?: number | validateFunctionType;
26
+ 'minLength'?: number | validateFunctionType;
27
+ 'pattern'?: RegExp | validateFunctionType;
28
+ 'disOnlySpace'?: boolean | validateFunctionType;
29
+ [name: string]: validateFunctionType | boolean | number | RegExp | undefined;
30
+ };
31
+ message?: {
32
+ [name: string]: string;
33
+ };
34
+ }
35
+ /**
36
+ * form 表单组件属性
37
+ * @typedef {Object} FormItemProps
38
+ */
39
+ export interface FormItemProps {
40
+ /**
41
+ * 表单项形态,默认 horizontal
42
+ */
43
+ type?: 'vertical' | 'horizontal';
44
+ /**
45
+ * 输入框类型
46
+ * 仅支持para-ui/code/里面有的数据组件
47
+ */
48
+ itemType?: formInputType;
49
+ /**
50
+ * 输入框类型
51
+ * 仅支持para-ui/code/里面有的数据组件
52
+ */
53
+ InputType?: formInputType;
54
+ /**
55
+ * 输入框其他属性配置
56
+ */
57
+ inputProps?: inputProps;
58
+ /**
59
+ * label props
60
+ */
61
+ labelProps?: LabelProps;
62
+ /**
63
+ * 报错提示其他配置
64
+ */
65
+ helperTextProps?: HelperTextProps;
66
+ /**
67
+ * 文字宽度, 只对 type === vertical,状态下生效
68
+ */
69
+ labelWidth?: number;
70
+ /**
71
+ * 是否禁用
72
+ */
73
+ disabled?: boolean;
74
+ /**
75
+ * 值改变传出
76
+ */
77
+ change?: (value: any) => void;
78
+ /**
79
+ * 不显示 该选项
80
+ */
81
+ hide?: boolean;
82
+ /**
83
+ * 提示。会有label上出现个图标提示
84
+ */
85
+ tips?: string;
86
+ /**
87
+ * 文字描述
88
+ */
89
+ label?: string | ((props: FormItemProps) => ReactNode);
90
+ /**
91
+ * 隐藏 label
92
+ */
93
+ hideLabel?: boolean;
94
+ /**
95
+ * 隐藏 error
96
+ */
97
+ hideError?: boolean;
98
+ /**
99
+ * name,一般对应后台属性,需要唯一性
100
+ */
101
+ name: string;
102
+ /**
103
+ * 校验规则
104
+ */
105
+ rules?: ruleType;
106
+ /**
107
+ * 设置值的方法
108
+ */
109
+ setValue?: Function;
110
+ /**
111
+ * 报错信息
112
+ */
113
+ errorMessage?: string;
114
+ /**
115
+ * 回填数据
116
+ */
117
+ backData?: {
118
+ [name: string]: any;
119
+ };
120
+ /**
121
+ * 是否启用必填框,不允许输入纯空格
122
+ */
123
+ disOnlySpace?: boolean;
124
+ /**
125
+ * 必填显示渲染方式
126
+ */
127
+ requiredElement?: ReactElement | string;
128
+ /**
129
+ * 隐藏默认必填标记
130
+ */
131
+ disRequiredElement?: boolean;
132
+ /**
133
+ * 其他配置
134
+ */
135
+ [name: string]: any;
136
+ /**
137
+ * 自定义class
138
+ */
139
+ className?: string;
140
+ /**
141
+ * 默认值
142
+ * 会被backData,回填数据替换
143
+ */
144
+ defaultValue?: any;
145
+ }
146
+ /**
147
+ * form 表单单行组件
148
+ * @author zhanzl
149
+ * @description 用于根据配置自动生成表单
150
+ */
151
+ declare const FormItem: FC<FormItemProps>;
152
+ export default FormItem;