@para-ui/core 2.2.4 → 2.2.6-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 (326) hide show
  1. package/package.json +58 -21
  2. package/AutoBox/index.d.ts +0 -34
  3. package/AutoBox/index.js +0 -15
  4. package/AutoTips/index.d.ts +0 -27
  5. package/AutoTips/index.js +0 -15
  6. package/Breadcrumbs/index.d.ts +0 -39
  7. package/Breadcrumbs/index.js +0 -15
  8. package/Button/SplitButton.d.ts +0 -61
  9. package/Button/index.d.ts +0 -56
  10. package/Button/index.js +0 -14
  11. package/Button/lang/en_US.d.ts +0 -4
  12. package/Button/lang/index.d.ts +0 -9
  13. package/Button/lang/zh_CN.d.ts +0 -4
  14. package/ButtonGroup/index.d.ts +0 -33
  15. package/ButtonGroup/index.js +0 -14
  16. package/Carousel/index.d.ts +0 -30
  17. package/Carousel/index.js +0 -15
  18. package/Cascader/index.d.ts +0 -52
  19. package/Cascader/index.js +0 -15
  20. package/Cascader/lang/en_US.d.ts +0 -4
  21. package/Cascader/lang/index.d.ts +0 -9
  22. package/Cascader/lang/zh_CN.d.ts +0 -4
  23. package/Checkbox/index.d.ts +0 -40
  24. package/Checkbox/index.js +0 -14
  25. package/CheckboxGroup/index.d.ts +0 -46
  26. package/CheckboxGroup/index.js +0 -14
  27. package/Collapse/collapsePanel.d.ts +0 -30
  28. package/Collapse/index.d.ts +0 -57
  29. package/Collapse/index.js +0 -15
  30. package/Collapse/motion.d.ts +0 -5
  31. package/Collapse/util.d.ts +0 -11
  32. package/CollapseBox/index.d.ts +0 -27
  33. package/CollapseBox/index.js +0 -15
  34. package/CollapseBox/util.d.ts +0 -5
  35. package/ColorPicker/index.d.ts +0 -4
  36. package/ColorPicker/index.js +0 -1
  37. package/ComboSelect/WithTabsCombo/index.d.ts +0 -11
  38. package/ComboSelect/WithTabsCombo/interface.d.ts +0 -141
  39. package/ComboSelect/index.d.ts +0 -11
  40. package/ComboSelect/index.js +0 -14
  41. package/ComboSelect/interface.d.ts +0 -143
  42. package/ComboSelect/lang/en_US.d.ts +0 -8
  43. package/ComboSelect/lang/index.d.ts +0 -17
  44. package/ComboSelect/lang/zh_CN.d.ts +0 -8
  45. package/ComboSelect/utils.d.ts +0 -12
  46. package/Container/index.d.ts +0 -77
  47. package/Container/index.js +0 -15
  48. package/DatePicker/PickerButton.d.ts +0 -3
  49. package/DatePicker/PickerTag.d.ts +0 -3
  50. package/DatePicker/generatePicker/generateRangePicker.d.ts +0 -4
  51. package/DatePicker/generatePicker/generateSinglePicker.d.ts +0 -11
  52. package/DatePicker/generatePicker/index.d.ts +0 -77
  53. package/DatePicker/index.d.ts +0 -18
  54. package/DatePicker/index.js +0 -14
  55. package/DatePicker/lang/en_US.d.ts +0 -3
  56. package/DatePicker/lang/index.d.ts +0 -7
  57. package/DatePicker/lang/zh_CN.d.ts +0 -3
  58. package/DatePicker/util.d.ts +0 -20
  59. package/Desktop/index.d.ts +0 -55
  60. package/Desktop/index.js +0 -14
  61. package/Drawer/index.d.ts +0 -11
  62. package/Drawer/index.js +0 -14
  63. package/Drawer/interface.d.ts +0 -83
  64. package/Drawer/lang/en_US.d.ts +0 -5
  65. package/Drawer/lang/index.d.ts +0 -11
  66. package/Drawer/lang/zh_CN.d.ts +0 -5
  67. package/Empty/images/index.d.ts +0 -2
  68. package/Empty/index.d.ts +0 -30
  69. package/Empty/index.js +0 -14
  70. package/Empty/lang/en_US.d.ts +0 -6
  71. package/Empty/lang/index.d.ts +0 -13
  72. package/Empty/lang/zh_CN.d.ts +0 -6
  73. package/Form/index.d.ts +0 -181
  74. package/Form/index.js +0 -14
  75. package/FormItem/compoments/defaultCompoments/index.d.ts +0 -19
  76. package/FormItem/compoments/formCheckboxGroup/index.d.ts +0 -8
  77. package/FormItem/compoments/formFile/index.d.ts +0 -38
  78. package/FormItem/compoments/formRadioGroup/index.d.ts +0 -8
  79. package/FormItem/compoments/formSelect/index.d.ts +0 -18
  80. package/FormItem/errorTips.d.ts +0 -12
  81. package/FormItem/index.d.ts +0 -152
  82. package/FormItem/index.js +0 -14
  83. package/FormItem/itemType.d.ts +0 -42
  84. package/FormItem/validateFunction.d.ts +0 -15
  85. package/FunctionModal/dialog.d.ts +0 -58
  86. package/FunctionModal/index.d.ts +0 -8
  87. package/FunctionModal/index.js +0 -14
  88. package/FunctionModal/modalContext.d.ts +0 -14
  89. package/GlobalContext/componentsProps.d.ts +0 -19
  90. package/GlobalContext/confirmLocale.d.ts +0 -7
  91. package/GlobalContext/index.d.ts +0 -28
  92. package/GlobalContext/index.js +0 -16
  93. package/GlobalContext/intl.d.ts +0 -34
  94. package/GlobalContext/useFormatMessage.d.ts +0 -3
  95. package/Help/index.d.ts +0 -20
  96. package/Help/index.js +0 -15
  97. package/HelperText/index.d.ts +0 -19
  98. package/HelperText/index.js +0 -15
  99. package/Hooks/useGlobalProps.d.ts +0 -1
  100. package/InputLang/index.d.ts +0 -49
  101. package/InputLang/index.js +0 -14
  102. package/InputNumber/index.d.ts +0 -74
  103. package/InputNumber/index.js +0 -14
  104. package/Label/index.d.ts +0 -35
  105. package/Label/index.js +0 -14
  106. package/Loading/index.d.ts +0 -17
  107. package/Loading/index.js +0 -15
  108. package/Menu/footerExpansion.d.ts +0 -9
  109. package/Menu/index.d.ts +0 -10
  110. package/Menu/index.js +0 -14
  111. package/Menu/interface.d.ts +0 -139
  112. package/Menu/logo.d.ts +0 -9
  113. package/Menu/verticalMenuList.d.ts +0 -14
  114. package/Message/index.d.ts +0 -59
  115. package/Message/index.js +0 -15
  116. package/Modal/Confirm/index.d.ts +0 -66
  117. package/Modal/index.d.ts +0 -61
  118. package/Modal/index.js +0 -14
  119. package/Modal/lang/en_US.d.ts +0 -5
  120. package/Modal/lang/index.d.ts +0 -11
  121. package/Modal/lang/zh_CN.d.ts +0 -5
  122. package/MultiBox/index.d.ts +0 -54
  123. package/MultiBox/index.js +0 -14
  124. package/Notification/index.d.ts +0 -52
  125. package/Notification/index.js +0 -15
  126. package/OperateBtn/index.d.ts +0 -59
  127. package/OperateBtn/index.js +0 -14
  128. package/OperateBtn/lang/en_US.d.ts +0 -4
  129. package/OperateBtn/lang/index.d.ts +0 -9
  130. package/OperateBtn/lang/zh_CN.d.ts +0 -4
  131. package/PageHeader/horizontalMeun.d.ts +0 -9
  132. package/PageHeader/horizontalMeunRight.d.ts +0 -9
  133. package/PageHeader/index.d.ts +0 -10
  134. package/PageHeader/index.js +0 -14
  135. package/PageHeader/interface.d.ts +0 -167
  136. package/Pagination/index.d.ts +0 -33
  137. package/Pagination/index.js +0 -14
  138. package/Pagination/lang/en_US.d.ts +0 -8
  139. package/Pagination/lang/index.d.ts +0 -17
  140. package/Pagination/lang/zh_CN.d.ts +0 -8
  141. package/ParauiProvider/index.d.ts +0 -12
  142. package/ParauiProvider/index.js +0 -15
  143. package/PopConfirm/index.d.ts +0 -56
  144. package/PopConfirm/index.js +0 -14
  145. package/PopConfirm/lang/en_US.d.ts +0 -5
  146. package/PopConfirm/lang/index.d.ts +0 -11
  147. package/PopConfirm/lang/zh_CN.d.ts +0 -5
  148. package/Popover/index.d.ts +0 -14
  149. package/Popover/index.js +0 -15
  150. package/Popper/index.d.ts +0 -13
  151. package/Popper/index.js +0 -16
  152. package/Progress/Line.d.ts +0 -47
  153. package/Progress/Steps.d.ts +0 -17
  154. package/Progress/index.d.ts +0 -81
  155. package/Progress/index.js +0 -20
  156. package/Progress/utils.d.ts +0 -6
  157. package/Querying/images/index.d.ts +0 -2
  158. package/Querying/index.d.ts +0 -26
  159. package/Querying/index.js +0 -14
  160. package/Querying/lang/en_US.d.ts +0 -4
  161. package/Querying/lang/index.d.ts +0 -9
  162. package/Querying/lang/zh_CN.d.ts +0 -4
  163. package/README.md +0 -489
  164. package/Radio/index.d.ts +0 -38
  165. package/Radio/index.js +0 -14
  166. package/RadioGroup/index.d.ts +0 -47
  167. package/RadioGroup/index.js +0 -14
  168. package/Search/index.d.ts +0 -56
  169. package/Search/index.js +0 -14
  170. package/Select/index.d.ts +0 -86
  171. package/Select/index.js +0 -14
  172. package/Select/lang/en_US.d.ts +0 -5
  173. package/Select/lang/index.d.ts +0 -11
  174. package/Select/lang/zh_CN.d.ts +0 -5
  175. package/SelectInput/index.d.ts +0 -11
  176. package/SelectInput/index.js +0 -14
  177. package/SingleBox/index.d.ts +0 -42
  178. package/SingleBox/index.js +0 -14
  179. package/Slider/index.d.ts +0 -14
  180. package/Slider/index.js +0 -15
  181. package/Slider/interface.d.ts +0 -102
  182. package/Split/index.d.ts +0 -7
  183. package/Split/index.js +0 -15
  184. package/Stepper/icons.d.ts +0 -5
  185. package/Stepper/index.d.ts +0 -39
  186. package/Stepper/index.js +0 -15
  187. package/Switch/index.d.ts +0 -78
  188. package/Switch/index.js +0 -14
  189. package/Table/index.d.ts +0 -10
  190. package/Table/index.js +0 -14
  191. package/Table/interface.d.ts +0 -202
  192. package/Table/lang/en_US.d.ts +0 -6
  193. package/Table/lang/index.d.ts +0 -13
  194. package/Table/lang/zh_CN.d.ts +0 -6
  195. package/Table/tableBody.d.ts +0 -9
  196. package/Table/tableBodyElement/index.d.ts +0 -15
  197. package/Table/tableBodyInterface.d.ts +0 -67
  198. package/Table/tableContainer/index.d.ts +0 -16
  199. package/Table/tableElement/index.d.ts +0 -17
  200. package/Table/tableHead.d.ts +0 -9
  201. package/Table/tableHeadElement/index.d.ts +0 -15
  202. package/Table/tableHeadInterface.d.ts +0 -30
  203. package/Table/tablePagination.d.ts +0 -9
  204. package/Table/tablePaginationInterFace.d.ts +0 -24
  205. package/Table/tdElement/index.d.ts +0 -15
  206. package/Table/thElement/index.d.ts +0 -15
  207. package/Table/trElement/index.d.ts +0 -15
  208. package/Table/util.d.ts +0 -16
  209. package/Tabs/index.d.ts +0 -48
  210. package/Tabs/index.js +0 -14
  211. package/Tag/TagGroup.d.ts +0 -66
  212. package/Tag/index.d.ts +0 -34
  213. package/Tag/index.js +0 -14
  214. package/Test/index.d.ts +0 -2
  215. package/Test/index.js +0 -16
  216. package/TextField/index.d.ts +0 -93
  217. package/TextField/index.js +0 -14
  218. package/TimePicker/index.d.ts +0 -22
  219. package/TimePicker/index.js +0 -14
  220. package/TimePicker/locale/en_US.d.ts +0 -3
  221. package/TimePicker/locale/zh_CN.d.ts +0 -3
  222. package/TimePicker/style/index.d.ts +0 -1
  223. package/Timeline/index.d.ts +0 -22
  224. package/Timeline/index.js +0 -15
  225. package/ToggleButton/ToggleButtonGroup.d.ts +0 -49
  226. package/ToggleButton/index.d.ts +0 -49
  227. package/ToggleButton/index.js +0 -14
  228. package/Tooltip/index.d.ts +0 -14
  229. package/Tooltip/index.js +0 -15
  230. package/Transfer/index.d.ts +0 -17
  231. package/Transfer/index.js +0 -14
  232. package/Transfer/lang/en_US.d.ts +0 -6
  233. package/Transfer/lang/index.d.ts +0 -13
  234. package/Transfer/lang/zh_CN.d.ts +0 -6
  235. package/Tree/OperateBar/index.d.ts +0 -13
  236. package/Tree/Tree.d.ts +0 -4
  237. package/Tree/index.d.ts +0 -5
  238. package/Tree/index.js +0 -14
  239. package/Tree/interface.d.ts +0 -207
  240. package/Tree/lang/en_US.d.ts +0 -8
  241. package/Tree/lang/index.d.ts +0 -17
  242. package/Tree/lang/zh_CN.d.ts +0 -8
  243. package/Tree/utils/closestPolyfill.d.ts +0 -0
  244. package/Tree/utils/tools.d.ts +0 -26
  245. package/Tree/utils/treeUtil.d.ts +0 -15
  246. package/Upload/Dragger/index.d.ts +0 -10
  247. package/Upload/ErroTip/index.d.ts +0 -13
  248. package/Upload/ImageUpload/index.d.ts +0 -14
  249. package/Upload/ImgCrop/EasyCrop.d.ts +0 -17
  250. package/Upload/ImgCrop/constants.d.ts +0 -7
  251. package/Upload/ImgCrop/index.d.ts +0 -6
  252. package/Upload/ImgCrop/interface.d.ts +0 -24
  253. package/Upload/UploadList/index.d.ts +0 -5
  254. package/Upload/index.d.ts +0 -15
  255. package/Upload/index.js +0 -14
  256. package/Upload/interface.d.ts +0 -134
  257. package/Upload/lang/en_US.d.ts +0 -12
  258. package/Upload/lang/index.d.ts +0 -25
  259. package/Upload/lang/zh_CN.d.ts +0 -12
  260. package/cdn/AutoBox/index.js +0 -29
  261. package/cdn/AutoTips/index.js +0 -40
  262. package/cdn/Breadcrumbs/index.js +0 -53
  263. package/cdn/Button/index.js +0 -79
  264. package/cdn/ButtonGroup/index.js +0 -79
  265. package/cdn/Carousel/index.js +0 -6
  266. package/cdn/Cascader/index.js +0 -42
  267. package/cdn/Checkbox/index.js +0 -53
  268. package/cdn/CheckboxGroup/index.js +0 -53
  269. package/cdn/Collapse/index.js +0 -27
  270. package/cdn/CollapseBox/index.js +0 -1
  271. package/cdn/ColorPicker/index.js +0 -1
  272. package/cdn/ComboSelect/index.js +0 -438
  273. package/cdn/Container/index.js +0 -1
  274. package/cdn/DatePicker/index.js +0 -185
  275. package/cdn/Desktop/index.js +0 -24
  276. package/cdn/Drawer/index.js +0 -84
  277. package/cdn/Empty/index.js +0 -1
  278. package/cdn/Form/index.js +0 -477
  279. package/cdn/FormItem/index.js +0 -477
  280. package/cdn/FunctionModal/index.js +0 -144
  281. package/cdn/GlobalContext/index.js +0 -1
  282. package/cdn/Help/index.js +0 -53
  283. package/cdn/HelperText/index.js +0 -1
  284. package/cdn/InputLang/index.js +0 -144
  285. package/cdn/InputNumber/index.js +0 -118
  286. package/cdn/Label/index.js +0 -53
  287. package/cdn/Loading/index.js +0 -14
  288. package/cdn/Menu/index.js +0 -40
  289. package/cdn/Message/index.js +0 -53
  290. package/cdn/Modal/index.js +0 -144
  291. package/cdn/MultiBox/index.js +0 -131
  292. package/cdn/Notification/index.js +0 -66
  293. package/cdn/OperateBtn/index.js +0 -92
  294. package/cdn/PageHeader/index.js +0 -92
  295. package/cdn/Pagination/index.js +0 -214
  296. package/cdn/ParauiProvider/index.js +0 -9
  297. package/cdn/PopConfirm/index.js +0 -131
  298. package/cdn/Popover/index.js +0 -16
  299. package/cdn/Popper/index.js +0 -26
  300. package/cdn/Progress/index.js +0 -58
  301. package/cdn/Querying/index.js +0 -1
  302. package/cdn/Radio/index.js +0 -53
  303. package/cdn/RadioGroup/index.js +0 -53
  304. package/cdn/Search/index.js +0 -144
  305. package/cdn/Select/index.js +0 -131
  306. package/cdn/SelectInput/index.js +0 -131
  307. package/cdn/SingleBox/index.js +0 -131
  308. package/cdn/Slider/index.js +0 -16
  309. package/cdn/Split/index.js +0 -1
  310. package/cdn/Stepper/index.js +0 -154
  311. package/cdn/Switch/index.js +0 -71
  312. package/cdn/Table/index.js +0 -292
  313. package/cdn/Tabs/index.js +0 -165
  314. package/cdn/Tag/index.js +0 -27
  315. package/cdn/Test/index.js +0 -1
  316. package/cdn/TextField/index.js +0 -105
  317. package/cdn/TimePicker/index.js +0 -185
  318. package/cdn/Timeline/index.js +0 -16
  319. package/cdn/ToggleButton/index.js +0 -79
  320. package/cdn/Tooltip/index.js +0 -40
  321. package/cdn/Transfer/index.js +0 -170
  322. package/cdn/Tree/index.js +0 -170
  323. package/cdn/Upload/index.js +0 -252
  324. package/index.d.ts +0 -128
  325. package/index.js +0 -19
  326. package/style.css +0 -72
@@ -1,19 +0,0 @@
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;
@@ -1,8 +0,0 @@
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;
@@ -1,38 +0,0 @@
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;
@@ -1,8 +0,0 @@
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;
@@ -1,18 +0,0 @@
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;
@@ -1,12 +0,0 @@
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;
@@ -1,152 +0,0 @@
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;