@para-ui/core 2.2.39 → 2.2.40

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 (292) 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/index.js +1 -1
  14. package/Cascader/lang/en_US.d.ts +4 -4
  15. package/Cascader/lang/index.d.ts +9 -9
  16. package/Cascader/lang/zh_CN.d.ts +4 -4
  17. package/Checkbox/index.d.ts +40 -40
  18. package/CheckboxGroup/index.d.ts +46 -46
  19. package/CheckboxGroup/index.js +2 -2
  20. package/Collapse/collapsePanel.d.ts +30 -30
  21. package/Collapse/index.d.ts +57 -57
  22. package/Collapse/motion.d.ts +5 -5
  23. package/Collapse/util.d.ts +11 -11
  24. package/CollapseBox/index.d.ts +27 -27
  25. package/CollapseBox/util.d.ts +5 -5
  26. package/CollapseLayout/index.d.ts +51 -51
  27. package/ColorPicker/index.d.ts +4 -4
  28. package/ComboSelect/WithTabsCombo/index.d.ts +11 -11
  29. package/ComboSelect/WithTabsCombo/interface.d.ts +141 -141
  30. package/ComboSelect/index.d.ts +11 -11
  31. package/ComboSelect/index.js +1 -1
  32. package/ComboSelect/interface.d.ts +149 -149
  33. package/ComboSelect/lang/en_US.d.ts +9 -9
  34. package/ComboSelect/lang/index.d.ts +19 -19
  35. package/ComboSelect/lang/zh_CN.d.ts +9 -9
  36. package/ComboSelect/utils.d.ts +12 -12
  37. package/Container/index.d.ts +77 -77
  38. package/DatePicker/PickerButton.d.ts +3 -3
  39. package/DatePicker/PickerTag.d.ts +3 -3
  40. package/DatePicker/generatePicker/generateRangePicker.d.ts +4 -4
  41. package/DatePicker/generatePicker/generateSinglePicker.d.ts +11 -11
  42. package/DatePicker/generatePicker/index.d.ts +77 -77
  43. package/DatePicker/index.d.ts +18 -18
  44. package/DatePicker/lang/en_US.d.ts +3 -3
  45. package/DatePicker/lang/index.d.ts +7 -7
  46. package/DatePicker/lang/zh_CN.d.ts +3 -3
  47. package/DatePicker/util.d.ts +20 -20
  48. package/Desktop/index.d.ts +55 -55
  49. package/Drawer/index.d.ts +11 -11
  50. package/Drawer/interface.d.ts +83 -83
  51. package/Drawer/lang/en_US.d.ts +5 -5
  52. package/Drawer/lang/index.d.ts +11 -11
  53. package/Drawer/lang/zh_CN.d.ts +5 -5
  54. package/Dropdown/index.d.ts +39 -39
  55. package/DynamicMultiBox/formItem.d.ts +13 -13
  56. package/DynamicMultiBox/index.d.ts +4 -4
  57. package/DynamicMultiBox/index.js +2 -2
  58. package/DynamicMultiBox/interface.d.ts +161 -161
  59. package/DynamicMultiBox/rowForm.d.ts +24 -24
  60. package/Empty/images/index.d.ts +2 -2
  61. package/Empty/index.d.ts +30 -30
  62. package/Empty/lang/en_US.d.ts +6 -6
  63. package/Empty/lang/index.d.ts +13 -13
  64. package/Empty/lang/zh_CN.d.ts +6 -6
  65. package/Form/index.d.ts +181 -181
  66. package/Form/index.js +2 -2
  67. package/FormItem/compoments/defaultCompoments/index.d.ts +19 -19
  68. package/FormItem/compoments/formCheckboxGroup/index.d.ts +8 -8
  69. package/FormItem/compoments/formFile/index.d.ts +38 -38
  70. package/FormItem/compoments/formRadioGroup/index.d.ts +8 -8
  71. package/FormItem/compoments/formSelect/index.d.ts +18 -18
  72. package/FormItem/errorTips.d.ts +12 -12
  73. package/FormItem/index.d.ts +152 -152
  74. package/FormItem/index.js +2 -2
  75. package/FormItem/itemType.d.ts +42 -42
  76. package/FormItem/validateFunction.d.ts +15 -15
  77. package/FunctionModal/dialog.d.ts +58 -58
  78. package/FunctionModal/index.d.ts +8 -8
  79. package/FunctionModal/index.js +1 -1
  80. package/FunctionModal/modalContext.d.ts +14 -14
  81. package/GlobalContext/componentsProps.d.ts +21 -21
  82. package/GlobalContext/confirmLocale.d.ts +7 -7
  83. package/GlobalContext/constant.d.ts +7 -7
  84. package/GlobalContext/index.d.ts +28 -28
  85. package/GlobalContext/intl.d.ts +34 -34
  86. package/GlobalContext/useFormatMessage.d.ts +3 -3
  87. package/Help/index.d.ts +20 -20
  88. package/HelperText/index.d.ts +19 -19
  89. package/Hooks/useGlobalProps.d.ts +1 -1
  90. package/InputLang/index.d.ts +49 -49
  91. package/InputNumber/index.d.ts +74 -74
  92. package/Label/index.d.ts +35 -35
  93. package/Loading/index.d.ts +17 -17
  94. package/Menu/footerExpansion.d.ts +9 -9
  95. package/Menu/index.d.ts +10 -10
  96. package/Menu/index.js +1 -1
  97. package/Menu/interface.d.ts +139 -139
  98. package/Menu/logo.d.ts +9 -9
  99. package/Menu/verticalMenuList.d.ts +14 -14
  100. package/Message/index.d.ts +73 -73
  101. package/Modal/Confirm/index.d.ts +66 -66
  102. package/Modal/index.d.ts +61 -61
  103. package/Modal/lang/en_US.d.ts +5 -5
  104. package/Modal/lang/index.d.ts +11 -11
  105. package/Modal/lang/zh_CN.d.ts +5 -5
  106. package/MultiBox/index.d.ts +54 -54
  107. package/Notification/index.d.ts +52 -52
  108. package/OperateBtn/index.d.ts +59 -59
  109. package/OperateBtn/index.js +1 -1
  110. package/OperateBtn/lang/en_US.d.ts +4 -4
  111. package/OperateBtn/lang/index.d.ts +9 -9
  112. package/OperateBtn/lang/zh_CN.d.ts +4 -4
  113. package/PageHeader/horizontalMeun.d.ts +9 -9
  114. package/PageHeader/horizontalMeunRight.d.ts +9 -9
  115. package/PageHeader/index.d.ts +10 -10
  116. package/PageHeader/interface.d.ts +167 -167
  117. package/Pagination/index.d.ts +33 -33
  118. package/Pagination/lang/en_US.d.ts +8 -8
  119. package/Pagination/lang/index.d.ts +17 -17
  120. package/Pagination/lang/zh_CN.d.ts +8 -8
  121. package/ParauiProvider/index.d.ts +12 -12
  122. package/PasswordRules/index.d.ts +46 -46
  123. package/PopConfirm/index.d.ts +56 -56
  124. package/PopConfirm/lang/en_US.d.ts +5 -5
  125. package/PopConfirm/lang/index.d.ts +11 -11
  126. package/PopConfirm/lang/zh_CN.d.ts +5 -5
  127. package/Popover/index.d.ts +14 -14
  128. package/PopoverNew/TooltipNew/index.d.ts +11 -11
  129. package/PopoverNew/TooltipNew/interface.d.ts +31 -31
  130. package/PopoverNew/TooltipNew/utils.d.ts +18 -18
  131. package/PopoverNew/index.d.ts +16 -16
  132. package/Popper/index.d.ts +13 -13
  133. package/Progress/Line.d.ts +47 -47
  134. package/Progress/Steps.d.ts +17 -17
  135. package/Progress/index.d.ts +81 -81
  136. package/Progress/index.js +1 -1
  137. package/Progress/utils.d.ts +6 -6
  138. package/Querying/images/index.d.ts +2 -2
  139. package/Querying/index.d.ts +26 -26
  140. package/Querying/lang/en_US.d.ts +4 -4
  141. package/Querying/lang/index.d.ts +9 -9
  142. package/Querying/lang/zh_CN.d.ts +4 -4
  143. package/README.md +739 -732
  144. package/Radio/index.d.ts +38 -38
  145. package/RadioGroup/index.d.ts +47 -47
  146. package/RadioGroup/index.js +2 -2
  147. package/Search/index.d.ts +56 -56
  148. package/Select/index.d.ts +96 -96
  149. package/Select/lang/en_US.d.ts +5 -5
  150. package/Select/lang/index.d.ts +11 -11
  151. package/Select/lang/zh_CN.d.ts +5 -5
  152. package/SelectInput/index.d.ts +11 -11
  153. package/Selector/index.d.ts +11 -11
  154. package/Selector/index.js +2 -2
  155. package/Selector/interface.d.ts +428 -428
  156. package/Selector/lang/en_US.d.ts +11 -11
  157. package/Selector/lang/index.d.ts +23 -23
  158. package/Selector/lang/zh_CN.d.ts +11 -11
  159. package/Selector/selectorData/index.d.ts +10 -10
  160. package/Selector/selectorMain/index.d.ts +10 -10
  161. package/Selector/selectorNode/index.d.ts +10 -10
  162. package/Selector/util.d.ts +15 -15
  163. package/SelectorPicker/index.d.ts +53 -53
  164. package/SelectorPicker/index.js +2 -2
  165. package/SingleBox/index.d.ts +42 -42
  166. package/Slider/index.d.ts +14 -14
  167. package/Slider/interface.d.ts +102 -102
  168. package/Split/index.d.ts +7 -7
  169. package/Stepper/icons.d.ts +5 -5
  170. package/Stepper/index.d.ts +39 -39
  171. package/Switch/index.d.ts +78 -78
  172. package/Table/index.d.ts +10 -10
  173. package/Table/index.js +1 -1
  174. package/Table/interface.d.ts +271 -271
  175. package/Table/lang/en_US.d.ts +8 -8
  176. package/Table/lang/index.d.ts +17 -17
  177. package/Table/lang/zh_CN.d.ts +8 -8
  178. package/Table/tableBody.d.ts +9 -9
  179. package/Table/tableBodyElement/index.d.ts +15 -15
  180. package/Table/tableBodyInterface.d.ts +67 -67
  181. package/Table/tableContainer/index.d.ts +16 -16
  182. package/Table/tableElement/index.d.ts +15 -15
  183. package/Table/tableHead.d.ts +9 -9
  184. package/Table/tableHeadElement/index.d.ts +15 -15
  185. package/Table/tableHeadInterface.d.ts +30 -30
  186. package/Table/tablePagination.d.ts +9 -9
  187. package/Table/tablePaginationInterFace.d.ts +24 -24
  188. package/Table/tdElement/index.d.ts +15 -15
  189. package/Table/thElement/index.d.ts +15 -15
  190. package/Table/trElement/index.d.ts +15 -15
  191. package/Table/util.d.ts +28 -28
  192. package/Tabs/index.d.ts +48 -48
  193. package/Tag/TagGroup.d.ts +66 -66
  194. package/Tag/index.d.ts +34 -34
  195. package/TextField/index.d.ts +95 -95
  196. package/TimePicker/index.d.ts +22 -22
  197. package/TimePicker/locale/en_US.d.ts +3 -3
  198. package/TimePicker/locale/zh_CN.d.ts +3 -3
  199. package/TimePicker/style/index.d.ts +1 -1
  200. package/Timeline/index.d.ts +22 -22
  201. package/Title/index.d.ts +30 -30
  202. package/ToggleButton/ToggleButtonGroup.d.ts +49 -49
  203. package/ToggleButton/index.d.ts +49 -49
  204. package/Tooltip/index.d.ts +14 -14
  205. package/Transfer/index.d.ts +37 -37
  206. package/Transfer/lang/en_US.d.ts +8 -8
  207. package/Transfer/lang/index.d.ts +17 -17
  208. package/Transfer/lang/zh_CN.d.ts +8 -8
  209. package/Tree/OperateBar/index.d.ts +13 -13
  210. package/Tree/Tree.d.ts +4 -4
  211. package/Tree/index.d.ts +5 -5
  212. package/Tree/index.js +1 -1
  213. package/Tree/interface.d.ts +207 -207
  214. package/Tree/lang/en_US.d.ts +8 -8
  215. package/Tree/lang/index.d.ts +17 -17
  216. package/Tree/lang/zh_CN.d.ts +8 -8
  217. package/Tree/utils/tools.d.ts +26 -26
  218. package/Tree/utils/treeUtil.d.ts +15 -15
  219. package/Upload/Dragger/index.d.ts +10 -10
  220. package/Upload/ErroTip/index.d.ts +13 -13
  221. package/Upload/ImageUpload/index.d.ts +14 -14
  222. package/Upload/ImgCrop/EasyCrop.d.ts +17 -17
  223. package/Upload/ImgCrop/constants.d.ts +7 -7
  224. package/Upload/ImgCrop/index.d.ts +6 -6
  225. package/Upload/ImgCrop/interface.d.ts +48 -48
  226. package/Upload/UploadList/index.d.ts +5 -5
  227. package/Upload/index.d.ts +15 -15
  228. package/Upload/index.js +1 -1
  229. package/Upload/interface.d.ts +134 -134
  230. package/Upload/lang/en_US.d.ts +12 -12
  231. package/Upload/lang/index.d.ts +25 -25
  232. package/Upload/lang/zh_CN.d.ts +12 -12
  233. package/cdn/AutoBox/index.js +1 -1
  234. package/cdn/AutoTips/index.js +1 -1
  235. package/cdn/Breadcrumbs/index.js +1 -1
  236. package/cdn/Button/index.js +5 -5
  237. package/cdn/ButtonGroup/index.js +5 -5
  238. package/cdn/Cascader/index.js +3 -3
  239. package/cdn/Checkbox/index.js +5 -5
  240. package/cdn/CheckboxGroup/index.js +5 -5
  241. package/cdn/Collapse/index.js +2 -2
  242. package/cdn/ColorPicker/index.js +1 -1
  243. package/cdn/ComboSelect/index.js +3 -3
  244. package/cdn/DatePicker/index.js +5 -5
  245. package/cdn/Desktop/index.js +2 -2
  246. package/cdn/Drawer/index.js +5 -5
  247. package/cdn/Dropdown/index.js +3 -3
  248. package/cdn/DynamicMultiBox/index.js +6 -6
  249. package/cdn/Form/index.js +4 -4
  250. package/cdn/FormItem/index.js +5 -5
  251. package/cdn/FunctionModal/index.js +5 -5
  252. package/cdn/Help/index.js +1 -1
  253. package/cdn/InputLang/index.js +1 -1
  254. package/cdn/InputNumber/index.js +5 -5
  255. package/cdn/Label/index.js +1 -1
  256. package/cdn/Menu/index.js +2 -2
  257. package/cdn/Modal/index.js +1 -1
  258. package/cdn/MultiBox/index.js +5 -5
  259. package/cdn/Notification/index.js +2 -2
  260. package/cdn/OperateBtn/index.js +1 -1
  261. package/cdn/PageHeader/index.js +5 -5
  262. package/cdn/Pagination/index.js +2 -2
  263. package/cdn/ParauiProvider/index.js +2 -2
  264. package/cdn/PasswordRules/index.js +2 -2
  265. package/cdn/PopConfirm/index.js +5 -5
  266. package/cdn/Popover/index.js +1 -1
  267. package/cdn/PopoverNew/index.js +3 -3
  268. package/cdn/Progress/index.js +1 -1
  269. package/cdn/Radio/index.js +5 -5
  270. package/cdn/RadioGroup/index.js +6 -6
  271. package/cdn/Search/index.js +5 -5
  272. package/cdn/Select/index.js +2 -2
  273. package/cdn/SelectInput/index.js +2 -2
  274. package/cdn/Selector/index.js +5 -5
  275. package/cdn/SelectorPicker/index.js +5 -5
  276. package/cdn/SingleBox/index.js +5 -5
  277. package/cdn/Slider/index.js +3 -3
  278. package/cdn/Stepper/index.js +3 -3
  279. package/cdn/Switch/index.js +5 -5
  280. package/cdn/Table/index.js +7 -7
  281. package/cdn/Tabs/index.js +6 -6
  282. package/cdn/TextField/index.js +1 -1
  283. package/cdn/TimePicker/index.js +10 -10
  284. package/cdn/Timeline/index.js +2 -2
  285. package/cdn/ToggleButton/index.js +1 -1
  286. package/cdn/Tooltip/index.js +1 -1
  287. package/cdn/Transfer/index.js +5 -5
  288. package/cdn/Tree/index.js +2 -2
  289. package/cdn/Upload/index.js +2 -2
  290. package/index.d.ts +142 -142
  291. package/index.js +2 -2
  292. package/package.json +131 -131
@@ -1,139 +1,139 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/10 14:24
4
- * @description 菜单参数
5
- */
6
- import React, { ReactNode } from 'react';
7
- /** 菜单类型 */
8
- export declare type MenuListTypeType = 'redirect' | 'router' | "iframe" | "snack" | "snackPage";
9
- /** color类型 */
10
- export declare type ColorType = 'deep' | 'light';
11
- /** logo参数 */
12
- export interface LogoProps {
13
- /** 展开 / 收起 */
14
- expansion?: boolean;
15
- /** 自定义内容 */
16
- render?: ReactNode;
17
- /** 样式class */
18
- className?: string;
19
- }
20
- /** 菜单列表项参数 */
21
- export interface MenuChildrenProps {
22
- /** 样式class */
23
- className?: string;
24
- /** 菜单名 */
25
- label?: ReactNode;
26
- /** 菜单类型 */
27
- type?: MenuListTypeType;
28
- /** 菜单路径 */
29
- path?: string;
30
- /** 菜单图标 */
31
- icon?: ReactNode;
32
- /** 菜单组件 */
33
- component?: any;
34
- /** 子菜单 */
35
- children?: MenuChildrenProps[];
36
- /** 菜单最后一层所有上下级 一条线 */
37
- idMenuLast?: any;
38
- /** 当前选中菜单 */
39
- selectMenu?: string;
40
- /** 点击菜单 */
41
- onClickMenu?: (item: MenuChildrenProps | false) => void;
42
- /** 选中菜单,是否收起其他展开项 */
43
- shrinkOthers?: boolean;
44
- /** 唯一值,内部属性,自动生成 */
45
- _paraui_menu_id?: string;
46
- /** 是否第一级 */
47
- _paraui_menu_first?: boolean;
48
- [name: string]: any;
49
- }
50
- /** 菜单列表参数 */
51
- export interface MenuListProps {
52
- /** 颜色 */
53
- color?: ColorType;
54
- /** 展开 / 收起 */
55
- expansion?: boolean;
56
- /** 菜单列表参数 */
57
- list?: MenuChildrenProps[];
58
- /** 当前选中菜单 */
59
- selectMenu?: string;
60
- /** 点击菜单 */
61
- onClickMenu?: (item: MenuChildrenProps | false) => void;
62
- /** 样式class */
63
- className?: string;
64
- /** 选中菜单,是否收起其他展开项 */
65
- shrinkOthers?: boolean;
66
- [name: string]: any;
67
- }
68
- /** 弹出菜单 */
69
- export interface MenuItemPopoverProps {
70
- /** 打开 */
71
- open?: boolean;
72
- /** 定位元素, 自定义属性 paraui-menu-id */
73
- anchorEl?: string;
74
- /** 菜单列表 */
75
- list?: MenuChildrenProps[];
76
- /** 菜单最后一层所有上下级 一条线 */
77
- idMenuLast?: any;
78
- /** 当前选中菜单 */
79
- selectMenu?: string;
80
- /** 点击菜单 */
81
- onClickMenu?: (item: MenuChildrenProps | false) => void;
82
- /** 层级 */
83
- level?: number;
84
- /** 鼠标移入 */
85
- onMouseEnter?: Function;
86
- /** 鼠标移出 */
87
- onMouseLeave: Function;
88
- onMouseEnterBus?: Function;
89
- onMouseLeaveBus?: Function;
90
- /** 主题色 */
91
- color?: ColorType;
92
- className?: string;
93
- [name: string]: any;
94
- }
95
- /** 尾部展开 */
96
- export interface FooterExpansionProps {
97
- /** 是否展开 */
98
- expansion?: boolean;
99
- /** 展开图标 */
100
- expandIcon?: ReactNode;
101
- /** 收起图标 */
102
- shrinkIcon?: ReactNode;
103
- /** 自定义尾部 */
104
- render?: ReactNode;
105
- /** 样式class */
106
- className?: string;
107
- /** 展开事件 */
108
- clickExpansion?: (bol: boolean) => void;
109
- /** 版本号 */
110
- version?: ReactNode;
111
- [name: string]: any;
112
- }
113
- /** 菜单参数 */
114
- export interface MenuProps {
115
- /** 样式class */
116
- className?: string;
117
- /** style */
118
- style?: React.CSSProperties;
119
- /** 颜色 */
120
- color?: ColorType;
121
- /** 展开 / 收起 */
122
- expansion?: boolean;
123
- /** 当前选中菜单 */
124
- selectMenu?: string;
125
- /** 选中菜单,是否收起其他展开项 */
126
- shrinkOthers?: boolean;
127
- /** 显示收缩按钮 */
128
- showExpansion?: boolean;
129
- /** logo配置 */
130
- logoProps?: LogoProps;
131
- /** 菜单配置 */
132
- menuListProps?: MenuListProps;
133
- /** 尾部展开参数 */
134
- footerExpansionProps?: FooterExpansionProps;
135
- /** 展开事件 */
136
- onClickExpansion?: (bol: boolean) => void;
137
- /** 点击菜单 */
138
- onClickMenu?: (item: MenuChildrenProps | false) => void;
139
- }
1
+ /**
2
+ * @author linhd
3
+ * @date 2021/8/10 14:24
4
+ * @description 菜单参数
5
+ */
6
+ import React, { ReactNode } from 'react';
7
+ /** 菜单类型 */
8
+ export type MenuListTypeType = 'redirect' | 'router' | "iframe" | "snack" | "snackPage";
9
+ /** color类型 */
10
+ export type ColorType = 'deep' | 'light';
11
+ /** logo参数 */
12
+ export interface LogoProps {
13
+ /** 展开 / 收起 */
14
+ expansion?: boolean;
15
+ /** 自定义内容 */
16
+ render?: ReactNode;
17
+ /** 样式class */
18
+ className?: string;
19
+ }
20
+ /** 菜单列表项参数 */
21
+ export interface MenuChildrenProps {
22
+ /** 样式class */
23
+ className?: string;
24
+ /** 菜单名 */
25
+ label?: ReactNode;
26
+ /** 菜单类型 */
27
+ type?: MenuListTypeType;
28
+ /** 菜单路径 */
29
+ path?: string;
30
+ /** 菜单图标 */
31
+ icon?: ReactNode;
32
+ /** 菜单组件 */
33
+ component?: any;
34
+ /** 子菜单 */
35
+ children?: MenuChildrenProps[];
36
+ /** 菜单最后一层所有上下级 一条线 */
37
+ idMenuLast?: any;
38
+ /** 当前选中菜单 */
39
+ selectMenu?: string;
40
+ /** 点击菜单 */
41
+ onClickMenu?: (item: MenuChildrenProps | false) => void;
42
+ /** 选中菜单,是否收起其他展开项 */
43
+ shrinkOthers?: boolean;
44
+ /** 唯一值,内部属性,自动生成 */
45
+ _paraui_menu_id?: string;
46
+ /** 是否第一级 */
47
+ _paraui_menu_first?: boolean;
48
+ [name: string]: any;
49
+ }
50
+ /** 菜单列表参数 */
51
+ export interface MenuListProps {
52
+ /** 颜色 */
53
+ color?: ColorType;
54
+ /** 展开 / 收起 */
55
+ expansion?: boolean;
56
+ /** 菜单列表参数 */
57
+ list?: MenuChildrenProps[];
58
+ /** 当前选中菜单 */
59
+ selectMenu?: string;
60
+ /** 点击菜单 */
61
+ onClickMenu?: (item: MenuChildrenProps | false) => void;
62
+ /** 样式class */
63
+ className?: string;
64
+ /** 选中菜单,是否收起其他展开项 */
65
+ shrinkOthers?: boolean;
66
+ [name: string]: any;
67
+ }
68
+ /** 弹出菜单 */
69
+ export interface MenuItemPopoverProps {
70
+ /** 打开 */
71
+ open?: boolean;
72
+ /** 定位元素, 自定义属性 paraui-menu-id */
73
+ anchorEl?: string;
74
+ /** 菜单列表 */
75
+ list?: MenuChildrenProps[];
76
+ /** 菜单最后一层所有上下级 一条线 */
77
+ idMenuLast?: any;
78
+ /** 当前选中菜单 */
79
+ selectMenu?: string;
80
+ /** 点击菜单 */
81
+ onClickMenu?: (item: MenuChildrenProps | false) => void;
82
+ /** 层级 */
83
+ level?: number;
84
+ /** 鼠标移入 */
85
+ onMouseEnter?: Function;
86
+ /** 鼠标移出 */
87
+ onMouseLeave: Function;
88
+ onMouseEnterBus?: Function;
89
+ onMouseLeaveBus?: Function;
90
+ /** 主题色 */
91
+ color?: ColorType;
92
+ className?: string;
93
+ [name: string]: any;
94
+ }
95
+ /** 尾部展开 */
96
+ export interface FooterExpansionProps {
97
+ /** 是否展开 */
98
+ expansion?: boolean;
99
+ /** 展开图标 */
100
+ expandIcon?: ReactNode;
101
+ /** 收起图标 */
102
+ shrinkIcon?: ReactNode;
103
+ /** 自定义尾部 */
104
+ render?: ReactNode;
105
+ /** 样式class */
106
+ className?: string;
107
+ /** 展开事件 */
108
+ clickExpansion?: (bol: boolean) => void;
109
+ /** 版本号 */
110
+ version?: ReactNode;
111
+ [name: string]: any;
112
+ }
113
+ /** 菜单参数 */
114
+ export interface MenuProps {
115
+ /** 样式class */
116
+ className?: string;
117
+ /** style */
118
+ style?: React.CSSProperties;
119
+ /** 颜色 */
120
+ color?: ColorType;
121
+ /** 展开 / 收起 */
122
+ expansion?: boolean;
123
+ /** 当前选中菜单 */
124
+ selectMenu?: string;
125
+ /** 选中菜单,是否收起其他展开项 */
126
+ shrinkOthers?: boolean;
127
+ /** 显示收缩按钮 */
128
+ showExpansion?: boolean;
129
+ /** logo配置 */
130
+ logoProps?: LogoProps;
131
+ /** 菜单配置 */
132
+ menuListProps?: MenuListProps;
133
+ /** 尾部展开参数 */
134
+ footerExpansionProps?: FooterExpansionProps;
135
+ /** 展开事件 */
136
+ onClickExpansion?: (bol: boolean) => void;
137
+ /** 点击菜单 */
138
+ onClickMenu?: (item: MenuChildrenProps | false) => void;
139
+ }
package/Menu/logo.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/10 16:35
4
- * @description 菜单图标
5
- */
6
- import { FunctionComponent } from 'react';
7
- import { LogoProps } from './interface';
8
- export declare const Logo: FunctionComponent<LogoProps>;
9
- export default Logo;
1
+ /**
2
+ * @author linhd
3
+ * @date 2021/8/10 16:35
4
+ * @description 菜单图标
5
+ */
6
+ import { FunctionComponent } from 'react';
7
+ import { LogoProps } from './interface';
8
+ export declare const Logo: FunctionComponent<LogoProps>;
9
+ export default Logo;
@@ -1,14 +1,14 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/10 17:54
4
- * @description 竖向菜单
5
- */
6
- import { FunctionComponent } from 'react';
7
- import { MenuListProps } from './interface';
8
- /** 上下箭头 */
9
- export declare type FlipDisable = {
10
- prev: boolean;
11
- next: boolean;
12
- };
13
- export declare const VerticalMenuList: FunctionComponent<MenuListProps>;
14
- export default VerticalMenuList;
1
+ /**
2
+ * @author linhd
3
+ * @date 2021/8/10 17:54
4
+ * @description 竖向菜单
5
+ */
6
+ import { FunctionComponent } from 'react';
7
+ import { MenuListProps } from './interface';
8
+ /** 上下箭头 */
9
+ export type FlipDisable = {
10
+ prev: boolean;
11
+ next: boolean;
12
+ };
13
+ export declare const VerticalMenuList: FunctionComponent<MenuListProps>;
14
+ export default VerticalMenuList;
@@ -1,73 +1,73 @@
1
- /**
2
- * @author Hanz
3
- * @date 2021/8/5 下午8:04
4
- * @description message 全局提示
5
- */
6
- import React from 'react';
7
- import './index.scss';
8
- interface MsgGlobalConfig {
9
- /**
10
- * 最大显示数
11
- */
12
- maxCount?: number;
13
- /**
14
- * 时长
15
- */
16
- duration?: number;
17
- }
18
- declare const _default: () => JSX.Element;
19
- export default _default;
20
- export declare type MsgTypeProps = {
21
- /**是否启用html渲染内容*/
22
- html?: boolean;
23
- /**是否强制显示关闭按钮,默认自动当延迟关闭事件为0或null时自动显示*/
24
- close?: boolean;
25
- /**
26
- * 消息文本
27
- */
28
- text?: string;
29
- /**
30
- * 图标
31
- */
32
- icon?: any;
33
- /**
34
- * 最大显示数
35
- */
36
- maxCount?: number;
37
- /**
38
- * 描述
39
- */
40
- desc?: string;
41
- /**
42
- * 隐藏默认图标
43
- */
44
- hideIcon?: boolean;
45
- /**
46
- * cls
47
- */
48
- className?: string;
49
- /**
50
- * style
51
- */
52
- style?: React.CSSProperties;
53
- };
54
- interface MsgPorps {
55
- (config: string | MsgTypeProps, duration?: number): void;
56
- }
57
- export interface MessageObject {
58
- /**信息*/
59
- info: MsgPorps;
60
- /**警告*/
61
- warn: MsgPorps;
62
- /**错误*/
63
- error: MsgPorps;
64
- /**成功*/
65
- success: MsgPorps;
66
- /** 清除所有 */
67
- clear?: () => void;
68
- /** 销毁所有,兼容写法 */
69
- destroyAll?: () => void;
70
- /** 全局配置 */
71
- config?: (config: MsgGlobalConfig) => void;
72
- }
73
- export declare const Message: MessageObject;
1
+ /**
2
+ * @author Hanz
3
+ * @date 2021/8/5 下午8:04
4
+ * @description message 全局提示
5
+ */
6
+ import React from 'react';
7
+ import './index.scss';
8
+ interface MsgGlobalConfig {
9
+ /**
10
+ * 最大显示数
11
+ */
12
+ maxCount?: number;
13
+ /**
14
+ * 时长
15
+ */
16
+ duration?: number;
17
+ }
18
+ declare const _default: () => JSX.Element;
19
+ export default _default;
20
+ export type MsgTypeProps = {
21
+ /**是否启用html渲染内容*/
22
+ html?: boolean;
23
+ /**是否强制显示关闭按钮,默认自动当延迟关闭事件为0或null时自动显示*/
24
+ close?: boolean;
25
+ /**
26
+ * 消息文本
27
+ */
28
+ text?: string;
29
+ /**
30
+ * 图标
31
+ */
32
+ icon?: any;
33
+ /**
34
+ * 最大显示数
35
+ */
36
+ maxCount?: number;
37
+ /**
38
+ * 描述
39
+ */
40
+ desc?: string;
41
+ /**
42
+ * 隐藏默认图标
43
+ */
44
+ hideIcon?: boolean;
45
+ /**
46
+ * cls
47
+ */
48
+ className?: string;
49
+ /**
50
+ * style
51
+ */
52
+ style?: React.CSSProperties;
53
+ };
54
+ interface MsgPorps {
55
+ (config: string | MsgTypeProps, duration?: number): void;
56
+ }
57
+ export interface MessageObject {
58
+ /**信息*/
59
+ info: MsgPorps;
60
+ /**警告*/
61
+ warn: MsgPorps;
62
+ /**错误*/
63
+ error: MsgPorps;
64
+ /**成功*/
65
+ success: MsgPorps;
66
+ /** 清除所有 */
67
+ clear?: () => void;
68
+ /** 销毁所有,兼容写法 */
69
+ destroyAll?: () => void;
70
+ /** 全局配置 */
71
+ config?: (config: MsgGlobalConfig) => void;
72
+ }
73
+ export declare const Message: MessageObject;
@@ -1,66 +1,66 @@
1
- import { FunctionComponent, ReactNode } from "react";
2
- import { ButtonProps } from "../../Button";
3
- import './index.scss';
4
- declare type ConfirmType = "success" | "info" | "error" | "warn" | "warning";
5
- interface InternalConfirmProps {
6
- /**图标类型*/
7
- type?: ConfirmType;
8
- /**打开*/
9
- open?: boolean;
10
- /**标题*/
11
- title?: ReactNode;
12
- /**内容*/
13
- content?: ReactNode;
14
- /**自定义图标*/
15
- icon?: ReactNode;
16
- /**ok文本*/
17
- okText?: string;
18
- /**cancel文本*/
19
- cancelText?: string;
20
- /**底部操作栏*/
21
- actions?: ReactNode;
22
- /**是否显示actions*/
23
- showActions?: boolean;
24
- /**确定回调*/
25
- onOk?: Function;
26
- /**取消回调*/
27
- onCancel?: Function;
28
- /**cls*/
29
- className?: string;
30
- /**confirm 宽度*/
31
- width?: string | number;
32
- /**显示取消按钮*/
33
- showCancel?: boolean;
34
- /**显示关闭按钮*/
35
- closable?: boolean;
36
- /**禁用backdrop点击*/
37
- disableBackdropClick?: boolean;
38
- /**禁用esc键*/
39
- disableEscapeKeyDown?: boolean;
40
- /**确定按钮属性*/
41
- okButtonProps?: ButtonProps;
42
- /**取消按钮属性*/
43
- cancelButtonProps?: ButtonProps;
44
- /**promise resolve*/
45
- resolveFn?: Function;
46
- /**确定时回调*/
47
- callback?: Function;
48
- /**销毁方法*/
49
- destroy?: Function;
50
- }
51
- export declare const InternalConfirm: FunctionComponent<InternalConfirmProps>;
52
- declare type ConfirmProps = Omit<InternalConfirmProps, 'open' | 'resolveFn' | 'destroy' | 'callback'> & {
53
- uuid?: string;
54
- };
55
- interface ConfirmFn {
56
- (config: ConfirmProps | string, callback?: Function): void | Promise<any>;
57
- }
58
- export interface ConfirmObject {
59
- info: ConfirmFn;
60
- warn: ConfirmFn;
61
- error: ConfirmFn;
62
- success: ConfirmFn;
63
- destroyAll?: (uuid?: string) => void;
64
- }
65
- export declare const Confirm: ConfirmObject;
66
- export {};
1
+ import { FunctionComponent, ReactNode } from "react";
2
+ import { ButtonProps } from "../../Button";
3
+ import './index.scss';
4
+ type ConfirmType = "success" | "info" | "error" | "warn" | "warning";
5
+ interface InternalConfirmProps {
6
+ /**图标类型*/
7
+ type?: ConfirmType;
8
+ /**打开*/
9
+ open?: boolean;
10
+ /**标题*/
11
+ title?: ReactNode;
12
+ /**内容*/
13
+ content?: ReactNode;
14
+ /**自定义图标*/
15
+ icon?: ReactNode;
16
+ /**ok文本*/
17
+ okText?: string;
18
+ /**cancel文本*/
19
+ cancelText?: string;
20
+ /**底部操作栏*/
21
+ actions?: ReactNode;
22
+ /**是否显示actions*/
23
+ showActions?: boolean;
24
+ /**确定回调*/
25
+ onOk?: Function;
26
+ /**取消回调*/
27
+ onCancel?: Function;
28
+ /**cls*/
29
+ className?: string;
30
+ /**confirm 宽度*/
31
+ width?: string | number;
32
+ /**显示取消按钮*/
33
+ showCancel?: boolean;
34
+ /**显示关闭按钮*/
35
+ closable?: boolean;
36
+ /**禁用backdrop点击*/
37
+ disableBackdropClick?: boolean;
38
+ /**禁用esc键*/
39
+ disableEscapeKeyDown?: boolean;
40
+ /**确定按钮属性*/
41
+ okButtonProps?: ButtonProps;
42
+ /**取消按钮属性*/
43
+ cancelButtonProps?: ButtonProps;
44
+ /**promise resolve*/
45
+ resolveFn?: Function;
46
+ /**确定时回调*/
47
+ callback?: Function;
48
+ /**销毁方法*/
49
+ destroy?: Function;
50
+ }
51
+ export declare const InternalConfirm: FunctionComponent<InternalConfirmProps>;
52
+ type ConfirmProps = Omit<InternalConfirmProps, 'open' | 'resolveFn' | 'destroy' | 'callback'> & {
53
+ uuid?: string;
54
+ };
55
+ interface ConfirmFn {
56
+ (config: ConfirmProps | string, callback?: Function): void | Promise<any>;
57
+ }
58
+ export interface ConfirmObject {
59
+ info: ConfirmFn;
60
+ warn: ConfirmFn;
61
+ error: ConfirmFn;
62
+ success: ConfirmFn;
63
+ destroyAll?: (uuid?: string) => void;
64
+ }
65
+ export declare const Confirm: ConfirmObject;
66
+ export {};