@para-ui/core 2.2.40 → 2.2.41

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 (248) hide show
  1. package/AutoBox/index.d.ts +34 -34
  2. package/AutoTips/index.d.ts +27 -27
  3. package/Breadcrumbs/index.d.ts +39 -39
  4. package/Button/SplitButton.d.ts +61 -61
  5. package/Button/index.d.ts +56 -56
  6. package/Button/lang/en_US.d.ts +4 -4
  7. package/Button/lang/index.d.ts +9 -9
  8. package/Button/lang/zh_CN.d.ts +4 -4
  9. package/ButtonGroup/index.d.ts +33 -33
  10. package/ButtonGroup/index.js +2 -2
  11. package/Carousel/index.d.ts +30 -30
  12. package/Cascader/index.d.ts +54 -54
  13. package/Cascader/lang/en_US.d.ts +4 -4
  14. package/Cascader/lang/index.d.ts +9 -9
  15. package/Cascader/lang/zh_CN.d.ts +4 -4
  16. package/Checkbox/index.d.ts +40 -40
  17. package/CheckboxGroup/index.d.ts +46 -46
  18. package/CheckboxGroup/index.js +2 -2
  19. package/Collapse/collapsePanel.d.ts +30 -30
  20. package/Collapse/index.d.ts +57 -57
  21. package/Collapse/motion.d.ts +5 -5
  22. package/Collapse/util.d.ts +11 -11
  23. package/CollapseBox/index.d.ts +27 -27
  24. package/CollapseBox/util.d.ts +5 -5
  25. package/CollapseLayout/index.d.ts +51 -51
  26. package/ColorPicker/index.d.ts +4 -4
  27. package/ComboSelect/WithTabsCombo/index.d.ts +11 -11
  28. package/ComboSelect/WithTabsCombo/interface.d.ts +141 -141
  29. package/ComboSelect/index.d.ts +11 -11
  30. package/ComboSelect/interface.d.ts +149 -149
  31. package/ComboSelect/lang/en_US.d.ts +9 -9
  32. package/ComboSelect/lang/index.d.ts +19 -19
  33. package/ComboSelect/lang/zh_CN.d.ts +9 -9
  34. package/ComboSelect/utils.d.ts +12 -12
  35. package/Container/index.d.ts +77 -77
  36. package/DatePicker/PickerButton.d.ts +3 -3
  37. package/DatePicker/PickerTag.d.ts +3 -3
  38. package/DatePicker/generatePicker/generateRangePicker.d.ts +4 -4
  39. package/DatePicker/generatePicker/generateSinglePicker.d.ts +11 -11
  40. package/DatePicker/generatePicker/index.d.ts +77 -77
  41. package/DatePicker/index.d.ts +18 -18
  42. package/DatePicker/lang/en_US.d.ts +3 -3
  43. package/DatePicker/lang/index.d.ts +7 -7
  44. package/DatePicker/lang/zh_CN.d.ts +3 -3
  45. package/DatePicker/util.d.ts +20 -20
  46. package/Desktop/index.d.ts +55 -55
  47. package/Drawer/index.d.ts +11 -11
  48. package/Drawer/interface.d.ts +83 -83
  49. package/Drawer/lang/en_US.d.ts +5 -5
  50. package/Drawer/lang/index.d.ts +11 -11
  51. package/Drawer/lang/zh_CN.d.ts +5 -5
  52. package/Dropdown/index.d.ts +39 -39
  53. package/DynamicMultiBox/formItem.d.ts +13 -13
  54. package/DynamicMultiBox/index.d.ts +4 -4
  55. package/DynamicMultiBox/index.js +2 -2
  56. package/DynamicMultiBox/interface.d.ts +161 -161
  57. package/DynamicMultiBox/rowForm.d.ts +24 -24
  58. package/Empty/images/index.d.ts +2 -2
  59. package/Empty/index.d.ts +30 -30
  60. package/Empty/lang/en_US.d.ts +6 -6
  61. package/Empty/lang/index.d.ts +13 -13
  62. package/Empty/lang/zh_CN.d.ts +6 -6
  63. package/Form/index.d.ts +181 -181
  64. package/Form/index.js +2 -2
  65. package/FormItem/compoments/defaultCompoments/index.d.ts +19 -19
  66. package/FormItem/compoments/formCheckboxGroup/index.d.ts +8 -8
  67. package/FormItem/compoments/formFile/index.d.ts +38 -38
  68. package/FormItem/compoments/formRadioGroup/index.d.ts +8 -8
  69. package/FormItem/compoments/formSelect/index.d.ts +18 -18
  70. package/FormItem/errorTips.d.ts +12 -12
  71. package/FormItem/index.d.ts +152 -152
  72. package/FormItem/index.js +2 -2
  73. package/FormItem/itemType.d.ts +42 -42
  74. package/FormItem/validateFunction.d.ts +15 -15
  75. package/FunctionModal/dialog.d.ts +58 -58
  76. package/FunctionModal/index.d.ts +8 -8
  77. package/FunctionModal/modalContext.d.ts +14 -14
  78. package/GlobalContext/componentsProps.d.ts +21 -21
  79. package/GlobalContext/confirmLocale.d.ts +7 -7
  80. package/GlobalContext/constant.d.ts +7 -7
  81. package/GlobalContext/index.d.ts +28 -28
  82. package/GlobalContext/intl.d.ts +34 -34
  83. package/GlobalContext/useFormatMessage.d.ts +3 -3
  84. package/Help/index.d.ts +20 -20
  85. package/HelperText/index.d.ts +19 -19
  86. package/Hooks/useGlobalProps.d.ts +1 -1
  87. package/InputLang/index.d.ts +49 -49
  88. package/InputNumber/index.d.ts +74 -74
  89. package/Label/index.d.ts +35 -35
  90. package/Loading/index.d.ts +17 -17
  91. package/Menu/footerExpansion.d.ts +9 -9
  92. package/Menu/index.d.ts +10 -10
  93. package/Menu/interface.d.ts +139 -139
  94. package/Menu/logo.d.ts +9 -9
  95. package/Menu/verticalMenuList.d.ts +14 -14
  96. package/Message/index.d.ts +73 -73
  97. package/Modal/Confirm/index.d.ts +66 -66
  98. package/Modal/index.d.ts +61 -61
  99. package/Modal/lang/en_US.d.ts +5 -5
  100. package/Modal/lang/index.d.ts +11 -11
  101. package/Modal/lang/zh_CN.d.ts +5 -5
  102. package/MultiBox/index.d.ts +54 -54
  103. package/Notification/index.d.ts +52 -52
  104. package/OperateBtn/index.d.ts +59 -59
  105. package/OperateBtn/lang/en_US.d.ts +4 -4
  106. package/OperateBtn/lang/index.d.ts +9 -9
  107. package/OperateBtn/lang/zh_CN.d.ts +4 -4
  108. package/PageHeader/horizontalMeun.d.ts +9 -9
  109. package/PageHeader/horizontalMeunRight.d.ts +9 -9
  110. package/PageHeader/index.d.ts +10 -10
  111. package/PageHeader/interface.d.ts +167 -167
  112. package/Pagination/index.d.ts +33 -33
  113. package/Pagination/lang/en_US.d.ts +8 -8
  114. package/Pagination/lang/index.d.ts +17 -17
  115. package/Pagination/lang/zh_CN.d.ts +8 -8
  116. package/ParauiProvider/index.d.ts +12 -12
  117. package/PasswordRules/index.d.ts +46 -46
  118. package/PopConfirm/index.d.ts +56 -56
  119. package/PopConfirm/lang/en_US.d.ts +5 -5
  120. package/PopConfirm/lang/index.d.ts +11 -11
  121. package/PopConfirm/lang/zh_CN.d.ts +5 -5
  122. package/Popover/index.d.ts +14 -14
  123. package/PopoverNew/TooltipNew/index.d.ts +11 -11
  124. package/PopoverNew/TooltipNew/interface.d.ts +31 -31
  125. package/PopoverNew/TooltipNew/utils.d.ts +18 -18
  126. package/PopoverNew/index.d.ts +16 -16
  127. package/Popper/index.d.ts +13 -13
  128. package/Progress/Line.d.ts +47 -47
  129. package/Progress/Steps.d.ts +17 -17
  130. package/Progress/index.d.ts +81 -81
  131. package/Progress/utils.d.ts +6 -6
  132. package/Querying/images/index.d.ts +2 -2
  133. package/Querying/index.d.ts +26 -26
  134. package/Querying/lang/en_US.d.ts +4 -4
  135. package/Querying/lang/index.d.ts +9 -9
  136. package/Querying/lang/zh_CN.d.ts +4 -4
  137. package/README.md +744 -739
  138. package/Radio/index.d.ts +38 -38
  139. package/RadioGroup/index.d.ts +47 -47
  140. package/RadioGroup/index.js +2 -2
  141. package/Search/index.d.ts +56 -56
  142. package/Select/index.d.ts +96 -96
  143. package/Select/lang/en_US.d.ts +5 -5
  144. package/Select/lang/index.d.ts +11 -11
  145. package/Select/lang/zh_CN.d.ts +5 -5
  146. package/SelectInput/index.d.ts +11 -11
  147. package/Selector/index.d.ts +11 -11
  148. package/Selector/index.js +2 -2
  149. package/Selector/interface.d.ts +428 -428
  150. package/Selector/lang/en_US.d.ts +11 -11
  151. package/Selector/lang/index.d.ts +23 -23
  152. package/Selector/lang/zh_CN.d.ts +11 -11
  153. package/Selector/selectorData/index.d.ts +10 -10
  154. package/Selector/selectorMain/index.d.ts +10 -10
  155. package/Selector/selectorNode/index.d.ts +10 -10
  156. package/Selector/util.d.ts +15 -15
  157. package/SelectorPicker/index.d.ts +53 -53
  158. package/SelectorPicker/index.js +2 -2
  159. package/SingleBox/index.d.ts +42 -42
  160. package/Slider/index.d.ts +14 -14
  161. package/Slider/interface.d.ts +102 -102
  162. package/Split/index.d.ts +7 -7
  163. package/Stepper/icons.d.ts +5 -5
  164. package/Stepper/index.d.ts +39 -39
  165. package/Switch/index.d.ts +78 -78
  166. package/Table/index.d.ts +10 -10
  167. package/Table/interface.d.ts +271 -271
  168. package/Table/lang/en_US.d.ts +8 -8
  169. package/Table/lang/index.d.ts +17 -17
  170. package/Table/lang/zh_CN.d.ts +8 -8
  171. package/Table/tableBody.d.ts +9 -9
  172. package/Table/tableBodyElement/index.d.ts +15 -15
  173. package/Table/tableBodyInterface.d.ts +67 -67
  174. package/Table/tableContainer/index.d.ts +16 -16
  175. package/Table/tableElement/index.d.ts +15 -15
  176. package/Table/tableHead.d.ts +9 -9
  177. package/Table/tableHeadElement/index.d.ts +15 -15
  178. package/Table/tableHeadInterface.d.ts +30 -30
  179. package/Table/tablePagination.d.ts +9 -9
  180. package/Table/tablePaginationInterFace.d.ts +24 -24
  181. package/Table/tdElement/index.d.ts +15 -15
  182. package/Table/thElement/index.d.ts +15 -15
  183. package/Table/trElement/index.d.ts +15 -15
  184. package/Table/util.d.ts +28 -28
  185. package/Tabs/index.d.ts +48 -48
  186. package/Tag/TagGroup.d.ts +66 -66
  187. package/Tag/index.d.ts +34 -34
  188. package/TextField/index.d.ts +95 -95
  189. package/TimePicker/index.d.ts +22 -22
  190. package/TimePicker/locale/en_US.d.ts +3 -3
  191. package/TimePicker/locale/zh_CN.d.ts +3 -3
  192. package/TimePicker/style/index.d.ts +1 -1
  193. package/Timeline/index.d.ts +22 -22
  194. package/Title/index.d.ts +30 -30
  195. package/ToggleButton/ToggleButtonGroup.d.ts +49 -49
  196. package/ToggleButton/index.d.ts +49 -49
  197. package/Tooltip/index.d.ts +14 -14
  198. package/Transfer/index.d.ts +37 -37
  199. package/Transfer/lang/en_US.d.ts +8 -8
  200. package/Transfer/lang/index.d.ts +17 -17
  201. package/Transfer/lang/zh_CN.d.ts +8 -8
  202. package/Tree/OperateBar/index.d.ts +13 -13
  203. package/Tree/Tree.d.ts +4 -4
  204. package/Tree/index.d.ts +5 -5
  205. package/Tree/interface.d.ts +207 -207
  206. package/Tree/lang/en_US.d.ts +8 -8
  207. package/Tree/lang/index.d.ts +17 -17
  208. package/Tree/lang/zh_CN.d.ts +8 -8
  209. package/Tree/utils/tools.d.ts +26 -26
  210. package/Tree/utils/treeUtil.d.ts +15 -15
  211. package/Upload/Dragger/index.d.ts +10 -10
  212. package/Upload/ErroTip/index.d.ts +13 -13
  213. package/Upload/ImageUpload/index.d.ts +14 -14
  214. package/Upload/ImgCrop/EasyCrop.d.ts +17 -17
  215. package/Upload/ImgCrop/constants.d.ts +7 -7
  216. package/Upload/ImgCrop/index.d.ts +6 -6
  217. package/Upload/ImgCrop/interface.d.ts +48 -48
  218. package/Upload/UploadList/index.d.ts +5 -5
  219. package/Upload/index.d.ts +15 -15
  220. package/Upload/interface.d.ts +134 -134
  221. package/Upload/lang/en_US.d.ts +12 -12
  222. package/Upload/lang/index.d.ts +25 -25
  223. package/Upload/lang/zh_CN.d.ts +12 -12
  224. package/cdn/ButtonGroup/index.js +2 -2
  225. package/cdn/Cascader/index.js +6 -6
  226. package/cdn/CheckboxGroup/index.js +2 -2
  227. package/cdn/ColorPicker/index.js +1 -1
  228. package/cdn/ComboSelect/index.js +1 -1
  229. package/cdn/DatePicker/index.js +8 -8
  230. package/cdn/Dropdown/index.js +3 -3
  231. package/cdn/DynamicMultiBox/index.js +7 -7
  232. package/cdn/Form/index.js +3 -3
  233. package/cdn/FormItem/index.js +3 -3
  234. package/cdn/Pagination/index.js +1 -1
  235. package/cdn/PopoverNew/index.js +3 -3
  236. package/cdn/RadioGroup/index.js +2 -2
  237. package/cdn/Select/index.js +1 -1
  238. package/cdn/SelectInput/index.js +1 -1
  239. package/cdn/Selector/index.js +10 -10
  240. package/cdn/SelectorPicker/index.js +10 -10
  241. package/cdn/Slider/index.js +3 -3
  242. package/cdn/Table/index.js +1 -1
  243. package/cdn/Tabs/index.js +1 -1
  244. package/cdn/TimePicker/index.js +10 -10
  245. package/cdn/Upload/index.js +10 -10
  246. package/index.d.ts +142 -142
  247. package/index.js +2 -2
  248. package/package.json +131 -131
@@ -1,67 +1,67 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/6 11:06
4
- * @description 表格内容参数
5
- */
6
- import React, { ReactNode } from "react";
7
- import { TableHeadBodyPublicProps, Anyjson, ExpandableStatus } from './interface';
8
- import { EmptyProps } from "../Empty";
9
- /** 表格头部参数 */
10
- export interface TableBodyProps extends TableHeadBodyPublicProps {
11
- /** 请求地址 */
12
- url?: string;
13
- /** 空状态属性 */
14
- emptyProps?: EmptyProps;
15
- /** 当前表格页数据 */
16
- rowData?: any[];
17
- /** 渲染表格一行数据 (跟表格头部head里面的render参数互斥) */
18
- tableCell?: (row: any, params: any) => ReactNode;
19
- /** 禁用key的map */
20
- disabledJson?: Anyjson;
21
- /** 选择框禁用时的状态 true 选中, false不选中, null 不显示 */
22
- disabledArrStatus?: {
23
- [name: string]: true | false | null;
24
- };
25
- /** 数据总数对象--用来分页记录数据的 */
26
- totalDataJson?: Anyjson;
27
- /** 多选 选中的数据 */
28
- checkJson?: Anyjson;
29
- /** 单选 选中的数据 */
30
- radioValue?: any;
31
- /** 复选框 - 选择 */
32
- selectCheck?: (event: React.ChangeEvent<HTMLInputElement>, bol: boolean, key: any) => void;
33
- /** 单选 - 选择 */
34
- selectRadio?: (event: React.ChangeEvent<HTMLInputElement>, val: any) => void;
35
- /** 用来格式化内容 */
36
- formatter?: (row: any, item: any, val: any, index: number, rowIndex: number) => ReactNode;
37
- /** 加载 */
38
- loadState?: boolean;
39
- /** 加载更多 */
40
- loadMore?: boolean;
41
- /** 加载更多自定义 */
42
- loadMoreRender?: ReactNode;
43
- /** 点击加载更多 */
44
- onClickMore?: () => void;
45
- /** 总条数 */
46
- total?: number;
47
- /** 当前页 */
48
- page?: number | null;
49
- /** 当前选中每页行数 */
50
- currentRowsPerPage?: number | null;
51
- /** 改变页数 */
52
- changePage?: (num?: number) => void;
53
- /** 加载更多,请求是否在表格里 */
54
- loadMoreUrl?: boolean;
55
- /** 默认展开项 */
56
- expandValue?: string[];
57
- /** 展开多个 */
58
- expandMultiple?: boolean;
59
- /** 禁用展开项 */
60
- disabledExpand?: string[];
61
- /** 展开事件 */
62
- onExpand?: (row: any, status: ExpandableStatus) => void;
63
- /** 是否展开所有行 */
64
- defaultExpandAllRows?: boolean;
65
- /** 刷新表格 */
66
- onRefresh?: () => void;
67
- }
1
+ /**
2
+ * @author linhd
3
+ * @date 2021/8/6 11:06
4
+ * @description 表格内容参数
5
+ */
6
+ import React, { ReactNode } from "react";
7
+ import { TableHeadBodyPublicProps, Anyjson, ExpandableStatus } from './interface';
8
+ import { EmptyProps } from "../Empty";
9
+ /** 表格头部参数 */
10
+ export interface TableBodyProps extends TableHeadBodyPublicProps {
11
+ /** 请求地址 */
12
+ url?: string;
13
+ /** 空状态属性 */
14
+ emptyProps?: EmptyProps;
15
+ /** 当前表格页数据 */
16
+ rowData?: any[];
17
+ /** 渲染表格一行数据 (跟表格头部head里面的render参数互斥) */
18
+ tableCell?: (row: any, params: any) => ReactNode;
19
+ /** 禁用key的map */
20
+ disabledJson?: Anyjson;
21
+ /** 选择框禁用时的状态 true 选中, false不选中, null 不显示 */
22
+ disabledArrStatus?: {
23
+ [name: string]: true | false | null;
24
+ };
25
+ /** 数据总数对象--用来分页记录数据的 */
26
+ totalDataJson?: Anyjson;
27
+ /** 多选 选中的数据 */
28
+ checkJson?: Anyjson;
29
+ /** 单选 选中的数据 */
30
+ radioValue?: any;
31
+ /** 复选框 - 选择 */
32
+ selectCheck?: (event: React.ChangeEvent<HTMLInputElement>, bol: boolean, key: any) => void;
33
+ /** 单选 - 选择 */
34
+ selectRadio?: (event: React.ChangeEvent<HTMLInputElement>, val: any) => void;
35
+ /** 用来格式化内容 */
36
+ formatter?: (row: any, item: any, val: any, index: number, rowIndex: number) => ReactNode;
37
+ /** 加载 */
38
+ loadState?: boolean;
39
+ /** 加载更多 */
40
+ loadMore?: boolean;
41
+ /** 加载更多自定义 */
42
+ loadMoreRender?: ReactNode;
43
+ /** 点击加载更多 */
44
+ onClickMore?: () => void;
45
+ /** 总条数 */
46
+ total?: number;
47
+ /** 当前页 */
48
+ page?: number | null;
49
+ /** 当前选中每页行数 */
50
+ currentRowsPerPage?: number | null;
51
+ /** 改变页数 */
52
+ changePage?: (num?: number) => void;
53
+ /** 加载更多,请求是否在表格里 */
54
+ loadMoreUrl?: boolean;
55
+ /** 默认展开项 */
56
+ expandValue?: string[];
57
+ /** 展开多个 */
58
+ expandMultiple?: boolean;
59
+ /** 禁用展开项 */
60
+ disabledExpand?: string[];
61
+ /** 展开事件 */
62
+ onExpand?: (row: any, status: ExpandableStatus) => void;
63
+ /** 是否展开所有行 */
64
+ defaultExpandAllRows?: boolean;
65
+ /** 刷新表格 */
66
+ onRefresh?: () => void;
67
+ }
@@ -1,16 +1,16 @@
1
- /**
2
- * @author linhd
3
- * @date 2022/4/26 11:00 AM
4
- * @description 表格容器
5
- */
6
- import React, { FunctionComponent } from "react";
7
- import './index.scss';
8
- export interface TableContainerProps {
9
- cRef?: any;
10
- className?: string;
11
- style?: React.CSSProperties;
12
- children?: any;
13
- [name: string]: any;
14
- }
15
- export declare const TableContainer: FunctionComponent<TableContainerProps>;
16
- export default TableContainer;
1
+ /**
2
+ * @author linhd
3
+ * @date 2022/4/26 11:00 AM
4
+ * @description 表格容器
5
+ */
6
+ import React, { FunctionComponent } from "react";
7
+ import './index.scss';
8
+ export interface TableContainerProps {
9
+ cRef?: any;
10
+ className?: string;
11
+ style?: React.CSSProperties;
12
+ children?: any;
13
+ [name: string]: any;
14
+ }
15
+ export declare const TableContainer: FunctionComponent<TableContainerProps>;
16
+ export default TableContainer;
@@ -1,15 +1,15 @@
1
- /**
2
- * @author linhd
3
- * @date 2022/4/26 11:00 AM
4
- * @description 表格元素
5
- */
6
- import React, { FunctionComponent } from "react";
7
- import './index.scss';
8
- export interface TableElementProps {
9
- className?: string;
10
- style?: React.CSSProperties;
11
- children?: any;
12
- [name: string]: any;
13
- }
14
- export declare const TableElement: FunctionComponent<TableElementProps>;
15
- export default TableElement;
1
+ /**
2
+ * @author linhd
3
+ * @date 2022/4/26 11:00 AM
4
+ * @description 表格元素
5
+ */
6
+ import React, { FunctionComponent } from "react";
7
+ import './index.scss';
8
+ export interface TableElementProps {
9
+ className?: string;
10
+ style?: React.CSSProperties;
11
+ children?: any;
12
+ [name: string]: any;
13
+ }
14
+ export declare const TableElement: FunctionComponent<TableElementProps>;
15
+ export default TableElement;
@@ -1,9 +1,9 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/6 11:06
4
- * @description 表格头部
5
- */
6
- import { FunctionComponent } from 'react';
7
- import { TableHeadProps } from './tableHeadInterface';
8
- export declare const TableHead: FunctionComponent<TableHeadProps>;
9
- export default TableHead;
1
+ /**
2
+ * @author linhd
3
+ * @date 2021/8/6 11:06
4
+ * @description 表格头部
5
+ */
6
+ import { FunctionComponent } from 'react';
7
+ import { TableHeadProps } from './tableHeadInterface';
8
+ export declare const TableHead: FunctionComponent<TableHeadProps>;
9
+ export default TableHead;
@@ -1,15 +1,15 @@
1
- /**
2
- * @author linhd
3
- * @date 2022/4/26 11:00 AM
4
- * @description 表格表头元素
5
- */
6
- import React, { FunctionComponent } from "react";
7
- import './index.scss';
8
- export interface TableHeadElementProps {
9
- className?: string;
10
- style?: React.CSSProperties;
11
- children?: any;
12
- [name: string]: any;
13
- }
14
- export declare const TableHeadElement: FunctionComponent<TableHeadElementProps>;
15
- export default TableHeadElement;
1
+ /**
2
+ * @author linhd
3
+ * @date 2022/4/26 11:00 AM
4
+ * @description 表格表头元素
5
+ */
6
+ import React, { FunctionComponent } from "react";
7
+ import './index.scss';
8
+ export interface TableHeadElementProps {
9
+ className?: string;
10
+ style?: React.CSSProperties;
11
+ children?: any;
12
+ [name: string]: any;
13
+ }
14
+ export declare const TableHeadElement: FunctionComponent<TableHeadElementProps>;
15
+ export default TableHeadElement;
@@ -1,30 +1,30 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/6 11:07
4
- * @description 表格头部参数
5
- */
6
- import React from 'react';
7
- import { TableHeadBodyPublicProps, SelectStatus } from './interface';
8
- /** 表格头部参数 */
9
- export interface TableHeadProps extends TableHeadBodyPublicProps {
10
- /** 排序触发事件 property: 属性名 */
11
- onRequestSort?: (event: React.MouseEvent<unknown>, property: string) => void;
12
- /** 全选事件 */
13
- selectAll?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
14
- /** 选中状态 */
15
- selectStatus?: SelectStatus;
16
- /** 是否过滤 */
17
- filter?: boolean;
18
- /** 显示列 */
19
- showList?: any[];
20
- /** 改变显示列 bol true重置 */
21
- changeShowList: (headShowArr: any, bol?: boolean, item?: any) => void;
22
- /** 过滤值 */
23
- selectFilter: any;
24
- /** 改变过滤 */
25
- changeFilter?: (val: any) => void;
26
- /** 外部显示列,隐藏事件 */
27
- hideShowColumns?: () => void;
28
- /** 外部显示列,定位元素 */
29
- outsideShowColumns?: HTMLButtonElement | null;
30
- }
1
+ /**
2
+ * @author linhd
3
+ * @date 2021/8/6 11:07
4
+ * @description 表格头部参数
5
+ */
6
+ import React from 'react';
7
+ import { TableHeadBodyPublicProps, SelectStatus } from './interface';
8
+ /** 表格头部参数 */
9
+ export interface TableHeadProps extends TableHeadBodyPublicProps {
10
+ /** 排序触发事件 property: 属性名 */
11
+ onRequestSort?: (event: React.MouseEvent<unknown>, property: string) => void;
12
+ /** 全选事件 */
13
+ selectAll?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
14
+ /** 选中状态 */
15
+ selectStatus?: SelectStatus;
16
+ /** 是否过滤 */
17
+ filter?: boolean;
18
+ /** 显示列 */
19
+ showList?: any[];
20
+ /** 改变显示列 bol true重置 */
21
+ changeShowList: (headShowArr: any, bol?: boolean, item?: any) => void;
22
+ /** 过滤值 */
23
+ selectFilter: any;
24
+ /** 改变过滤 */
25
+ changeFilter?: (val: any) => void;
26
+ /** 外部显示列,隐藏事件 */
27
+ hideShowColumns?: () => void;
28
+ /** 外部显示列,定位元素 */
29
+ outsideShowColumns?: HTMLButtonElement | null;
30
+ }
@@ -1,9 +1,9 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/6 11:07
4
- * @description 表格分页
5
- */
6
- import { FunctionComponent } from 'react';
7
- import { TablePaginationProps } from './tablePaginationInterFace';
8
- export declare const TableHead: FunctionComponent<TablePaginationProps>;
9
- export default TableHead;
1
+ /**
2
+ * @author linhd
3
+ * @date 2021/8/6 11:07
4
+ * @description 表格分页
5
+ */
6
+ import { FunctionComponent } from 'react';
7
+ import { TablePaginationProps } from './tablePaginationInterFace';
8
+ export declare const TableHead: FunctionComponent<TablePaginationProps>;
9
+ export default TableHead;
@@ -1,24 +1,24 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/6 11:07
4
- * @description 表格分页参数
5
- */
6
- /** 表格分页参数 */
7
- export interface TablePaginationProps {
8
- /** 自适应分页,根据外容器大小,改变分页模式 */
9
- autoPagination?: boolean;
10
- /** 分页模式 */
11
- paginationType?: 'simple' | 'complex';
12
- /** 总条数 */
13
- total?: number;
14
- /** 当前页 */
15
- page?: number;
16
- /** 每页行数 */
17
- rowsPerPage?: number[];
18
- /** 当前选中每页行数 */
19
- currentRowsPerPage?: number;
20
- /** 改变页数 */
21
- changePage?: (num?: number) => void;
22
- /** 改变每页行数 */
23
- changeRowsPerPage?: (num: number) => void;
24
- }
1
+ /**
2
+ * @author linhd
3
+ * @date 2021/8/6 11:07
4
+ * @description 表格分页参数
5
+ */
6
+ /** 表格分页参数 */
7
+ export interface TablePaginationProps {
8
+ /** 自适应分页,根据外容器大小,改变分页模式 */
9
+ autoPagination?: boolean;
10
+ /** 分页模式 */
11
+ paginationType?: 'simple' | 'complex';
12
+ /** 总条数 */
13
+ total?: number;
14
+ /** 当前页 */
15
+ page?: number;
16
+ /** 每页行数 */
17
+ rowsPerPage?: number[];
18
+ /** 当前选中每页行数 */
19
+ currentRowsPerPage?: number;
20
+ /** 改变页数 */
21
+ changePage?: (num?: number) => void;
22
+ /** 改变每页行数 */
23
+ changeRowsPerPage?: (num: number) => void;
24
+ }
@@ -1,15 +1,15 @@
1
- /**
2
- * @author linhd
3
- * @date 2022/4/26 11:00 AM
4
- * @description 表格td元素
5
- */
6
- import React, { FunctionComponent } from "react";
7
- import './index.scss';
8
- export interface TdElementProps {
9
- className?: string;
10
- style?: React.CSSProperties;
11
- children?: any;
12
- [name: string]: any;
13
- }
14
- export declare const TdElement: FunctionComponent<TdElementProps>;
15
- export default TdElement;
1
+ /**
2
+ * @author linhd
3
+ * @date 2022/4/26 11:00 AM
4
+ * @description 表格td元素
5
+ */
6
+ import React, { FunctionComponent } from "react";
7
+ import './index.scss';
8
+ export interface TdElementProps {
9
+ className?: string;
10
+ style?: React.CSSProperties;
11
+ children?: any;
12
+ [name: string]: any;
13
+ }
14
+ export declare const TdElement: FunctionComponent<TdElementProps>;
15
+ export default TdElement;
@@ -1,15 +1,15 @@
1
- /**
2
- * @author linhd
3
- * @date 2022/4/26 11:00 AM
4
- * @description 表格th元素
5
- */
6
- import React, { FunctionComponent } from "react";
7
- import './index.scss';
8
- export interface ThElementProps {
9
- className?: string;
10
- style?: React.CSSProperties;
11
- children?: any;
12
- [name: string]: any;
13
- }
14
- export declare const ThElement: FunctionComponent<ThElementProps>;
15
- export default ThElement;
1
+ /**
2
+ * @author linhd
3
+ * @date 2022/4/26 11:00 AM
4
+ * @description 表格th元素
5
+ */
6
+ import React, { FunctionComponent } from "react";
7
+ import './index.scss';
8
+ export interface ThElementProps {
9
+ className?: string;
10
+ style?: React.CSSProperties;
11
+ children?: any;
12
+ [name: string]: any;
13
+ }
14
+ export declare const ThElement: FunctionComponent<ThElementProps>;
15
+ export default ThElement;
@@ -1,15 +1,15 @@
1
- /**
2
- * @author linhd
3
- * @date 2022/4/26 11:00 AM
4
- * @description 表格tr元素
5
- */
6
- import React, { FunctionComponent } from "react";
7
- import './index.scss';
8
- export interface TrElementProps {
9
- className?: string;
10
- style?: React.CSSProperties;
11
- children?: any;
12
- [name: string]: any;
13
- }
14
- export declare const TrElement: FunctionComponent<TrElementProps>;
15
- export default TrElement;
1
+ /**
2
+ * @author linhd
3
+ * @date 2022/4/26 11:00 AM
4
+ * @description 表格tr元素
5
+ */
6
+ import React, { FunctionComponent } from "react";
7
+ import './index.scss';
8
+ export interface TrElementProps {
9
+ className?: string;
10
+ style?: React.CSSProperties;
11
+ children?: any;
12
+ [name: string]: any;
13
+ }
14
+ export declare const TrElement: FunctionComponent<TrElementProps>;
15
+ export default TrElement;
package/Table/util.d.ts CHANGED
@@ -1,28 +1,28 @@
1
- import { HeadLocalStorageItem, ReqProps } from "./interface";
2
- /**
3
- * 发送请求
4
- * @param obj {ReqProps} 请求信息
5
- */
6
- export declare const requestFunc: (obj: ReqProps) => Promise<import("@paraview/lib").ParaResponse> | undefined;
7
- /**
8
- * 处理get请求地址
9
- * @param obj {ReqProps} 请求信息
10
- * @return string get请求地址参数
11
- */
12
- export declare const handGetReqParams: (obj: ReqProps) => string;
13
- /**
14
- * 提取字符串里面的数字
15
- * */
16
- export declare const getStringInNumber: (str: string | number) => number;
17
- /**
18
- * 获取选择列localStorage
19
- * @param key {string} 键值
20
- * @param num {number} 过期天数
21
- * */
22
- export declare const getLocalStorageSelectHead: (key: string, num: number) => HeadLocalStorageItem;
23
- /**
24
- * 设置选择列localStorage
25
- * @param key {string} 键值
26
- * @param val {HeadLocalStorageItem} 保存值
27
- * */
28
- export declare const setLocalStorageSelectHead: (key: string, val: HeadLocalStorageItem) => void;
1
+ import { HeadLocalStorageItem, ReqProps } from "./interface";
2
+ /**
3
+ * 发送请求
4
+ * @param obj {ReqProps} 请求信息
5
+ */
6
+ export declare const requestFunc: (obj: ReqProps) => Promise<import("@paraview/lib").ParaResponse> | undefined;
7
+ /**
8
+ * 处理get请求地址
9
+ * @param obj {ReqProps} 请求信息
10
+ * @return string get请求地址参数
11
+ */
12
+ export declare const handGetReqParams: (obj: ReqProps) => string;
13
+ /**
14
+ * 提取字符串里面的数字
15
+ * */
16
+ export declare const getStringInNumber: (str: string | number) => number;
17
+ /**
18
+ * 获取选择列localStorage
19
+ * @param key {string} 键值
20
+ * @param num {number} 过期天数
21
+ * */
22
+ export declare const getLocalStorageSelectHead: (key: string, num: number) => HeadLocalStorageItem;
23
+ /**
24
+ * 设置选择列localStorage
25
+ * @param key {string} 键值
26
+ * @param val {HeadLocalStorageItem} 保存值
27
+ * */
28
+ export declare const setLocalStorageSelectHead: (key: string, val: HeadLocalStorageItem) => void;
package/Tabs/index.d.ts CHANGED
@@ -1,48 +1,48 @@
1
- /**
2
- * @author Hanz
3
- * @date 2021/8/5 下午3:10
4
- * @description 标签页
5
- */
6
- import React, { FunctionComponent, ReactNode } from 'react';
7
- import { TabsProps as MuiTabsProps } from "@material-ui/core";
8
- import { PopConfirmProps } from '../PopConfirm';
9
- import './index.scss';
10
- export interface TabProps {
11
- /** 标签*/
12
- label?: ReactNode;
13
- /** 选中value*/
14
- value?: any;
15
- /** 禁用*/
16
- disabled?: boolean;
17
- /** cls*/
18
- className?: string;
19
- /** 可关闭标签*/
20
- closable?: boolean;
21
- /** 鼠标悬浮显示关闭图标 */
22
- interactive?: boolean;
23
- [name: string]: any;
24
- }
25
- export interface TabsProps extends Omit<MuiTabsProps, 'onChange'> {
26
- /** 模式:线性、卡片*/
27
- mode?: 'line' | 'card' | 'track';
28
- /**可编辑标签页*/
29
- editable?: boolean;
30
- /**显示新增按钮*/
31
- showAdd?: boolean | React.ReactNode;
32
- /**显示 popconfirm,editable 为true 有效*/
33
- showPopConfirm?: boolean;
34
- /** popConfirm props*/
35
- popConfirmProps?: PopConfirmProps;
36
- /** 数据列表*/
37
- data?: Array<TabProps>;
38
- /** 显示tooltip*/
39
- showToolTip?: boolean;
40
- /** 新增按钮回调 showAdd 为 true 时有效*/
41
- onAdd?: (event?: React.MouseEvent) => void;
42
- /** 切换标签页的回调 */
43
- onChange?: (value: any, tabData?: TabProps, event?: React.ChangeEvent) => void;
44
- /** 关闭标签页的回调*/
45
- onEdit?: (tabData: TabProps, event?: React.MouseEvent) => void;
46
- }
47
- export declare const Tabs: FunctionComponent<TabsProps>;
48
- export default Tabs;
1
+ /**
2
+ * @author Hanz
3
+ * @date 2021/8/5 下午3:10
4
+ * @description 标签页
5
+ */
6
+ import React, { FunctionComponent, ReactNode } from 'react';
7
+ import { TabsProps as MuiTabsProps } from "@material-ui/core";
8
+ import { PopConfirmProps } from '../PopConfirm';
9
+ import './index.scss';
10
+ export interface TabProps {
11
+ /** 标签*/
12
+ label?: ReactNode;
13
+ /** 选中value*/
14
+ value?: any;
15
+ /** 禁用*/
16
+ disabled?: boolean;
17
+ /** cls*/
18
+ className?: string;
19
+ /** 可关闭标签*/
20
+ closable?: boolean;
21
+ /** 鼠标悬浮显示关闭图标 */
22
+ interactive?: boolean;
23
+ [name: string]: any;
24
+ }
25
+ export interface TabsProps extends Omit<MuiTabsProps, 'onChange'> {
26
+ /** 模式:线性、卡片*/
27
+ mode?: 'line' | 'card' | 'track';
28
+ /**可编辑标签页*/
29
+ editable?: boolean;
30
+ /**显示新增按钮*/
31
+ showAdd?: boolean | React.ReactNode;
32
+ /**显示 popconfirm,editable 为true 有效*/
33
+ showPopConfirm?: boolean;
34
+ /** popConfirm props*/
35
+ popConfirmProps?: PopConfirmProps;
36
+ /** 数据列表*/
37
+ data?: Array<TabProps>;
38
+ /** 显示tooltip*/
39
+ showToolTip?: boolean;
40
+ /** 新增按钮回调 showAdd 为 true 时有效*/
41
+ onAdd?: (event?: React.MouseEvent) => void;
42
+ /** 切换标签页的回调 */
43
+ onChange?: (value: any, tabData?: TabProps, event?: React.ChangeEvent) => void;
44
+ /** 关闭标签页的回调*/
45
+ onEdit?: (tabData: TabProps, event?: React.MouseEvent) => void;
46
+ }
47
+ export declare const Tabs: FunctionComponent<TabsProps>;
48
+ export default Tabs;