@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,149 +1,149 @@
1
- /**
2
- * @author Hanz
3
- * @date 2021/8/19 下午1:47
4
- * @description 接口
5
- */
6
- import React, { ReactNode } from 'react';
7
- import { TableProps as ITableProps } from '../Table/interface';
8
- import { TreeProps, TreeNodeProps } from '../Tree/interface';
9
- import { TooltipProps } from "../Tooltip";
10
- import { LabelTooltipProps } from "../Label";
11
- import { EmptyProps } from '../Empty';
12
- declare type TableProps = ITableProps & {
13
- /** table 参数 */
14
- params?: Object;
15
- /** 替换显示字段 */
16
- replaceFields?: {
17
- key?: string;
18
- title?: string;
19
- };
20
- };
21
- export type { TableProps, TreeProps };
22
- export declare type SelectOpt = {
23
- disabled?: boolean;
24
- closable?: boolean;
25
- [key: string]: any;
26
- };
27
- export declare type SelectedOptions = Array<SelectOpt>;
28
- export type { TreeNodeProps };
29
- export interface ComboSelectProps {
30
- /**选择器模式*/
31
- mode?: 'table' | 'tree' | 'list';
32
- /**占位符*/
33
- placeholder?: string;
34
- /**search 占位符*/
35
- searchPlaceholder?: string;
36
- /**最大显示数*/
37
- maxCount?: number;
38
- /**禁用选择器*/
39
- disabled?: boolean;
40
- /** 支持清除 */
41
- allowClear?: boolean;
42
- /**cls*/
43
- className?: string;
44
- /**样式*/
45
- style?: React.CSSProperties;
46
- /**弹出层className*/
47
- popoverClassName?: string;
48
- /**容器最大高度*/
49
- maxHeight?: number;
50
- /**容器高度*/
51
- height?: number;
52
- /**大小*/
53
- size?: 'large' | 'medium' | 'small';
54
- /**选择器footer actions*/
55
- popoverActions?: React.ReactNode;
56
- /**是否显示footer actions*/
57
- showPopoverActions?: boolean;
58
- /**是否默认打开*/
59
- defaultOpen?: boolean;
60
- /**默认值 checkable为true SelectOpt[],为false SelectOpt */
61
- defaultValue?: SelectOpt[] | SelectOpt;
62
- /**替换显示字段 {key: 'key', title: 'title', children: 'children'} */
63
- replaceFields?: {
64
- key?: string;
65
- title?: string;
66
- children?: string;
67
- };
68
- /**出参字段 {outputKey: 'key', outputTitle: 'label'} */
69
- outputFields?: {
70
- outputKey?: string;
71
- outputTitle?: string;
72
- };
73
- /**当前选中值 checkable为true SelectOpt[],为false SelectOpt*/
74
- value?: SelectOpt[] | SelectOpt;
75
- /**刷新标识*/
76
- refresh?: number;
77
- /**位置*/
78
- placement?: TooltipProps['placement'];
79
- /** 清除回调 */
80
- onClear?: () => void;
81
- /**搜索回调*/
82
- onSearch?: (searchKey: string) => void;
83
- /**footer actions 取消回调*/
84
- onCancel?: () => void;
85
- /**footer actions 确定回调*/
86
- onOk?: (options: SelectedOptions) => void;
87
- /** 关闭选择器回调 */
88
- onClose?: () => void;
89
- /**value发生变化时回调*/
90
- onChange?: (options: SelectOpt[] | SelectOpt, prevOptions?: SelectOpt[] | SelectOpt, originData?: TreeNodeProps[] | TreeNodeProps) => void;
91
- /**table组件属性*/
92
- TableProps?: TableProps;
93
- /**tree组件属性*/
94
- TreeProps?: TreeProps;
95
- /**请求url*/
96
- url?: string;
97
- /**请求上下文*/
98
- ctx?: string;
99
- /**请求参数*/
100
- params?: Object;
101
- /**请求方法*/
102
- method?: 'Get' | 'Post';
103
- /**单选或多选*/
104
- checkable?: boolean;
105
- /**是否显示搜索*/
106
- showSearch?: boolean;
107
- /**错误状态*/
108
- error?: boolean;
109
- /**辅助文本*/
110
- helperText?: React.ReactNode;
111
- /**参数处理回调*/
112
- paramsCallback?: (params: {
113
- [name: string]: any;
114
- }) => any;
115
- /**路径字段*/
116
- fullPathKey?: string;
117
- /** 自定义路径节点 */
118
- fullPathRender?: (node: TreeNodeProps) => React.ReactNode;
119
- /** 禁用弹框模式 */
120
- disablePopup?: boolean;
121
- /** 自定义渲染tag */
122
- tagRender?: (option: SelectOpt) => React.ReactNode;
123
- /** 删除tag与取消选中的回调,若返回 false 则无法删除与取消 */
124
- onTagRemove?: (currentOpt?: SelectOpt) => void | boolean;
125
- /** 暴露给外部的行为,可扩展*/
126
- action?: React.Ref<{
127
- closePopup(): void;
128
- }>;
129
- /** 标题 */
130
- label?: ReactNode;
131
- /** 帮助提示信息 */
132
- labelTooltip?: LabelTooltipProps;
133
- /** 是否必填 */
134
- required?: boolean;
135
- /** 空状态属性 */
136
- emptyProps?: EmptyProps;
137
- /** 单选时可切换选中值 checkable 为 false 时有效 */
138
- toggleSelectedOnSingle?: boolean;
139
- /** 自定义渲染列表option */
140
- optionRender?: (nodeData: TreeNodeProps) => React.ReactNode;
141
- /** 获得option label */
142
- getOptionLabel?: (nodeData: TreeNodeProps) => string;
143
- /** 下拉匹配选择框宽度 */
144
- dropdownMatchSelectWidth?: boolean | number;
145
- /** 最大显示的 tag 文本长度 */
146
- maxTagTextLength?: number;
147
- /** 弹出边界,默认 window */
148
- boundariesElement?: 'scrollParent' | typeof window | 'viewport';
149
- }
1
+ /**
2
+ * @author Hanz
3
+ * @date 2021/8/19 下午1:47
4
+ * @description 接口
5
+ */
6
+ import React, { ReactNode } from 'react';
7
+ import { TableProps as ITableProps } from '../Table/interface';
8
+ import { TreeProps, TreeNodeProps } from '../Tree/interface';
9
+ import { TooltipProps } from "../Tooltip";
10
+ import { LabelTooltipProps } from "../Label";
11
+ import { EmptyProps } from '../Empty';
12
+ type TableProps = ITableProps & {
13
+ /** table 参数 */
14
+ params?: Object;
15
+ /** 替换显示字段 */
16
+ replaceFields?: {
17
+ key?: string;
18
+ title?: string;
19
+ };
20
+ };
21
+ export type { TableProps, TreeProps };
22
+ export type SelectOpt = {
23
+ disabled?: boolean;
24
+ closable?: boolean;
25
+ [key: string]: any;
26
+ };
27
+ export type SelectedOptions = Array<SelectOpt>;
28
+ export type { TreeNodeProps };
29
+ export interface ComboSelectProps {
30
+ /**选择器模式*/
31
+ mode?: 'table' | 'tree' | 'list';
32
+ /**占位符*/
33
+ placeholder?: string;
34
+ /**search 占位符*/
35
+ searchPlaceholder?: string;
36
+ /**最大显示数*/
37
+ maxCount?: number;
38
+ /**禁用选择器*/
39
+ disabled?: boolean;
40
+ /** 支持清除 */
41
+ allowClear?: boolean;
42
+ /**cls*/
43
+ className?: string;
44
+ /**样式*/
45
+ style?: React.CSSProperties;
46
+ /**弹出层className*/
47
+ popoverClassName?: string;
48
+ /**容器最大高度*/
49
+ maxHeight?: number;
50
+ /**容器高度*/
51
+ height?: number;
52
+ /**大小*/
53
+ size?: 'large' | 'medium' | 'small';
54
+ /**选择器footer actions*/
55
+ popoverActions?: React.ReactNode;
56
+ /**是否显示footer actions*/
57
+ showPopoverActions?: boolean;
58
+ /**是否默认打开*/
59
+ defaultOpen?: boolean;
60
+ /**默认值 checkable为true SelectOpt[],为false SelectOpt */
61
+ defaultValue?: SelectOpt[] | SelectOpt;
62
+ /**替换显示字段 {key: 'key', title: 'title', children: 'children'} */
63
+ replaceFields?: {
64
+ key?: string;
65
+ title?: string;
66
+ children?: string;
67
+ };
68
+ /**出参字段 {outputKey: 'key', outputTitle: 'label'} */
69
+ outputFields?: {
70
+ outputKey?: string;
71
+ outputTitle?: string;
72
+ };
73
+ /**当前选中值 checkable为true SelectOpt[],为false SelectOpt*/
74
+ value?: SelectOpt[] | SelectOpt;
75
+ /**刷新标识*/
76
+ refresh?: number;
77
+ /**位置*/
78
+ placement?: TooltipProps['placement'];
79
+ /** 清除回调 */
80
+ onClear?: () => void;
81
+ /**搜索回调*/
82
+ onSearch?: (searchKey: string) => void;
83
+ /**footer actions 取消回调*/
84
+ onCancel?: () => void;
85
+ /**footer actions 确定回调*/
86
+ onOk?: (options: SelectedOptions) => void;
87
+ /** 关闭选择器回调 */
88
+ onClose?: () => void;
89
+ /**value发生变化时回调*/
90
+ onChange?: (options: SelectOpt[] | SelectOpt, prevOptions?: SelectOpt[] | SelectOpt, originData?: TreeNodeProps[] | TreeNodeProps) => void;
91
+ /**table组件属性*/
92
+ TableProps?: TableProps;
93
+ /**tree组件属性*/
94
+ TreeProps?: TreeProps;
95
+ /**请求url*/
96
+ url?: string;
97
+ /**请求上下文*/
98
+ ctx?: string;
99
+ /**请求参数*/
100
+ params?: Object;
101
+ /**请求方法*/
102
+ method?: 'Get' | 'Post';
103
+ /**单选或多选*/
104
+ checkable?: boolean;
105
+ /**是否显示搜索*/
106
+ showSearch?: boolean;
107
+ /**错误状态*/
108
+ error?: boolean;
109
+ /**辅助文本*/
110
+ helperText?: React.ReactNode;
111
+ /**参数处理回调*/
112
+ paramsCallback?: (params: {
113
+ [name: string]: any;
114
+ }) => any;
115
+ /**路径字段*/
116
+ fullPathKey?: string;
117
+ /** 自定义路径节点 */
118
+ fullPathRender?: (node: TreeNodeProps) => React.ReactNode;
119
+ /** 禁用弹框模式 */
120
+ disablePopup?: boolean;
121
+ /** 自定义渲染tag */
122
+ tagRender?: (option: SelectOpt) => React.ReactNode;
123
+ /** 删除tag与取消选中的回调,若返回 false 则无法删除与取消 */
124
+ onTagRemove?: (currentOpt?: SelectOpt) => void | boolean;
125
+ /** 暴露给外部的行为,可扩展*/
126
+ action?: React.Ref<{
127
+ closePopup(): void;
128
+ }>;
129
+ /** 标题 */
130
+ label?: ReactNode;
131
+ /** 帮助提示信息 */
132
+ labelTooltip?: LabelTooltipProps;
133
+ /** 是否必填 */
134
+ required?: boolean;
135
+ /** 空状态属性 */
136
+ emptyProps?: EmptyProps;
137
+ /** 单选时可切换选中值 checkable 为 false 时有效 */
138
+ toggleSelectedOnSingle?: boolean;
139
+ /** 自定义渲染列表option */
140
+ optionRender?: (nodeData: TreeNodeProps) => React.ReactNode;
141
+ /** 获得option label */
142
+ getOptionLabel?: (nodeData: TreeNodeProps) => string;
143
+ /** 下拉匹配选择框宽度 */
144
+ dropdownMatchSelectWidth?: boolean | number;
145
+ /** 最大显示的 tag 文本长度 */
146
+ maxTagTextLength?: number;
147
+ /** 弹出边界,默认 window */
148
+ boundariesElement?: 'scrollParent' | typeof window | 'viewport';
149
+ }
@@ -1,9 +1,9 @@
1
- declare const _default: {
2
- searchPlaceholder: string;
3
- cancel: string;
4
- ok: string;
5
- fullPath: string;
6
- pleaseSelect: string;
7
- selected: string;
8
- };
9
- export default _default;
1
+ declare const _default: {
2
+ searchPlaceholder: string;
3
+ cancel: string;
4
+ ok: string;
5
+ fullPath: string;
6
+ pleaseSelect: string;
7
+ selected: string;
8
+ };
9
+ export default _default;
@@ -1,19 +1,19 @@
1
- declare const _default: {
2
- zh: {
3
- searchPlaceholder: string;
4
- cancel: string;
5
- ok: string;
6
- fullPath: string;
7
- pleaseSelect: string;
8
- selected: string;
9
- };
10
- en: {
11
- searchPlaceholder: string;
12
- cancel: string;
13
- ok: string;
14
- fullPath: string;
15
- pleaseSelect: string;
16
- selected: string;
17
- };
18
- };
19
- export default _default;
1
+ declare const _default: {
2
+ zh: {
3
+ searchPlaceholder: string;
4
+ cancel: string;
5
+ ok: string;
6
+ fullPath: string;
7
+ pleaseSelect: string;
8
+ selected: string;
9
+ };
10
+ en: {
11
+ searchPlaceholder: string;
12
+ cancel: string;
13
+ ok: string;
14
+ fullPath: string;
15
+ pleaseSelect: string;
16
+ selected: string;
17
+ };
18
+ };
19
+ export default _default;
@@ -1,9 +1,9 @@
1
- declare const _default: {
2
- searchPlaceholder: string;
3
- cancel: string;
4
- ok: string;
5
- fullPath: string;
6
- pleaseSelect: string;
7
- selected: string;
8
- };
9
- export default _default;
1
+ declare const _default: {
2
+ searchPlaceholder: string;
3
+ cancel: string;
4
+ ok: string;
5
+ fullPath: string;
6
+ pleaseSelect: string;
7
+ selected: string;
8
+ };
9
+ export default _default;
@@ -1,12 +1,12 @@
1
- export declare const anchorOriginMap: {
2
- [index: string]: any;
3
- };
4
- export declare const getReplaceField: (mode: string, repl: any, tableP: any, treeP: any) => any;
5
- export declare const toArray: (list: any) => any[];
6
- export declare const isRemoteLoad: (mode: string, props: any) => boolean;
7
- export declare const getOverlaySize: (mode: string, isRemoteLoad?: boolean, maxHeight?: number, height?: number) => {
8
- height: string;
9
- } | {
10
- [x: string]: string;
11
- height?: undefined;
12
- };
1
+ export declare const anchorOriginMap: {
2
+ [index: string]: any;
3
+ };
4
+ export declare const getReplaceField: (mode: string, repl: any, tableP: any, treeP: any) => any;
5
+ export declare const toArray: (list: any) => any[];
6
+ export declare const isRemoteLoad: (mode: string, props: any) => boolean;
7
+ export declare const getOverlaySize: (mode: string, isRemoteLoad?: boolean, maxHeight?: number, height?: number) => {
8
+ height: string;
9
+ } | {
10
+ [x: string]: string;
11
+ height?: undefined;
12
+ };
@@ -1,77 +1,77 @@
1
- import React from "react";
2
- import "./index.scss";
3
- interface Props {
4
- /**
5
- * 容器自定义className
6
- */
7
- className?: string;
8
- /**
9
- * 布局类型
10
- ltrb tlrb
11
- ┌───────┬──────────────────────────────┐ ┌───────────────────────────────────┐
12
- │ │ top │ │ top │
13
- │ ├──────────────────────────────┤ ├──────┬────────────────────────────┤
14
- │ │ │ │ │ │
15
- │ │ │ │ │ │
16
- │ │ │ │ │ │
17
- │ │ │ │ │ │
18
- │ left │ right │ │ left │ right │
19
- │ │ │ │ │ │
20
- │ │ │ │ │ │
21
- │ │ │ │ │ │
22
- │ │ │ │ │ │
23
- │ ├──────────────────────────────┤ ├──────┴────────────────────────────┤
24
- │ │ bottom │ │ bottom │
25
- └───────┴──────────────────────────────┘ └───────────────────────────────────┘
26
- ltr trb
27
- ┌──────────────────────────────────────┐ ┌───────────────────────────────────┐
28
- │ top │ │ top │
29
- ├───────┬──────────────────────────────┤ ├───────────────────────────────────┤
30
- │ │ │ │ │
31
- │ │ │ │ │
32
- │ │ │ │ │
33
- │ │ │ │ │
34
- │ left │ right │ │ right │
35
- │ │ │ │ │
36
- │ │ │ │ │
37
- │ │ │ │ │
38
- │ │ │ ├───────────────────────────────────┤
39
- │ │ │ │ bottom │
40
- └───────┴──────────────────────────────┘ └───────────────────────────────────┘
41
- */
42
- type?: "tlrb" | "ltrb" | "trb" | "tlr";
43
- /**
44
- * 顶部容器
45
- */
46
- top?: JSX.Element;
47
- /**
48
- * 顶部容器样式
49
- */
50
- topStyle?: React.CSSProperties;
51
- /**
52
- * 左侧容器
53
- */
54
- left?: JSX.Element;
55
- /**
56
- * 左侧容器样式
57
- */
58
- leftStyle?: React.CSSProperties;
59
- /**
60
- * 右侧容器
61
- */
62
- right?: JSX.Element;
63
- /**
64
- * 右侧容器样式
65
- */
66
- rightStyle?: React.CSSProperties;
67
- /**
68
- * 底部容器
69
- */
70
- bottom?: JSX.Element;
71
- /**
72
- * 底部容器样式
73
- */
74
- bottomStyle?: React.CSSProperties;
75
- }
76
- export declare const Container: (props?: Props) => JSX.Element;
77
- export default Container;
1
+ import React from "react";
2
+ import "./index.scss";
3
+ interface Props {
4
+ /**
5
+ * 容器自定义className
6
+ */
7
+ className?: string;
8
+ /**
9
+ * 布局类型
10
+ ltrb tlrb
11
+ ┌───────┬──────────────────────────────┐ ┌───────────────────────────────────┐
12
+ │ │ top │ │ top │
13
+ │ ├──────────────────────────────┤ ├──────┬────────────────────────────┤
14
+ │ │ │ │ │ │
15
+ │ │ │ │ │ │
16
+ │ │ │ │ │ │
17
+ │ │ │ │ │ │
18
+ │ left │ right │ │ left │ right │
19
+ │ │ │ │ │ │
20
+ │ │ │ │ │ │
21
+ │ │ │ │ │ │
22
+ │ │ │ │ │ │
23
+ │ ├──────────────────────────────┤ ├──────┴────────────────────────────┤
24
+ │ │ bottom │ │ bottom │
25
+ └───────┴──────────────────────────────┘ └───────────────────────────────────┘
26
+ ltr trb
27
+ ┌──────────────────────────────────────┐ ┌───────────────────────────────────┐
28
+ │ top │ │ top │
29
+ ├───────┬──────────────────────────────┤ ├───────────────────────────────────┤
30
+ │ │ │ │ │
31
+ │ │ │ │ │
32
+ │ │ │ │ │
33
+ │ │ │ │ │
34
+ │ left │ right │ │ right │
35
+ │ │ │ │ │
36
+ │ │ │ │ │
37
+ │ │ │ │ │
38
+ │ │ │ ├───────────────────────────────────┤
39
+ │ │ │ │ bottom │
40
+ └───────┴──────────────────────────────┘ └───────────────────────────────────┘
41
+ */
42
+ type?: "tlrb" | "ltrb" | "trb" | "tlr";
43
+ /**
44
+ * 顶部容器
45
+ */
46
+ top?: JSX.Element;
47
+ /**
48
+ * 顶部容器样式
49
+ */
50
+ topStyle?: React.CSSProperties;
51
+ /**
52
+ * 左侧容器
53
+ */
54
+ left?: JSX.Element;
55
+ /**
56
+ * 左侧容器样式
57
+ */
58
+ leftStyle?: React.CSSProperties;
59
+ /**
60
+ * 右侧容器
61
+ */
62
+ right?: JSX.Element;
63
+ /**
64
+ * 右侧容器样式
65
+ */
66
+ rightStyle?: React.CSSProperties;
67
+ /**
68
+ * 底部容器
69
+ */
70
+ bottom?: JSX.Element;
71
+ /**
72
+ * 底部容器样式
73
+ */
74
+ bottomStyle?: React.CSSProperties;
75
+ }
76
+ export declare const Container: (props?: Props) => JSX.Element;
77
+ export default Container;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- import { ButtonProps } from '../Button';
3
- export default function PickerButton(props: ButtonProps): JSX.Element;
1
+ /// <reference types="react" />
2
+ import { ButtonProps } from '../Button';
3
+ export default function PickerButton(props: ButtonProps): JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- import { TagProps } from '../Tag';
3
- export default function PickerTag(props: TagProps): JSX.Element;
1
+ /// <reference types="react" />
2
+ import { TagProps } from '../Tag';
3
+ export default function PickerTag(props: TagProps): JSX.Element;
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { GenerateConfig } from 'rc-picker/lib/generate/index';
3
- import { RangePickerProps } from '.';
4
- export default function generateRangePicker<DateType>(generateConfig: GenerateConfig<DateType>): React.ComponentClass<RangePickerProps<DateType>>;
1
+ import React from 'react';
2
+ import { GenerateConfig } from 'rc-picker/lib/generate/index';
3
+ import { RangePickerProps } from '.';
4
+ export default function generateRangePicker<DateType>(generateConfig: GenerateConfig<DateType>): React.ComponentClass<RangePickerProps<DateType>>;
@@ -1,11 +1,11 @@
1
- import React from 'react';
2
- import { GenerateConfig } from 'rc-picker/lib/generate/index';
3
- import { PickerProps, PickerDateProps, PickerTimeProps } from '.';
4
- export default function generatePicker<DateType>(generateConfig: GenerateConfig<DateType>): {
5
- DatePicker: React.ComponentClass<PickerProps<DateType>, any>;
6
- WeekPicker: React.ComponentClass<Omit<PickerDateProps<DateType>, "picker">, any>;
7
- MonthPicker: React.ComponentClass<Omit<PickerDateProps<DateType>, "picker">, any>;
8
- YearPicker: React.ComponentClass<Omit<PickerDateProps<DateType>, "picker">, any>;
9
- TimePicker: React.ComponentClass<Omit<PickerTimeProps<DateType>, "picker">, any>;
10
- QuarterPicker: React.ComponentClass<Omit<PickerTimeProps<DateType>, "picker">, any>;
11
- };
1
+ import React from 'react';
2
+ import { GenerateConfig } from 'rc-picker/lib/generate/index';
3
+ import { PickerProps, PickerDateProps, PickerTimeProps } from '.';
4
+ export default function generatePicker<DateType>(generateConfig: GenerateConfig<DateType>): {
5
+ DatePicker: React.ComponentClass<PickerProps<DateType>, any>;
6
+ WeekPicker: React.ComponentClass<Omit<PickerDateProps<DateType>, "picker">, any>;
7
+ MonthPicker: React.ComponentClass<Omit<PickerDateProps<DateType>, "picker">, any>;
8
+ YearPicker: React.ComponentClass<Omit<PickerDateProps<DateType>, "picker">, any>;
9
+ TimePicker: React.ComponentClass<Omit<PickerTimeProps<DateType>, "picker">, any>;
10
+ QuarterPicker: React.ComponentClass<Omit<PickerTimeProps<DateType>, "picker">, any>;
11
+ };