@para-ui/core 2.2.5-beta → 2.2.7

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 (353) hide show
  1. package/AutoBox/index.d.ts +6 -12
  2. package/AutoBox/index.js +15 -203
  3. package/AutoTips/index.d.ts +6 -12
  4. package/AutoTips/index.js +15 -84
  5. package/Breadcrumbs/index.d.ts +7 -13
  6. package/Breadcrumbs/index.js +15 -227
  7. package/Button/SplitButton.d.ts +61 -0
  8. package/Button/index.d.ts +11 -92
  9. package/Button/index.js +14 -348
  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 +9 -21
  14. package/ButtonGroup/index.js +14 -128
  15. package/Carousel/index.d.ts +11 -17
  16. package/Carousel/index.js +15 -74
  17. package/Cascader/index.d.ts +7 -12
  18. package/Cascader/index.js +15 -166
  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 +7 -13
  23. package/Checkbox/index.js +14 -105
  24. package/CheckboxGroup/index.d.ts +9 -15
  25. package/CheckboxGroup/index.js +14 -138
  26. package/Collapse/collapsePanel.d.ts +30 -0
  27. package/Collapse/index.d.ts +14 -49
  28. package/Collapse/index.js +15 -171
  29. package/Collapse/motion.d.ts +5 -0
  30. package/Collapse/util.d.ts +11 -0
  31. package/CollapseBox/index.d.ts +5 -11
  32. package/CollapseBox/index.js +15 -164
  33. package/CollapseBox/util.d.ts +5 -0
  34. package/ColorPicker/index.d.ts +4 -4
  35. package/ColorPicker/index.js +1 -4
  36. package/ComboSelect/WithTabsCombo/index.d.ts +11 -0
  37. package/ComboSelect/WithTabsCombo/interface.d.ts +141 -0
  38. package/ComboSelect/index.d.ts +6 -306
  39. package/ComboSelect/index.js +14 -1803
  40. package/ComboSelect/interface.d.ts +143 -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 +12 -0
  45. package/Container/index.d.ts +8 -13
  46. package/Container/index.js +15 -239
  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 +17 -30
  53. package/DatePicker/index.js +14 -733
  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 +6 -14
  59. package/Desktop/index.js +14 -853
  60. package/Drawer/index.d.ts +6 -92
  61. package/Drawer/index.js +14 -186
  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 +10 -16
  68. package/Empty/index.js +14 -644
  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 +9 -11
  73. package/Form/index.js +14 -384
  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 -5
  81. package/FormItem/index.js +14 -81
  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 +3 -14
  86. package/FunctionModal/index.js +14 -39
  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 +8 -38
  91. package/GlobalContext/index.js +16 -41
  92. package/GlobalContext/intl.d.ts +34 -0
  93. package/GlobalContext/useFormatMessage.d.ts +3 -0
  94. package/Help/index.d.ts +10 -16
  95. package/Help/index.js +15 -39
  96. package/HelperText/index.d.ts +5 -11
  97. package/HelperText/index.js +15 -29
  98. package/Hooks/useGlobalProps.d.ts +1 -0
  99. package/InputLang/index.d.ts +7 -13
  100. package/InputLang/index.js +14 -270
  101. package/InputNumber/index.d.ts +10 -16
  102. package/InputNumber/index.js +14 -308
  103. package/Label/index.d.ts +6 -12
  104. package/Label/index.js +14 -81
  105. package/Loading/index.d.ts +6 -12
  106. package/Loading/index.js +15 -47
  107. package/Menu/footerExpansion.d.ts +9 -0
  108. package/Menu/index.d.ts +5 -123
  109. package/Menu/index.js +14 -1232
  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 +19 -11
  114. package/Message/index.js +15 -222
  115. package/Modal/Confirm/index.d.ts +66 -0
  116. package/Modal/index.d.ts +40 -142
  117. package/Modal/index.js +14 -443
  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 +7 -13
  122. package/MultiBox/index.js +14 -231
  123. package/Notification/index.d.ts +16 -22
  124. package/Notification/index.js +15 -266
  125. package/OperateBtn/index.d.ts +10 -16
  126. package/OperateBtn/index.js +14 -260
  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 +5 -178
  133. package/PageHeader/index.js +14 -1171
  134. package/PageHeader/interface.d.ts +167 -0
  135. package/Pagination/index.d.ts +6 -12
  136. package/Pagination/index.js +14 -469
  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 +8 -9
  141. package/ParauiProvider/index.js +15 -53
  142. package/PopConfirm/index.d.ts +10 -23
  143. package/PopConfirm/index.js +14 -189
  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 +11 -18
  148. package/Popover/index.js +15 -66
  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 +12 -18
  154. package/Progress/index.js +20 -358
  155. package/Progress/utils.d.ts +6 -0
  156. package/Querying/images/index.d.ts +2 -0
  157. package/Querying/index.d.ts +9 -15
  158. package/Querying/index.js +14 -762
  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 +506 -0
  163. package/Radio/index.d.ts +7 -13
  164. package/Radio/index.js +14 -94
  165. package/RadioGroup/index.d.ts +9 -15
  166. package/RadioGroup/index.js +14 -128
  167. package/Search/index.d.ts +12 -18
  168. package/Search/index.js +14 -220
  169. package/Select/index.d.ts +7 -13
  170. package/Select/index.js +14 -1288
  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 +5 -11
  175. package/SelectInput/index.js +14 -51
  176. package/SingleBox/index.d.ts +7 -13
  177. package/SingleBox/index.js +14 -194
  178. package/Slider/index.d.ts +7 -104
  179. package/Slider/index.js +15 -125
  180. package/Slider/interface.d.ts +102 -0
  181. package/Split/index.d.ts +3 -8
  182. package/Split/index.js +15 -134
  183. package/Stepper/icons.d.ts +5 -0
  184. package/Stepper/index.d.ts +25 -41
  185. package/Stepper/index.js +15 -99
  186. package/Switch/index.d.ts +10 -16
  187. package/Switch/index.js +14 -73
  188. package/Table/index.d.ts +4 -12
  189. package/Table/index.js +14 -2725
  190. package/{_verture/interface-a9b7c716.js → Table/interface.d.ts} +28 -20
  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 +29 -64
  209. package/Tabs/index.js +14 -218
  210. package/Tag/TagGroup.d.ts +66 -0
  211. package/Tag/index.d.ts +12 -78
  212. package/Tag/index.js +14 -286
  213. package/Test/index.d.ts +2 -3
  214. package/Test/index.js +16 -9
  215. package/TextField/index.d.ts +16 -22
  216. package/TextField/index.js +14 -686
  217. package/TimePicker/index.d.ts +10 -20
  218. package/TimePicker/index.js +14 -77
  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 +13 -49
  223. package/Timeline/index.js +15 -150
  224. package/ToggleButton/ToggleButtonGroup.d.ts +49 -0
  225. package/ToggleButton/index.d.ts +10 -61
  226. package/ToggleButton/index.js +14 -200
  227. package/Tooltip/index.d.ts +10 -12
  228. package/Tooltip/index.js +15 -335
  229. package/Transfer/index.d.ts +3 -8
  230. package/Transfer/index.js +14 -343
  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 -8
  237. package/Tree/index.js +14 -35
  238. package/{_verture/interface-128abdd3.js → Tree/interface.d.ts} +25 -15
  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 +8 -179
  254. package/Upload/index.js +14 -1542
  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 -88
  324. package/index.js +19 -160
  325. package/package.json +22 -59
  326. package/style.css +72 -0
  327. package/Dropdown/index.d.ts +0 -29
  328. package/Dropdown/index.js +0 -67
  329. package/_verture/defineProperty-0590dc61.js +0 -16
  330. package/_verture/index-0d8e1d07.js +0 -4
  331. package/_verture/index-14a47097.js +0 -4
  332. package/_verture/index-342379c6.js +0 -391
  333. package/_verture/index-458032d7.js +0 -10
  334. package/_verture/index-46bfb2f0.js +0 -778
  335. package/_verture/index-50401de7.js +0 -4
  336. package/_verture/index-5b08df83.js +0 -4
  337. package/_verture/index-6190b129.js +0 -4
  338. package/_verture/index-7ef1e3b6.js +0 -1553
  339. package/_verture/index-a369ca3f.js +0 -4
  340. package/_verture/index-c60911dc.js +0 -39
  341. package/_verture/index-e2881a53.js +0 -16
  342. package/_verture/index-ff4c2a27.js +0 -200
  343. package/_verture/interface-a77a851e.js +0 -25
  344. package/_verture/intl-336570e4.js +0 -65
  345. package/_verture/modalContext-25890584.js +0 -228
  346. package/_verture/modalContext-639f2787.js +0 -58
  347. package/_verture/slicedToArray-d7722f4b.js +0 -62
  348. package/_verture/style-inject.es-300983ab.js +0 -28
  349. package/_verture/toConsumableArray-f8047a75.js +0 -19
  350. package/_verture/tslib.es6-55ed4bd2.js +0 -38
  351. package/_verture/typeof-498dd2b1.js +0 -11
  352. package/_verture/useFormatMessage-ac9d6acf.js +0 -20
  353. package/_verture/useGlobalProps-af9a2af6.js +0 -12
@@ -1,27 +1,27 @@
1
- import React__default, { ReactNode } from 'react';
2
- import { EmptyProps } from '../Empty/index.js';
3
- import { OperateBtnProps } from '../OperateBtn/index.js';
4
-
5
1
  /**
6
2
  * @author linhd
7
3
  * @date 2021/8/6 11:05
8
4
  * @description 表格
9
5
  */
10
-
6
+ import React, { ReactNode } from 'react';
7
+ import { EmptyProps } from "../Empty";
8
+ import { OperateBtnProps } from "../OperateBtn";
11
9
  /** 任意类型 */
12
- interface Anyjson {
10
+ export interface Anyjson {
13
11
  [name: string]: any;
14
12
  }
15
13
  /** 请求方式枚举 */
16
- declare type MethodType = 'Post' | 'Get';
14
+ export declare type MethodType = 'Post' | 'Get';
17
15
  /** 排序方式枚举 asc 升序 desc 降序 not 没有 */
18
- declare type OrderType = 'asc' | 'desc' | undefined;
16
+ export declare type OrderType = 'asc' | 'desc' | undefined;
17
+ /** 表格头部复选框选中状态 全选 / 半选 / 不选 */
18
+ export declare type SelectStatus = 'all' | 'half' | 'not';
19
19
  /** 嵌套表格状态 */
20
- declare type ExpandableStatus = 'develop' | 'retract' | undefined;
20
+ export declare type ExpandableStatus = 'develop' | 'retract' | undefined;
21
21
  /** 对齐方式 */
22
- declare type AlignType = 'left' | 'center' | 'right';
22
+ export declare type AlignType = 'left' | 'center' | 'right';
23
23
  /** 渲染数据参数 */
24
- interface HeadDataProps {
24
+ export interface HeadDataProps {
25
25
  /** 数据属性 */
26
26
  name?: string;
27
27
  /** 显示名 */
@@ -51,14 +51,14 @@ interface HeadDataProps {
51
51
  [name: string]: any;
52
52
  }
53
53
  /** 固定列位置信息 */
54
- interface PosFixedProps {
54
+ export interface PosFixedProps {
55
55
  /** 是否存在左边定位 */
56
56
  leftBol?: boolean;
57
57
  /** 是否存在右边定位 */
58
58
  rightBol?: boolean;
59
59
  }
60
60
  /** 表格头部跟表格主题 文件公用参数 */
61
- interface TableHeadBodyPublicProps {
61
+ export interface TableHeadBodyPublicProps {
62
62
  /** 指定每行key */
63
63
  rowKey?: string;
64
64
  /** 表头数据 */
@@ -73,8 +73,8 @@ interface TableHeadBodyPublicProps {
73
73
  align?: AlignType;
74
74
  /** 操作栏 */
75
75
  operate?: HeadDataProps;
76
- /** 是否显示列 里面 不显示 */
77
- showColumns?: 'inside' | false;
76
+ /** 是否显示列 里面 不显示 */
77
+ showColumns?: 'outside' | 'inside' | false;
78
78
  /** 是否等分表格,出滚动条 */
79
79
  fixedTable?: boolean;
80
80
  /** 排序字段 */
@@ -89,11 +89,11 @@ interface TableHeadBodyPublicProps {
89
89
  beyondText?: boolean;
90
90
  }
91
91
  /** 表格参数 */
92
- interface TableProps extends TableHeadBodyPublicProps {
92
+ export interface TableProps extends TableHeadBodyPublicProps {
93
93
  /** 样式class */
94
94
  className?: string;
95
95
  /** style */
96
- style?: React__default.CSSProperties;
96
+ style?: React.CSSProperties;
97
97
  /** 空状态属性 */
98
98
  emptyProps?: EmptyProps;
99
99
  /** 刷新表格 */
@@ -178,8 +178,18 @@ interface TableProps extends TableHeadBodyPublicProps {
178
178
  onClickColumns?: (a: any[], b?: any) => void;
179
179
  [key: string]: any;
180
180
  }
181
+ export interface ExpandableRowItem {
182
+ /** 当前嵌套行id */
183
+ id?: string;
184
+ /** develop | retract 当前嵌套行状态 (develop 展开) */
185
+ status?: ExpandableStatus;
186
+ }
187
+ /** 存放展开嵌套表格数据 */
188
+ export interface ExpandableRow {
189
+ [name: string]: ExpandableRowItem;
190
+ }
181
191
  /** 请求接口 */
182
- interface ReqProps {
192
+ export interface ReqProps {
183
193
  /** 请求方式 */
184
194
  method: MethodType;
185
195
  /** 请求地址 */
@@ -190,5 +200,3 @@ interface ReqProps {
190
200
  data?: any;
191
201
  [name: string]: any;
192
202
  }
193
-
194
- export { TableProps as T };
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ empty: string;
3
+ determine: string;
4
+ restoreDefault: string;
5
+ };
6
+ export default _default;
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ zh: {
3
+ empty: string;
4
+ determine: string;
5
+ restoreDefault: string;
6
+ };
7
+ en: {
8
+ empty: string;
9
+ determine: string;
10
+ restoreDefault: string;
11
+ };
12
+ };
13
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ empty: string;
3
+ determine: string;
4
+ restoreDefault: string;
5
+ };
6
+ export default _default;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @author linhd
3
+ * @date 2021/8/6 11:06
4
+ * @description 表格内容
5
+ */
6
+ import { FunctionComponent } from 'react';
7
+ import { TableBodyProps } from './tableBodyInterface';
8
+ export declare const TableBody: FunctionComponent<TableBodyProps>;
9
+ export default TableBody;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @author linhd
3
+ * @date 2022/4/26 11:00 AM
4
+ * @description 表格body元素
5
+ */
6
+ import React, { FunctionComponent } from "react";
7
+ import './index.scss';
8
+ export interface TableBodyElementProps {
9
+ className?: string;
10
+ style?: React.CSSProperties;
11
+ children?: any;
12
+ [name: string]: any;
13
+ }
14
+ export declare const TableBodyElement: FunctionComponent<TableBodyElementProps>;
15
+ export default TableBodyElement;
@@ -0,0 +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) => 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
+ }
@@ -0,0 +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;
@@ -0,0 +1,17 @@
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
+ /** 是否固定表格 */
12
+ sticky?: boolean;
13
+ children?: any;
14
+ [name: string]: any;
15
+ }
16
+ export declare const TableElement: FunctionComponent<TableElementProps>;
17
+ export default TableElement;
@@ -0,0 +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;
@@ -0,0 +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;
@@ -0,0 +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
+ }
@@ -0,0 +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;
@@ -0,0 +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
+ }
@@ -0,0 +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;
@@ -0,0 +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;
@@ -0,0 +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;
@@ -0,0 +1,16 @@
1
+ import { 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;
package/Tabs/index.d.ts CHANGED
@@ -1,83 +1,48 @@
1
- import React__default, { ReactNode, FC } from 'react';
2
- import { TabsProps as TabsProps$1, TabPane } from 'rc-tabs';
3
- export { TabPaneProps } from 'rc-tabs';
4
- import { PopConfirmProps } from '../PopConfirm/index.js';
5
- import { HelpProps } from '../Help/index.js';
6
- import styleInject from './node_modules/style-inject/dist/style-inject.es.js';
7
- import '../Button/index.js';
8
- import '../_verture/interface-a77a851e.js';
9
- import 'rc-tooltip/lib/Tooltip';
10
- import '../_verture/index-6190b129.js';
11
- import '../_verture/index-5b08df83.js';
12
- import '../Dropdown/index.js';
13
- import '../_verture/index-0d8e1d07.js';
14
-
15
- var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/21 下午8:49\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-tabs-horizontal {\n height: 40px;\n min-height: auto;\n border-bottom: 1px solid rgba(171, 176, 185, 0.2);\n}\n.paraui-tabs-horizontal .paraui-tabs-tab-editable-icon {\n position: absolute;\n right: 4px;\n top: 50%;\n transform: translateY(-50%);\n line-height: 0;\n cursor: pointer;\n}\n.paraui-tabs-horizontal .paraui-tabs-tab-editable-icon--interactive {\n visibility: hidden;\n transition: 0.3s;\n opacity: 0;\n}\n.paraui-tabs-horizontal .paraui-tabs-tab-editable-icon svg {\n color: inherit;\n font-size: 12px;\n}\n.paraui-tabs-tab {\n position: relative;\n height: 40px;\n min-width: auto;\n min-height: auto;\n padding: 0 20px;\n margin: 0;\n line-height: normal;\n text-transform: none;\n color: rgb(46, 55, 67);\n background-color: rgb(255, 255, 255);\n overflow: visible;\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n opacity: 1;\n transition: 0.3s;\n}\n.paraui-tabs-tab:hover {\n color: rgba(54, 102, 214, 0.8);\n}\n.paraui-tabs-tab:hover .paraui-tabs-tab-editable-icon--interactive {\n visibility: visible;\n opacity: 1;\n}\n.paraui-tabs-tab:hover .paraui-tabs-tab-editable-icon--interactive svg {\n color: rgb(235, 96, 84);\n}\n.paraui-tabs-tab--selected.paraui-tabs-tab {\n color: rgb(54, 102, 214);\n font-weight: 700;\n}\n.paraui-tabs-tab[disabled] {\n pointer-events: auto;\n cursor: not-allowed;\n color: rgba(46, 55, 67, 0.4);\n opacity: 1;\n}\n.paraui-tabs-tab[disabled]:hover {\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-tabs-indicator {\n height: 1px;\n background-color: transparent;\n}\n.paraui-tabs-indicator > span {\n position: absolute;\n height: 1px;\n width: calc(100% - 40px);\n left: 50%;\n top: 0;\n transform: translateX(-50%);\n background-color: rgb(54, 102, 214);\n}\n.paraui-tabs-scrollbtn {\n width: auto;\n}\n.paraui-tabs-scrollbtn > svg {\n color: rgb(46, 55, 67);\n}\n.paraui-tabs-scrollbtn > svg:hover {\n color: rgba(54, 102, 214, 0.8);\n}\n.paraui-tabs-vertical {\n display: inline-flex;\n height: 100%;\n min-width: 100px;\n border-right: 1px solid rgba(171, 176, 185, 0.2);\n}\n.paraui-tabs-vertical .paraui-tabs-tab {\n margin: 0;\n padding: 0 12px 0 0;\n}\n.paraui-tabs-vertical .paraui-tabs-tab:hover .paraui-tabs-tab-content--interactive {\n width: calc(100% - 18px);\n}\n.paraui-tabs-vertical .paraui-tabs-tab:hover .paraui-tabs-tab-editable-icon--interactive {\n width: auto;\n height: auto;\n}\n.paraui-tabs-vertical .paraui-tabs-tab-content {\n display: inline-block;\n width: 100%;\n text-align: right;\n}\n.paraui-tabs-vertical .paraui-tabs-tab-editable {\n width: 100%;\n display: inline-flex;\n align-items: center;\n}\n.paraui-tabs-vertical .paraui-tabs-tab-editable-icon {\n margin-left: 6px;\n line-height: 0;\n}\n.paraui-tabs-vertical .paraui-tabs-tab-editable-icon--interactive {\n width: 0;\n height: 0;\n visibility: hidden;\n transition: opacity 0.3s;\n opacity: 0;\n}\n.paraui-tabs-vertical .paraui-tabs-tab-editable-icon svg {\n color: inherit;\n font-size: 12px;\n}\n.paraui-tabs-vertical:not(.paraui-tabs-card) .paraui-tabs-tab--selected {\n background-color: rgba(54, 102, 214, 0.05);\n}\n.paraui-tabs-vertical .paraui-tabs-indicator {\n width: 1px;\n background-color: rgb(54, 102, 214);\n}\n.paraui-tabs-card {\n border-bottom: none;\n}\n.paraui-tabs-card .paraui-tabs-tab {\n border: 1px solid rgba(171, 176, 185, 0.4);\n margin: 0;\n padding: 0 20px;\n}\n.paraui-tabs-card .paraui-tabs-tab:not(:last-child) {\n border-right: none;\n}\n.paraui-tabs-card .paraui-tabs-tab--selected {\n border-bottom-color: transparent;\n}\n.paraui-tabs-card .paraui-tabs-indicator {\n display: none;\n}\n.paraui-tabs-card--editable .paraui-tabs-tab-editable {\n display: inline-flex;\n align-items: center;\n}\n.paraui-tabs-card--editable .paraui-tabs-tab-editable-icon {\n position: static;\n margin-left: 6px;\n}\n.paraui-tabs-card--editable .paraui-tabs-tab-editable-icon svg {\n color: inherit;\n font-size: 12px;\n}\n.paraui-tabs-card.paraui-tabs-vertical {\n border-right: none;\n}\n.paraui-tabs-card.paraui-tabs-vertical .paraui-tabs-tab {\n border-right: 1px solid rgba(171, 176, 185, 0.4);\n}\n.paraui-tabs-card.paraui-tabs-vertical .paraui-tabs-tab:not(:last-child) {\n border-bottom: none;\n}\n.paraui-tabs-card.paraui-tabs-vertical .paraui-tabs-tab--selected {\n border-right-color: transparent;\n border-bottom-color: rgba(171, 176, 185, 0.4);\n}\n.paraui-tabs-card.paraui-tabs-vertical .paraui-tabs-tab-content {\n display: inline-block;\n width: 100%;\n text-align: center;\n}\n.paraui-tabs-track {\n display: inline-flex;\n height: 36px;\n border-bottom: 0;\n background-color: rgba(171, 176, 185, 0.12);\n border-radius: 4px;\n}\n.paraui-tabs-track .paraui-tabs-tab {\n height: 28px;\n margin: 4px;\n padding: 0 16px;\n background-color: transparent;\n border-radius: 4px;\n}\n.paraui-tabs-track .paraui-tabs-tab--selected.paraui-tabs-tab {\n color: rgb(54, 102, 214);\n background-color: rgb(255, 255, 255);\n font-weight: 400;\n}\n.paraui-tabs-track .paraui-tabs-indicator {\n display: none;\n}\n\n.paraui-tabs-with-add {\n position: relative;\n display: flex;\n align-items: center;\n}\n.paraui-tabs-with-add .paraui-tabs {\n flex: 1;\n}\n.paraui-tabs-with-add .paraui-tabs-tab-add {\n margin-left: 8px;\n}";
16
- styleInject(css_248z);
17
-
18
1
  /**
19
2
  * @author Hanz
20
- * @date 2022/5/30 上午9:59
21
- * @description tabs
3
+ * @date 2021/8/5 下午3:10
4
+ * @description 标签页
22
5
  */
23
-
24
- declare type TabsType = 'line' | 'card' | 'editable-card' | 'track' | 'card-container';
25
- declare type TabsPosition = 'top' | 'right' | 'bottom' | 'left';
26
-
27
- interface TabProps {
28
- /** tab text */
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
+ /** 标签*/
29
12
  label?: ReactNode;
30
- /** tab panel */
31
- content?: ReactNode;
32
- /** tab key */
13
+ /** 选中value*/
33
14
  value?: any;
34
- /** 禁用 */
15
+ /** 禁用*/
35
16
  disabled?: boolean;
36
- /** 可关闭标签 */
17
+ /** cls*/
18
+ className?: string;
19
+ /** 可关闭标签*/
37
20
  closable?: boolean;
38
- /** 显示帮助提示 Help */
39
- showHelp?: boolean;
40
- /** help props */
41
- helpProps?: HelpProps;
21
+ /** 鼠标悬浮显示关闭图标 */
22
+ interactive?: boolean;
42
23
  [name: string]: any;
43
24
  }
44
- interface TabsProps extends Omit<TabsProps$1, 'editable'> {
45
- /** tabs 类型 */
46
- type?: TabsType;
25
+ export interface TabsProps extends Omit<MuiTabsProps, 'onChange'> {
47
26
  /** 模式:线性、卡片*/
48
- mode?: TabsType;
49
- /** 大小 */
50
- size?: 'small' | 'medium' | 'large';
51
- /** 隐藏添加图标 */
52
- hideAdd?: boolean;
53
- /** 标签居中展示 */
54
- centered?: boolean;
55
- /** 添加图标 */
56
- addIcon?: ReactNode;
57
- /** 编辑标签 */
27
+ mode?: 'line' | 'card' | 'track';
28
+ /**可编辑标签页*/
58
29
  editable?: boolean;
59
- /** 显示添加图标 */
60
- showAdd?: boolean;
30
+ /**显示新增按钮*/
31
+ showAdd?: boolean | React.ReactNode;
61
32
  /**显示 popconfirm,editable 为true 有效*/
62
33
  showPopConfirm?: boolean;
63
34
  /** popConfirm props*/
64
35
  popConfirmProps?: PopConfirmProps;
65
36
  /** 数据列表*/
66
- data?: TabProps[];
67
- /** 选中的 value*/
68
- value?: any;
37
+ data?: Array<TabProps>;
38
+ /** 显示tooltip*/
39
+ showToolTip?: boolean;
69
40
  /** 新增按钮回调 showAdd 为 true 时有效*/
70
- onAdd?: (e?: React__default.MouseEvent) => void;
41
+ onAdd?: (event?: React.MouseEvent) => void;
71
42
  /** 切换标签页的回调 */
72
- onChange?: (activeKey: any, item?: TabProps) => void;
73
- /** 新增和删除页签的回调 */
74
- onEdit?: (item: TabProps, e?: React__default.MouseEvent | React__default.KeyboardEvent | string, action?: 'add' | 'remove') => void;
75
- [name: string]: any;
43
+ onChange?: (value: any, tabData?: TabProps, event?: React.ChangeEvent) => void;
44
+ /** 关闭标签页的回调*/
45
+ onEdit?: (tabData: TabProps, event?: React.MouseEvent) => void;
76
46
  }
77
- declare const Tabs: FC<TabsProps>;
78
- declare type mergedTabs = typeof Tabs & {
79
- TabPane: typeof TabPane;
80
- };
81
- declare const _default: mergedTabs;
82
-
83
- export { TabProps, Tabs, TabsPosition, TabsProps, TabsType, _default as default };
47
+ export declare const Tabs: FunctionComponent<TabsProps>;
48
+ export default Tabs;