@para-ui/core 2.2.38 → 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.
- package/AutoBox/index.d.ts +34 -34
- package/AutoTips/index.d.ts +27 -27
- package/Breadcrumbs/index.d.ts +39 -39
- package/Button/SplitButton.d.ts +61 -61
- package/Button/index.d.ts +56 -56
- package/Button/lang/en_US.d.ts +4 -4
- package/Button/lang/index.d.ts +9 -9
- package/Button/lang/zh_CN.d.ts +4 -4
- package/ButtonGroup/index.d.ts +33 -33
- package/ButtonGroup/index.js +2 -2
- package/Carousel/index.d.ts +30 -30
- package/Cascader/index.d.ts +54 -54
- package/Cascader/index.js +1 -1
- package/Cascader/lang/en_US.d.ts +4 -4
- package/Cascader/lang/index.d.ts +9 -9
- package/Cascader/lang/zh_CN.d.ts +4 -4
- package/Checkbox/index.d.ts +40 -40
- package/CheckboxGroup/index.d.ts +46 -46
- package/CheckboxGroup/index.js +2 -2
- package/Collapse/collapsePanel.d.ts +30 -30
- package/Collapse/index.d.ts +57 -57
- package/Collapse/motion.d.ts +5 -5
- package/Collapse/util.d.ts +11 -11
- package/CollapseBox/index.d.ts +27 -27
- package/CollapseBox/util.d.ts +5 -5
- package/CollapseLayout/index.d.ts +51 -51
- package/ColorPicker/index.d.ts +4 -4
- package/ComboSelect/WithTabsCombo/index.d.ts +11 -11
- package/ComboSelect/WithTabsCombo/interface.d.ts +141 -141
- package/ComboSelect/index.d.ts +11 -11
- package/ComboSelect/index.js +1 -1
- package/ComboSelect/interface.d.ts +149 -149
- package/ComboSelect/lang/en_US.d.ts +9 -9
- package/ComboSelect/lang/index.d.ts +19 -19
- package/ComboSelect/lang/zh_CN.d.ts +9 -9
- package/ComboSelect/utils.d.ts +12 -12
- package/Container/index.d.ts +77 -77
- package/DatePicker/PickerButton.d.ts +3 -3
- package/DatePicker/PickerTag.d.ts +3 -3
- package/DatePicker/generatePicker/generateRangePicker.d.ts +4 -4
- package/DatePicker/generatePicker/generateSinglePicker.d.ts +11 -11
- package/DatePicker/generatePicker/index.d.ts +77 -77
- package/DatePicker/index.d.ts +18 -18
- package/DatePicker/lang/en_US.d.ts +3 -3
- package/DatePicker/lang/index.d.ts +7 -7
- package/DatePicker/lang/zh_CN.d.ts +3 -3
- package/DatePicker/util.d.ts +20 -20
- package/Desktop/index.d.ts +55 -55
- package/Drawer/index.d.ts +11 -11
- package/Drawer/interface.d.ts +83 -83
- package/Drawer/lang/en_US.d.ts +5 -5
- package/Drawer/lang/index.d.ts +11 -11
- package/Drawer/lang/zh_CN.d.ts +5 -5
- package/Dropdown/index.d.ts +39 -38
- package/Dropdown/index.js +3 -3
- package/DynamicMultiBox/formItem.d.ts +13 -13
- package/DynamicMultiBox/index.d.ts +4 -4
- package/DynamicMultiBox/index.js +2 -2
- package/DynamicMultiBox/interface.d.ts +161 -161
- package/DynamicMultiBox/rowForm.d.ts +24 -24
- package/Empty/images/index.d.ts +2 -2
- package/Empty/index.d.ts +30 -30
- package/Empty/lang/en_US.d.ts +6 -6
- package/Empty/lang/index.d.ts +13 -13
- package/Empty/lang/zh_CN.d.ts +6 -6
- package/Form/index.d.ts +181 -181
- package/Form/index.js +2 -2
- package/FormItem/compoments/defaultCompoments/index.d.ts +19 -19
- package/FormItem/compoments/formCheckboxGroup/index.d.ts +8 -8
- package/FormItem/compoments/formFile/index.d.ts +38 -38
- package/FormItem/compoments/formRadioGroup/index.d.ts +8 -8
- package/FormItem/compoments/formSelect/index.d.ts +18 -18
- package/FormItem/errorTips.d.ts +12 -12
- package/FormItem/index.d.ts +152 -152
- package/FormItem/index.js +2 -2
- package/FormItem/itemType.d.ts +42 -42
- package/FormItem/validateFunction.d.ts +15 -15
- package/FunctionModal/dialog.d.ts +58 -58
- package/FunctionModal/index.d.ts +8 -8
- package/FunctionModal/index.js +1 -1
- package/FunctionModal/modalContext.d.ts +14 -14
- package/GlobalContext/componentsProps.d.ts +21 -21
- package/GlobalContext/confirmLocale.d.ts +7 -7
- package/GlobalContext/constant.d.ts +7 -7
- package/GlobalContext/index.d.ts +28 -28
- package/GlobalContext/intl.d.ts +34 -34
- package/GlobalContext/useFormatMessage.d.ts +3 -3
- package/Help/index.d.ts +20 -20
- package/HelperText/index.d.ts +19 -19
- package/Hooks/useGlobalProps.d.ts +1 -1
- package/InputLang/index.d.ts +49 -49
- package/InputNumber/index.d.ts +74 -74
- package/Label/index.d.ts +35 -35
- package/Loading/index.d.ts +17 -17
- package/Menu/footerExpansion.d.ts +9 -9
- package/Menu/index.d.ts +10 -10
- package/Menu/index.js +1 -1
- package/Menu/interface.d.ts +139 -139
- package/Menu/logo.d.ts +9 -9
- package/Menu/verticalMenuList.d.ts +14 -14
- package/Message/index.d.ts +73 -73
- package/Modal/Confirm/index.d.ts +66 -66
- package/Modal/index.d.ts +61 -61
- package/Modal/lang/en_US.d.ts +5 -5
- package/Modal/lang/index.d.ts +11 -11
- package/Modal/lang/zh_CN.d.ts +5 -5
- package/MultiBox/index.d.ts +54 -54
- package/Notification/index.d.ts +52 -52
- package/OperateBtn/index.d.ts +59 -59
- package/OperateBtn/index.js +1 -1
- package/OperateBtn/lang/en_US.d.ts +4 -4
- package/OperateBtn/lang/index.d.ts +9 -9
- package/OperateBtn/lang/zh_CN.d.ts +4 -4
- package/PageHeader/horizontalMeun.d.ts +9 -9
- package/PageHeader/horizontalMeunRight.d.ts +9 -9
- package/PageHeader/index.d.ts +10 -10
- package/PageHeader/interface.d.ts +167 -167
- package/Pagination/index.d.ts +33 -33
- package/Pagination/lang/en_US.d.ts +8 -8
- package/Pagination/lang/index.d.ts +17 -17
- package/Pagination/lang/zh_CN.d.ts +8 -8
- package/ParauiProvider/index.d.ts +12 -12
- package/PasswordRules/index.d.ts +46 -46
- package/PopConfirm/index.d.ts +56 -56
- package/PopConfirm/lang/en_US.d.ts +5 -5
- package/PopConfirm/lang/index.d.ts +11 -11
- package/PopConfirm/lang/zh_CN.d.ts +5 -5
- package/Popover/index.d.ts +14 -14
- package/PopoverNew/TooltipNew/index.d.ts +11 -11
- package/PopoverNew/TooltipNew/interface.d.ts +31 -31
- package/PopoverNew/TooltipNew/utils.d.ts +18 -18
- package/PopoverNew/index.d.ts +16 -16
- package/Popper/index.d.ts +13 -13
- package/Progress/Line.d.ts +47 -47
- package/Progress/Steps.d.ts +17 -17
- package/Progress/index.d.ts +81 -81
- package/Progress/index.js +1 -1
- package/Progress/utils.d.ts +6 -6
- package/Querying/images/index.d.ts +2 -2
- package/Querying/index.d.ts +26 -26
- package/Querying/lang/en_US.d.ts +4 -4
- package/Querying/lang/index.d.ts +9 -9
- package/Querying/lang/zh_CN.d.ts +4 -4
- package/README.md +739 -723
- package/Radio/index.d.ts +38 -38
- package/RadioGroup/index.d.ts +47 -47
- package/RadioGroup/index.js +2 -2
- package/Search/index.d.ts +56 -56
- package/Select/index.d.ts +96 -96
- package/Select/lang/en_US.d.ts +5 -5
- package/Select/lang/index.d.ts +11 -11
- package/Select/lang/zh_CN.d.ts +5 -5
- package/SelectInput/index.d.ts +11 -11
- package/Selector/index.d.ts +11 -11
- package/Selector/index.js +2 -2
- package/Selector/interface.d.ts +428 -428
- package/Selector/lang/en_US.d.ts +11 -11
- package/Selector/lang/index.d.ts +23 -23
- package/Selector/lang/zh_CN.d.ts +11 -11
- package/Selector/selectorData/index.d.ts +10 -10
- package/Selector/selectorMain/index.d.ts +10 -10
- package/Selector/selectorNode/index.d.ts +10 -10
- package/Selector/util.d.ts +15 -15
- package/SelectorPicker/index.d.ts +53 -51
- package/SelectorPicker/index.js +2 -2
- package/SingleBox/index.d.ts +42 -42
- package/Slider/index.d.ts +14 -14
- package/Slider/interface.d.ts +102 -102
- package/Split/index.d.ts +7 -7
- package/Stepper/icons.d.ts +5 -5
- package/Stepper/index.d.ts +39 -39
- package/Switch/index.d.ts +78 -78
- package/Table/index.d.ts +10 -10
- package/Table/index.js +1 -1
- package/Table/interface.d.ts +271 -269
- package/Table/lang/en_US.d.ts +8 -8
- package/Table/lang/index.d.ts +17 -17
- package/Table/lang/zh_CN.d.ts +8 -8
- package/Table/tableBody.d.ts +9 -9
- package/Table/tableBodyElement/index.d.ts +15 -15
- package/Table/tableBodyInterface.d.ts +67 -67
- package/Table/tableContainer/index.d.ts +16 -16
- package/Table/tableElement/index.d.ts +15 -15
- package/Table/tableHead.d.ts +9 -9
- package/Table/tableHeadElement/index.d.ts +15 -15
- package/Table/tableHeadInterface.d.ts +30 -30
- package/Table/tablePagination.d.ts +9 -9
- package/Table/tablePaginationInterFace.d.ts +24 -24
- package/Table/tdElement/index.d.ts +15 -15
- package/Table/thElement/index.d.ts +15 -15
- package/Table/trElement/index.d.ts +15 -15
- package/Table/util.d.ts +28 -28
- package/Tabs/index.d.ts +48 -48
- package/Tag/TagGroup.d.ts +66 -66
- package/Tag/index.d.ts +34 -34
- package/TextField/index.d.ts +95 -95
- package/TimePicker/index.d.ts +22 -22
- package/TimePicker/locale/en_US.d.ts +3 -3
- package/TimePicker/locale/zh_CN.d.ts +3 -3
- package/TimePicker/style/index.d.ts +1 -1
- package/Timeline/index.d.ts +22 -22
- package/Title/index.d.ts +30 -30
- package/ToggleButton/ToggleButtonGroup.d.ts +49 -49
- package/ToggleButton/index.d.ts +49 -49
- package/Tooltip/index.d.ts +14 -14
- package/Transfer/index.d.ts +37 -37
- package/Transfer/lang/en_US.d.ts +8 -8
- package/Transfer/lang/index.d.ts +17 -17
- package/Transfer/lang/zh_CN.d.ts +8 -8
- package/Tree/OperateBar/index.d.ts +13 -13
- package/Tree/Tree.d.ts +4 -4
- package/Tree/index.d.ts +5 -5
- package/Tree/index.js +1 -1
- package/Tree/interface.d.ts +207 -207
- package/Tree/lang/en_US.d.ts +8 -8
- package/Tree/lang/index.d.ts +17 -17
- package/Tree/lang/zh_CN.d.ts +8 -8
- package/Tree/utils/tools.d.ts +26 -26
- package/Tree/utils/treeUtil.d.ts +15 -15
- package/Upload/Dragger/index.d.ts +10 -10
- package/Upload/ErroTip/index.d.ts +13 -13
- package/Upload/ImageUpload/index.d.ts +14 -14
- package/Upload/ImgCrop/EasyCrop.d.ts +17 -17
- package/Upload/ImgCrop/constants.d.ts +7 -7
- package/Upload/ImgCrop/index.d.ts +6 -6
- package/Upload/ImgCrop/interface.d.ts +48 -48
- package/Upload/UploadList/index.d.ts +5 -5
- package/Upload/index.d.ts +15 -15
- package/Upload/index.js +1 -1
- package/Upload/interface.d.ts +134 -134
- package/Upload/lang/en_US.d.ts +12 -12
- package/Upload/lang/index.d.ts +25 -25
- package/Upload/lang/zh_CN.d.ts +12 -12
- package/cdn/AutoBox/index.js +1 -1
- package/cdn/AutoTips/index.js +1 -1
- package/cdn/Breadcrumbs/index.js +1 -1
- package/cdn/Button/index.js +5 -5
- package/cdn/ButtonGroup/index.js +5 -5
- package/cdn/Cascader/index.js +3 -3
- package/cdn/Checkbox/index.js +5 -5
- package/cdn/CheckboxGroup/index.js +5 -5
- package/cdn/Collapse/index.js +2 -2
- package/cdn/ColorPicker/index.js +1 -1
- package/cdn/ComboSelect/index.js +3 -3
- package/cdn/DatePicker/index.js +5 -5
- package/cdn/Desktop/index.js +2 -2
- package/cdn/Drawer/index.js +5 -5
- package/cdn/Dropdown/index.js +3 -3
- package/cdn/DynamicMultiBox/index.js +6 -6
- package/cdn/Form/index.js +4 -4
- package/cdn/FormItem/index.js +5 -5
- package/cdn/FunctionModal/index.js +5 -5
- package/cdn/Help/index.js +1 -1
- package/cdn/InputLang/index.js +1 -1
- package/cdn/InputNumber/index.js +5 -5
- package/cdn/Label/index.js +1 -1
- package/cdn/Menu/index.js +2 -2
- package/cdn/Modal/index.js +1 -1
- package/cdn/MultiBox/index.js +5 -5
- package/cdn/Notification/index.js +2 -2
- package/cdn/OperateBtn/index.js +1 -1
- package/cdn/PageHeader/index.js +5 -5
- package/cdn/Pagination/index.js +2 -2
- package/cdn/ParauiProvider/index.js +2 -2
- package/cdn/PasswordRules/index.js +2 -2
- package/cdn/PopConfirm/index.js +5 -5
- package/cdn/Popover/index.js +1 -1
- package/cdn/PopoverNew/index.js +3 -3
- package/cdn/Progress/index.js +1 -1
- package/cdn/Radio/index.js +5 -5
- package/cdn/RadioGroup/index.js +6 -6
- package/cdn/Search/index.js +5 -5
- package/cdn/Select/index.js +2 -2
- package/cdn/SelectInput/index.js +2 -2
- package/cdn/Selector/index.js +5 -5
- package/cdn/SelectorPicker/index.js +5 -5
- package/cdn/SingleBox/index.js +5 -5
- package/cdn/Slider/index.js +3 -3
- package/cdn/Stepper/index.js +3 -3
- package/cdn/Switch/index.js +5 -5
- package/cdn/Table/index.js +7 -7
- package/cdn/Tabs/index.js +6 -6
- package/cdn/TextField/index.js +1 -1
- package/cdn/TimePicker/index.js +10 -10
- package/cdn/Timeline/index.js +2 -2
- package/cdn/ToggleButton/index.js +1 -1
- package/cdn/Tooltip/index.js +1 -1
- package/cdn/Transfer/index.js +5 -5
- package/cdn/Tree/index.js +2 -2
- package/cdn/Upload/index.js +2 -2
- package/index.d.ts +142 -142
- package/index.js +2 -2
- 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
|
-
|
|
13
|
-
/** table 参数 */
|
|
14
|
-
params?: Object;
|
|
15
|
-
/** 替换显示字段 */
|
|
16
|
-
replaceFields?: {
|
|
17
|
-
key?: string;
|
|
18
|
-
title?: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export type { TableProps, TreeProps };
|
|
22
|
-
export
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
closable?: boolean;
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
};
|
|
27
|
-
export
|
|
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;
|
package/ComboSelect/utils.d.ts
CHANGED
|
@@ -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
|
+
};
|
package/Container/index.d.ts
CHANGED
|
@@ -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
|
+
};
|