@para-ui/core 2.2.7-beta → 2.2.9
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/AutoBox/index.js +15 -203
- package/AutoTips/index.d.ts +27 -27
- package/AutoTips/index.js +15 -84
- package/Breadcrumbs/index.d.ts +39 -39
- package/Breadcrumbs/index.js +15 -227
- package/Button/SplitButton.d.ts +61 -62
- package/Button/index.d.ts +56 -71
- package/Button/index.js +14 -348
- 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 +14 -128
- package/Carousel/index.d.ts +30 -30
- package/Carousel/index.js +15 -74
- package/Cascader/index.d.ts +52 -52
- package/Cascader/index.js +15 -166
- 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/Checkbox/index.js +14 -105
- package/CheckboxGroup/index.d.ts +46 -46
- package/CheckboxGroup/index.js +14 -138
- package/Collapse/collapsePanel.d.ts +30 -30
- package/Collapse/index.d.ts +57 -57
- package/Collapse/index.js +15 -171
- package/Collapse/motion.d.ts +5 -5
- package/Collapse/util.d.ts +11 -11
- package/CollapseBox/index.d.ts +27 -27
- package/CollapseBox/index.js +15 -164
- package/CollapseBox/util.d.ts +5 -5
- package/ColorPicker/index.d.ts +4 -4
- package/ColorPicker/index.js +1 -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 +14 -1803
- package/ComboSelect/interface.d.ts +143 -140
- package/ComboSelect/lang/en_US.d.ts +8 -8
- package/ComboSelect/lang/index.d.ts +17 -17
- package/ComboSelect/lang/zh_CN.d.ts +8 -8
- package/ComboSelect/utils.d.ts +12 -12
- package/Container/index.d.ts +77 -77
- package/Container/index.js +15 -239
- 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/index.js +14 -733
- 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 -57
- package/Desktop/index.js +14 -853
- package/Drawer/index.d.ts +11 -11
- package/Drawer/index.js +14 -186
- 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/Empty/images/index.d.ts +2 -3
- package/Empty/index.d.ts +30 -30
- package/Empty/index.js +14 -644
- 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 +14 -384
- 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 +14 -81
- 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 +14 -39
- package/FunctionModal/modalContext.d.ts +14 -15
- package/GlobalContext/componentsProps.d.ts +19 -19
- package/GlobalContext/confirmLocale.d.ts +7 -7
- package/GlobalContext/index.d.ts +28 -28
- package/GlobalContext/index.js +16 -41
- package/GlobalContext/intl.d.ts +34 -34
- package/GlobalContext/useFormatMessage.d.ts +3 -3
- package/Help/index.d.ts +20 -18
- package/Help/index.js +15 -39
- package/HelperText/index.d.ts +19 -19
- package/HelperText/index.js +15 -29
- package/Hooks/useGlobalProps.d.ts +1 -1
- package/InputLang/index.d.ts +49 -49
- package/InputLang/index.js +14 -270
- package/InputNumber/index.d.ts +74 -74
- package/InputNumber/index.js +14 -308
- package/Label/index.d.ts +35 -35
- package/Label/index.js +14 -81
- package/Loading/index.d.ts +17 -17
- package/Loading/index.js +15 -47
- package/Menu/footerExpansion.d.ts +9 -9
- package/Menu/index.d.ts +10 -10
- package/Menu/index.js +14 -1232
- 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/Message/index.js +15 -222
- package/Modal/Confirm/index.d.ts +66 -65
- package/Modal/index.d.ts +61 -90
- package/Modal/index.js +14 -443
- 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/MultiBox/index.js +14 -231
- package/Notification/index.d.ts +52 -52
- package/Notification/index.js +15 -266
- package/OperateBtn/index.d.ts +59 -59
- package/OperateBtn/index.js +14 -260
- 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/index.js +14 -1171
- package/PageHeader/interface.d.ts +167 -167
- package/Pagination/index.d.ts +33 -33
- package/Pagination/index.js +14 -469
- 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 -8
- package/ParauiProvider/index.js +15 -53
- package/PopConfirm/index.d.ts +56 -58
- package/PopConfirm/index.js +14 -189
- 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/Popover/index.js +15 -66
- package/Popper/index.d.ts +13 -0
- package/Popper/index.js +16 -0
- 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 +20 -358
- package/Progress/utils.d.ts +6 -6
- package/Querying/images/index.d.ts +2 -3
- package/Querying/index.d.ts +26 -26
- package/Querying/index.js +14 -762
- 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 +518 -0
- package/Radio/index.d.ts +38 -38
- package/Radio/index.js +14 -94
- package/RadioGroup/index.d.ts +47 -47
- package/RadioGroup/index.js +14 -128
- package/Search/index.d.ts +56 -56
- package/Search/index.js +14 -220
- package/Select/index.d.ts +86 -86
- package/Select/index.js +14 -1288
- 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/SelectInput/index.js +14 -51
- package/SingleBox/index.d.ts +42 -42
- package/SingleBox/index.js +14 -194
- package/Slider/index.d.ts +14 -14
- package/Slider/index.js +15 -125
- package/Slider/interface.d.ts +102 -102
- package/Split/index.d.ts +7 -7
- package/Split/index.js +15 -134
- package/Stepper/icons.d.ts +5 -5
- package/Stepper/index.d.ts +39 -49
- package/Stepper/index.js +15 -99
- package/Switch/index.d.ts +78 -78
- package/Switch/index.js +14 -73
- package/Table/index.d.ts +10 -10
- package/Table/index.js +14 -2725
- package/Table/interface.d.ts +202 -202
- package/Table/lang/en_US.d.ts +6 -6
- package/Table/lang/index.d.ts +13 -13
- package/Table/lang/zh_CN.d.ts +6 -6
- 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 +17 -17
- package/Table/tableHead.d.ts +9 -9
- package/Table/tableHeadElement/index.d.ts +15 -15
- package/Table/tableHeadInterface.d.ts +30 -26
- 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 +16 -16
- package/Tabs/index.d.ts +48 -69
- package/Tabs/index.js +14 -218
- package/Tag/TagGroup.d.ts +66 -66
- package/Tag/index.d.ts +34 -34
- package/Tag/index.js +14 -286
- package/Test/index.d.ts +2 -3
- package/Test/index.js +16 -9
- package/TextField/index.d.ts +93 -93
- package/TextField/index.js +14 -686
- package/TimePicker/index.d.ts +22 -22
- package/TimePicker/index.js +14 -77
- 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 -31
- package/Timeline/index.js +15 -150
- package/ToggleButton/ToggleButtonGroup.d.ts +49 -49
- package/ToggleButton/index.d.ts +49 -49
- package/ToggleButton/index.js +14 -200
- package/Tooltip/index.d.ts +14 -11
- package/Tooltip/index.js +15 -335
- package/Transfer/index.d.ts +17 -18
- package/Transfer/index.js +14 -343
- package/Transfer/lang/en_US.d.ts +6 -6
- package/Transfer/lang/index.d.ts +13 -13
- package/Transfer/lang/zh_CN.d.ts +6 -6
- 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 +14 -35
- package/Tree/interface.d.ts +207 -209
- 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 +24 -24
- package/Upload/UploadList/index.d.ts +5 -5
- package/Upload/index.d.ts +15 -15
- package/Upload/index.js +14 -1542
- 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 +29 -0
- package/cdn/AutoTips/index.js +40 -0
- package/cdn/Breadcrumbs/index.js +53 -0
- package/cdn/Button/index.js +79 -0
- package/cdn/ButtonGroup/index.js +79 -0
- package/cdn/Carousel/index.js +6 -0
- package/cdn/Cascader/index.js +42 -0
- package/cdn/Checkbox/index.js +53 -0
- package/cdn/CheckboxGroup/index.js +53 -0
- package/cdn/Collapse/index.js +27 -0
- package/cdn/CollapseBox/index.js +1 -0
- package/cdn/ColorPicker/index.js +1 -0
- package/cdn/ComboSelect/index.js +438 -0
- package/cdn/Container/index.js +1 -0
- package/cdn/DatePicker/index.js +185 -0
- package/cdn/Desktop/index.js +24 -0
- package/cdn/Drawer/index.js +84 -0
- package/cdn/Empty/index.js +1 -0
- package/cdn/Form/index.js +477 -0
- package/cdn/FormItem/index.js +477 -0
- package/cdn/FunctionModal/index.js +144 -0
- package/cdn/GlobalContext/index.js +1 -0
- package/cdn/Help/index.js +53 -0
- package/cdn/HelperText/index.js +1 -0
- package/cdn/InputLang/index.js +144 -0
- package/cdn/InputNumber/index.js +118 -0
- package/cdn/Label/index.js +53 -0
- package/cdn/Loading/index.js +14 -0
- package/cdn/Menu/index.js +40 -0
- package/cdn/Message/index.js +53 -0
- package/cdn/Modal/index.js +144 -0
- package/cdn/MultiBox/index.js +131 -0
- package/cdn/Notification/index.js +66 -0
- package/cdn/OperateBtn/index.js +92 -0
- package/cdn/PageHeader/index.js +92 -0
- package/cdn/Pagination/index.js +214 -0
- package/cdn/ParauiProvider/index.js +9 -0
- package/cdn/PopConfirm/index.js +131 -0
- package/cdn/Popover/index.js +16 -0
- package/cdn/Popper/index.js +26 -0
- package/cdn/Progress/index.js +58 -0
- package/cdn/Querying/index.js +1 -0
- package/cdn/Radio/index.js +53 -0
- package/cdn/RadioGroup/index.js +53 -0
- package/cdn/Search/index.js +144 -0
- package/cdn/Select/index.js +131 -0
- package/cdn/SelectInput/index.js +131 -0
- package/cdn/SingleBox/index.js +131 -0
- package/cdn/Slider/index.js +16 -0
- package/cdn/Split/index.js +1 -0
- package/cdn/Stepper/index.js +154 -0
- package/cdn/Switch/index.js +71 -0
- package/cdn/Table/index.js +292 -0
- package/cdn/Tabs/index.js +165 -0
- package/cdn/Tag/index.js +27 -0
- package/cdn/Test/index.js +1 -0
- package/cdn/TextField/index.js +105 -0
- package/cdn/TimePicker/index.js +185 -0
- package/cdn/Timeline/index.js +16 -0
- package/cdn/ToggleButton/index.js +79 -0
- package/cdn/Tooltip/index.js +40 -0
- package/cdn/Transfer/index.js +170 -0
- package/cdn/Tree/index.js +170 -0
- package/cdn/Upload/index.js +252 -0
- package/index.d.ts +128 -128
- package/index.js +19 -160
- package/package.json +21 -54
- package/style.css +72 -0
- package/Dropdown/index.d.ts +0 -25
- package/Dropdown/index.js +0 -67
- package/Tabs/lang/en_US.d.ts +0 -4
- package/Tabs/lang/index.d.ts +0 -9
- package/Tabs/lang/zh_CN.d.ts +0 -4
- package/Timeline/TimelineItem.d.ts +0 -23
- package/Tooltip/interface.d.ts +0 -21
- package/Tooltip/utils.d.ts +0 -22
- package/_verture/defineProperty-0590dc61.js +0 -16
- package/_verture/index-2c0ecd8d.js +0 -778
- package/_verture/index-342379c6.js +0 -391
- package/_verture/index-a369ca3f.js +0 -4
- package/_verture/index-e2881a53.js +0 -16
- package/_verture/index-ee85b1cd.js +0 -1555
- package/_verture/intl-336570e4.js +0 -65
- package/_verture/modalContext-e7cc8067.js +0 -228
- package/_verture/slicedToArray-d7722f4b.js +0 -62
- package/_verture/style-inject.es-300983ab.js +0 -28
- package/_verture/toConsumableArray-f8047a75.js +0 -19
- package/_verture/tslib.es6-55ed4bd2.js +0 -38
- package/_verture/typeof-498dd2b1.js +0 -11
- package/_verture/useFormatMessage-ac9d6acf.js +0 -20
- package/_verture/useGlobalProps-af9a2af6.js +0 -12
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2022/4/26 11:00 AM
|
|
4
|
-
* @description 表格容器
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent } from "react";
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface TableContainerProps {
|
|
9
|
-
cRef?: any;
|
|
10
|
-
className?: string;
|
|
11
|
-
style?: React.CSSProperties;
|
|
12
|
-
children?: any;
|
|
13
|
-
[name: string]: any;
|
|
14
|
-
}
|
|
15
|
-
export declare const TableContainer: FunctionComponent<TableContainerProps>;
|
|
16
|
-
export default TableContainer;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2022/4/26 11:00 AM
|
|
4
|
+
* @description 表格容器
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent } from "react";
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface TableContainerProps {
|
|
9
|
+
cRef?: any;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
children?: any;
|
|
13
|
+
[name: string]: any;
|
|
14
|
+
}
|
|
15
|
+
export declare const TableContainer: FunctionComponent<TableContainerProps>;
|
|
16
|
+
export default TableContainer;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2022/4/26 11:00 AM
|
|
4
|
-
* @description 表格元素
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent } from "react";
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface TableElementProps {
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
/** 是否固定表格 */
|
|
12
|
-
sticky?: boolean;
|
|
13
|
-
children?: any;
|
|
14
|
-
[name: string]: any;
|
|
15
|
-
}
|
|
16
|
-
export declare const TableElement: FunctionComponent<TableElementProps>;
|
|
17
|
-
export default TableElement;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2022/4/26 11:00 AM
|
|
4
|
+
* @description 表格元素
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent } from "react";
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface TableElementProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
/** 是否固定表格 */
|
|
12
|
+
sticky?: boolean;
|
|
13
|
+
children?: any;
|
|
14
|
+
[name: string]: any;
|
|
15
|
+
}
|
|
16
|
+
export declare const TableElement: FunctionComponent<TableElementProps>;
|
|
17
|
+
export default TableElement;
|
package/Table/tableHead.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2021/8/6 11:06
|
|
4
|
-
* @description 表格头部
|
|
5
|
-
*/
|
|
6
|
-
import { FunctionComponent } from 'react';
|
|
7
|
-
import { TableHeadProps } from './tableHeadInterface';
|
|
8
|
-
export declare const TableHead: FunctionComponent<TableHeadProps>;
|
|
9
|
-
export default TableHead;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/6 11:06
|
|
4
|
+
* @description 表格头部
|
|
5
|
+
*/
|
|
6
|
+
import { FunctionComponent } from 'react';
|
|
7
|
+
import { TableHeadProps } from './tableHeadInterface';
|
|
8
|
+
export declare const TableHead: FunctionComponent<TableHeadProps>;
|
|
9
|
+
export default TableHead;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2022/4/26 11:00 AM
|
|
4
|
-
* @description 表格表头元素
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent } from "react";
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface TableHeadElementProps {
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
children?: any;
|
|
12
|
-
[name: string]: any;
|
|
13
|
-
}
|
|
14
|
-
export declare const TableHeadElement: FunctionComponent<TableHeadElementProps>;
|
|
15
|
-
export default TableHeadElement;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2022/4/26 11:00 AM
|
|
4
|
+
* @description 表格表头元素
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent } from "react";
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface TableHeadElementProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
children?: any;
|
|
12
|
+
[name: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export declare const TableHeadElement: FunctionComponent<TableHeadElementProps>;
|
|
15
|
+
export default TableHeadElement;
|
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2021/8/6 11:07
|
|
4
|
-
* @description 表格头部参数
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { TableHeadBodyPublicProps, SelectStatus } from './interface';
|
|
8
|
-
/** 表格头部参数 */
|
|
9
|
-
export interface TableHeadProps extends TableHeadBodyPublicProps {
|
|
10
|
-
/** 排序触发事件 property: 属性名 */
|
|
11
|
-
onRequestSort?: (event: React.MouseEvent<unknown>, property: string) => void;
|
|
12
|
-
/** 全选事件 */
|
|
13
|
-
selectAll?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
14
|
-
/** 选中状态 */
|
|
15
|
-
selectStatus?: SelectStatus;
|
|
16
|
-
/** 是否过滤 */
|
|
17
|
-
filter?: boolean;
|
|
18
|
-
/** 显示列 */
|
|
19
|
-
showList?: any[];
|
|
20
|
-
/** 改变显示列 bol true重置 */
|
|
21
|
-
changeShowList: (headShowArr: any, bol?: boolean, item?: any) => void;
|
|
22
|
-
/** 过滤值 */
|
|
23
|
-
selectFilter: any;
|
|
24
|
-
/** 改变过滤 */
|
|
25
|
-
changeFilter?: (val: any) => void;
|
|
26
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/6 11:07
|
|
4
|
+
* @description 表格头部参数
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { TableHeadBodyPublicProps, SelectStatus } from './interface';
|
|
8
|
+
/** 表格头部参数 */
|
|
9
|
+
export interface TableHeadProps extends TableHeadBodyPublicProps {
|
|
10
|
+
/** 排序触发事件 property: 属性名 */
|
|
11
|
+
onRequestSort?: (event: React.MouseEvent<unknown>, property: string) => void;
|
|
12
|
+
/** 全选事件 */
|
|
13
|
+
selectAll?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
14
|
+
/** 选中状态 */
|
|
15
|
+
selectStatus?: SelectStatus;
|
|
16
|
+
/** 是否过滤 */
|
|
17
|
+
filter?: boolean;
|
|
18
|
+
/** 显示列 */
|
|
19
|
+
showList?: any[];
|
|
20
|
+
/** 改变显示列 bol true重置 */
|
|
21
|
+
changeShowList: (headShowArr: any, bol?: boolean, item?: any) => void;
|
|
22
|
+
/** 过滤值 */
|
|
23
|
+
selectFilter: any;
|
|
24
|
+
/** 改变过滤 */
|
|
25
|
+
changeFilter?: (val: any) => void;
|
|
26
|
+
/** 外部显示列,隐藏事件 */
|
|
27
|
+
hideShowColumns?: () => void;
|
|
28
|
+
/** 外部显示列,定位元素 */
|
|
29
|
+
outsideShowColumns?: HTMLButtonElement | null;
|
|
30
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2021/8/6 11:07
|
|
4
|
-
* @description 表格分页
|
|
5
|
-
*/
|
|
6
|
-
import { FunctionComponent } from 'react';
|
|
7
|
-
import { TablePaginationProps } from './tablePaginationInterFace';
|
|
8
|
-
export declare const TableHead: FunctionComponent<TablePaginationProps>;
|
|
9
|
-
export default TableHead;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/6 11:07
|
|
4
|
+
* @description 表格分页
|
|
5
|
+
*/
|
|
6
|
+
import { FunctionComponent } from 'react';
|
|
7
|
+
import { TablePaginationProps } from './tablePaginationInterFace';
|
|
8
|
+
export declare const TableHead: FunctionComponent<TablePaginationProps>;
|
|
9
|
+
export default TableHead;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2021/8/6 11:07
|
|
4
|
-
* @description 表格分页参数
|
|
5
|
-
*/
|
|
6
|
-
/** 表格分页参数 */
|
|
7
|
-
export interface TablePaginationProps {
|
|
8
|
-
/** 自适应分页,根据外容器大小,改变分页模式 */
|
|
9
|
-
autoPagination?: boolean;
|
|
10
|
-
/** 分页模式 */
|
|
11
|
-
paginationType?: 'simple' | 'complex';
|
|
12
|
-
/** 总条数 */
|
|
13
|
-
total?: number;
|
|
14
|
-
/** 当前页 */
|
|
15
|
-
page?: number;
|
|
16
|
-
/** 每页行数 */
|
|
17
|
-
rowsPerPage?: number[];
|
|
18
|
-
/** 当前选中每页行数 */
|
|
19
|
-
currentRowsPerPage?: number;
|
|
20
|
-
/** 改变页数 */
|
|
21
|
-
changePage?: (num?: number) => void;
|
|
22
|
-
/** 改变每页行数 */
|
|
23
|
-
changeRowsPerPage?: (num: number) => void;
|
|
24
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/6 11:07
|
|
4
|
+
* @description 表格分页参数
|
|
5
|
+
*/
|
|
6
|
+
/** 表格分页参数 */
|
|
7
|
+
export interface TablePaginationProps {
|
|
8
|
+
/** 自适应分页,根据外容器大小,改变分页模式 */
|
|
9
|
+
autoPagination?: boolean;
|
|
10
|
+
/** 分页模式 */
|
|
11
|
+
paginationType?: 'simple' | 'complex';
|
|
12
|
+
/** 总条数 */
|
|
13
|
+
total?: number;
|
|
14
|
+
/** 当前页 */
|
|
15
|
+
page?: number;
|
|
16
|
+
/** 每页行数 */
|
|
17
|
+
rowsPerPage?: number[];
|
|
18
|
+
/** 当前选中每页行数 */
|
|
19
|
+
currentRowsPerPage?: number;
|
|
20
|
+
/** 改变页数 */
|
|
21
|
+
changePage?: (num?: number) => void;
|
|
22
|
+
/** 改变每页行数 */
|
|
23
|
+
changeRowsPerPage?: (num: number) => void;
|
|
24
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2022/4/26 11:00 AM
|
|
4
|
-
* @description 表格td元素
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent } from "react";
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface TdElementProps {
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
children?: any;
|
|
12
|
-
[name: string]: any;
|
|
13
|
-
}
|
|
14
|
-
export declare const TdElement: FunctionComponent<TdElementProps>;
|
|
15
|
-
export default TdElement;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2022/4/26 11:00 AM
|
|
4
|
+
* @description 表格td元素
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent } from "react";
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface TdElementProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
children?: any;
|
|
12
|
+
[name: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export declare const TdElement: FunctionComponent<TdElementProps>;
|
|
15
|
+
export default TdElement;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2022/4/26 11:00 AM
|
|
4
|
-
* @description 表格th元素
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent } from "react";
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface ThElementProps {
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
children?: any;
|
|
12
|
-
[name: string]: any;
|
|
13
|
-
}
|
|
14
|
-
export declare const ThElement: FunctionComponent<ThElementProps>;
|
|
15
|
-
export default ThElement;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2022/4/26 11:00 AM
|
|
4
|
+
* @description 表格th元素
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent } from "react";
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface ThElementProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
children?: any;
|
|
12
|
+
[name: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export declare const ThElement: FunctionComponent<ThElementProps>;
|
|
15
|
+
export default ThElement;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2022/4/26 11:00 AM
|
|
4
|
-
* @description 表格tr元素
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent } from "react";
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface TrElementProps {
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
children?: any;
|
|
12
|
-
[name: string]: any;
|
|
13
|
-
}
|
|
14
|
-
export declare const TrElement: FunctionComponent<TrElementProps>;
|
|
15
|
-
export default TrElement;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2022/4/26 11:00 AM
|
|
4
|
+
* @description 表格tr元素
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent } from "react";
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface TrElementProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
children?: any;
|
|
12
|
+
[name: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export declare const TrElement: FunctionComponent<TrElementProps>;
|
|
15
|
+
export default TrElement;
|
package/Table/util.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ReqProps } from "./interface";
|
|
2
|
-
/**
|
|
3
|
-
* 发送请求
|
|
4
|
-
* @param obj {ReqProps} 请求信息
|
|
5
|
-
*/
|
|
6
|
-
export declare const requestFunc: (obj: ReqProps) => Promise<import("@paraview/lib").ParaResponse> | undefined;
|
|
7
|
-
/**
|
|
8
|
-
* 处理get请求地址
|
|
9
|
-
* @param obj {ReqProps} 请求信息
|
|
10
|
-
* @return string get请求地址参数
|
|
11
|
-
*/
|
|
12
|
-
export declare const handGetReqParams: (obj: ReqProps) => string;
|
|
13
|
-
/**
|
|
14
|
-
* 提取字符串里面的数字
|
|
15
|
-
* */
|
|
16
|
-
export declare const getStringInNumber: (str: string | number) => number;
|
|
1
|
+
import { ReqProps } from "./interface";
|
|
2
|
+
/**
|
|
3
|
+
* 发送请求
|
|
4
|
+
* @param obj {ReqProps} 请求信息
|
|
5
|
+
*/
|
|
6
|
+
export declare const requestFunc: (obj: ReqProps) => Promise<import("@paraview/lib").ParaResponse> | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* 处理get请求地址
|
|
9
|
+
* @param obj {ReqProps} 请求信息
|
|
10
|
+
* @return string get请求地址参数
|
|
11
|
+
*/
|
|
12
|
+
export declare const handGetReqParams: (obj: ReqProps) => string;
|
|
13
|
+
/**
|
|
14
|
+
* 提取字符串里面的数字
|
|
15
|
+
* */
|
|
16
|
+
export declare const getStringInNumber: (str: string | number) => number;
|
package/Tabs/index.d.ts
CHANGED
|
@@ -1,69 +1,48 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date
|
|
4
|
-
* @description
|
|
5
|
-
*/
|
|
6
|
-
import React, {
|
|
7
|
-
import {
|
|
8
|
-
import { PopConfirmProps } from '../PopConfirm';
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
showPopConfirm?: boolean;
|
|
50
|
-
/** popConfirm props*/
|
|
51
|
-
popConfirmProps?: PopConfirmProps;
|
|
52
|
-
/** 数据列表*/
|
|
53
|
-
data?: TabProps[];
|
|
54
|
-
/** 选中的 value*/
|
|
55
|
-
value?: any;
|
|
56
|
-
/** 新增按钮回调 showAdd 为 true 时有效*/
|
|
57
|
-
onAdd?: (e?: React.MouseEvent) => void;
|
|
58
|
-
/** 切换标签页的回调 */
|
|
59
|
-
onChange?: (activeKey: any, item?: TabProps) => void;
|
|
60
|
-
/** 新增和删除页签的回调 */
|
|
61
|
-
onEdit?: (item: TabProps, e?: React.MouseEvent | React.KeyboardEvent | string, action?: 'add' | 'remove') => void;
|
|
62
|
-
[name: string]: any;
|
|
63
|
-
}
|
|
64
|
-
export declare const Tabs: FC<TabsProps>;
|
|
65
|
-
declare type mergedTabs = typeof Tabs & {
|
|
66
|
-
TabPane: typeof TabPane;
|
|
67
|
-
};
|
|
68
|
-
declare const _default: mergedTabs;
|
|
69
|
-
export default _default;
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2021/8/5 下午3:10
|
|
4
|
+
* @description 标签页
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import { TabsProps as MuiTabsProps } from "@material-ui/core";
|
|
8
|
+
import { PopConfirmProps } from '../PopConfirm';
|
|
9
|
+
import './index.scss';
|
|
10
|
+
export interface TabProps {
|
|
11
|
+
/** 标签*/
|
|
12
|
+
label?: ReactNode;
|
|
13
|
+
/** 选中value*/
|
|
14
|
+
value?: any;
|
|
15
|
+
/** 禁用*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** cls*/
|
|
18
|
+
className?: string;
|
|
19
|
+
/** 可关闭标签*/
|
|
20
|
+
closable?: boolean;
|
|
21
|
+
/** 鼠标悬浮显示关闭图标 */
|
|
22
|
+
interactive?: boolean;
|
|
23
|
+
[name: string]: any;
|
|
24
|
+
}
|
|
25
|
+
export interface TabsProps extends Omit<MuiTabsProps, 'onChange'> {
|
|
26
|
+
/** 模式:线性、卡片*/
|
|
27
|
+
mode?: 'line' | 'card' | 'track';
|
|
28
|
+
/**可编辑标签页*/
|
|
29
|
+
editable?: boolean;
|
|
30
|
+
/**显示新增按钮*/
|
|
31
|
+
showAdd?: boolean | React.ReactNode;
|
|
32
|
+
/**显示 popconfirm,editable 为true 有效*/
|
|
33
|
+
showPopConfirm?: boolean;
|
|
34
|
+
/** popConfirm props*/
|
|
35
|
+
popConfirmProps?: PopConfirmProps;
|
|
36
|
+
/** 数据列表*/
|
|
37
|
+
data?: Array<TabProps>;
|
|
38
|
+
/** 显示tooltip*/
|
|
39
|
+
showToolTip?: boolean;
|
|
40
|
+
/** 新增按钮回调 showAdd 为 true 时有效*/
|
|
41
|
+
onAdd?: (event?: React.MouseEvent) => void;
|
|
42
|
+
/** 切换标签页的回调 */
|
|
43
|
+
onChange?: (value: any, tabData?: TabProps, event?: React.ChangeEvent) => void;
|
|
44
|
+
/** 关闭标签页的回调*/
|
|
45
|
+
onEdit?: (tabData: TabProps, event?: React.MouseEvent) => void;
|
|
46
|
+
}
|
|
47
|
+
export declare const Tabs: FunctionComponent<TabsProps>;
|
|
48
|
+
export default Tabs;
|