@bit-sun/business-component 4.2.0-alpha.6.9 → 4.2.5-per-alpha.2
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/.umirc.ts +14 -10
- package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +19 -8
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +9 -17
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
- package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
- package/dist/components/Business/CommonAlert/index.d.ts +1 -2
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +11 -12
- package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
- package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +1 -2
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +1 -2
- package/dist/components/Functional/AuthButton/index.d.ts +1 -2
- package/dist/components/Functional/DataImport/index.d.ts +4 -4
- package/dist/components/Functional/DataValidation/index.d.ts +5 -5
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.esm.js +2203 -1852
- package/dist/index.js +2196 -1847
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +18 -19
- package/dist/utils/luckysheetLoader.d.ts +21 -0
- package/dist/utils/utils.d.ts +0 -41
- package/package.json +1 -1
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +94 -25
- package/src/components/Business/BsLayouts/index.tsx +235 -129
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +144 -4
- package/src/components/Business/BsSulaQueryTable/index.md +120 -0
- package/src/components/Business/BsSulaQueryTable/index.tsx +241 -24
- package/src/components/Business/BsSulaQueryTable/setting.tsx +232 -17
- package/src/components/Business/DetailPageWrapper/index.tsx +30 -27
- package/src/components/Business/HomePageWrapper/index.tsx +10 -8
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +38 -234
- package/src/components/Business/columnSettingTable/index.tsx +6 -7
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +22 -23
- package/src/components/Functional/AddSelect/index.tsx +0 -92
- package/src/components/Functional/DataImport/index.tsx +76 -3
- package/src/components/Functional/DataValidation/index.tsx +81 -3
- package/src/components/Functional/SearchSelect/index.tsx +2 -5
- package/src/components/Solution/RuleComponent/index.js +0 -1
- package/src/index.ts +0 -2
- package/src/utils/luckysheetLoader.ts +164 -0
- package/src/utils/utils.ts +1 -41
- package/dist/components/Business/SystemLog/index.d.ts +0 -78
- package/src/components/Business/SystemLog/index.md +0 -37
- package/src/components/Business/SystemLog/index.tsx +0 -87
package/.umirc.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* @LastEditors: rodchen rodchen_king@outlook.com
|
|
7
7
|
*/
|
|
8
8
|
import { defineConfig } from 'dumi';
|
|
9
|
+
import path from 'path';
|
|
9
10
|
|
|
10
11
|
export default defineConfig({
|
|
11
12
|
title: 'business-component',
|
|
@@ -17,21 +18,24 @@ export default defineConfig({
|
|
|
17
18
|
'@table-padding-horizontal': '4px'
|
|
18
19
|
},
|
|
19
20
|
bssula: {},
|
|
21
|
+
alias: {
|
|
22
|
+
'@': path.resolve(__dirname, 'src'),
|
|
23
|
+
},
|
|
20
24
|
favicon:
|
|
21
25
|
'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
|
|
22
26
|
logo: 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
|
|
23
27
|
outputPath: 'docs-dist',
|
|
24
28
|
mode: 'site',
|
|
25
|
-
scripts: [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
],
|
|
29
|
-
styles: [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
],
|
|
29
|
+
// scripts: [
|
|
30
|
+
// 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/plugins/js/plugin.js',
|
|
31
|
+
// 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/luckysheet.umd.js',
|
|
32
|
+
// ],
|
|
33
|
+
// styles: [
|
|
34
|
+
// 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/plugins/css/pluginsCss.css',
|
|
35
|
+
// 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/plugins/plugins.css',
|
|
36
|
+
// 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/css/luckysheet.css',
|
|
37
|
+
// 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/assets/iconfont/iconfont.css',
|
|
38
|
+
// ],
|
|
35
39
|
proxy: {
|
|
36
40
|
'/bop/api/': {
|
|
37
41
|
// target: 'http://bitsun.product.app.business-operation-platform.v1-dev:8050', // 开发环境
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const AddSpuSelect: (parProps: any) => React.JSX.Element;
|
|
1
|
+
export declare const AddSkuSelect: (parProps: any) => JSX.Element;
|
|
2
|
+
export declare const AddSkcSelect: (parProps: any) => JSX.Element;
|
|
3
|
+
export declare const AddSpuSelect: (parProps: any) => JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './index.less';
|
|
3
2
|
export type SiderTheme = 'light' | 'dark';
|
|
4
|
-
declare const DrawContent: ({ onClose, itemPath }: any) =>
|
|
3
|
+
declare const DrawContent: ({ onClose, itemPath }: any) => JSX.Element;
|
|
5
4
|
export default DrawContent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import './index.less';
|
|
3
|
-
declare const MenuSetting: React.ForwardRefExoticComponent<
|
|
3
|
+
declare const MenuSetting: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
4
4
|
export default MenuSetting;
|
package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts
CHANGED
|
@@ -12,6 +12,6 @@ declare class LeftTree extends React.Component<any> {
|
|
|
12
12
|
onChange: (e: any) => void;
|
|
13
13
|
getPathList: (originData: any) => Array<any>;
|
|
14
14
|
handleAdd2Menu: (path: string) => void;
|
|
15
|
-
render():
|
|
15
|
+
render(): JSX.Element;
|
|
16
16
|
}
|
|
17
17
|
export default LeftTree;
|
package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ declare class rightTree extends React.Component<any> {
|
|
|
24
24
|
handleBatchDelete: () => void;
|
|
25
25
|
handleAddTreeNode: (e: any, item: any) => void;
|
|
26
26
|
onCheck: (checkedKeysValue: React.Key[]) => void;
|
|
27
|
-
getChildMenu: (item: any) =>
|
|
28
|
-
render():
|
|
27
|
+
getChildMenu: (item: any) => JSX.Element;
|
|
28
|
+
render(): JSX.Element;
|
|
29
29
|
}
|
|
30
30
|
export default rightTree;
|
package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CustomerMenuHeader: ({ collapsed, handleClose, originRoutes, itemPath }: any) => React.JSX.Element;
|
|
1
|
+
declare const CustomerMenuHeader: ({ collapsed, handleClose, originRoutes, itemPath }: any) => JSX.Element;
|
|
3
2
|
export default CustomerMenuHeader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import './index.less';
|
|
3
|
-
declare const CustomerMenu: React.ForwardRefExoticComponent<
|
|
3
|
+
declare const CustomerMenu: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
4
4
|
export default CustomerMenu;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import './index.less';
|
|
3
2
|
export declare const judgeIsEmpty: (value: any) => boolean;
|
|
4
|
-
declare const GlobalHeaderCom: (props: any) =>
|
|
3
|
+
declare const GlobalHeaderCom: (props: any) => JSX.Element;
|
|
5
4
|
export default GlobalHeaderCom;
|
|
@@ -5,18 +5,29 @@ declare class SearchItemTable extends React.Component {
|
|
|
5
5
|
dataSource: never[];
|
|
6
6
|
columns: never[];
|
|
7
7
|
sortDataSource: never[];
|
|
8
|
-
|
|
9
|
-
searchDataSource:
|
|
10
|
-
onSearchSort:
|
|
8
|
+
visible: boolean;
|
|
9
|
+
searchDataSource: string;
|
|
10
|
+
onSearchSort: string;
|
|
11
11
|
isDefaultValue: boolean;
|
|
12
12
|
defaultValue: never[];
|
|
13
13
|
bsTableCode: string;
|
|
14
14
|
};
|
|
15
|
+
debounceTimer: null;
|
|
16
|
+
dragContainer: null;
|
|
17
|
+
tableRef: React.RefObject<unknown>;
|
|
18
|
+
sortableContext: null;
|
|
19
|
+
handleGlobalClick: null;
|
|
20
|
+
handleGlobalKeydown: null;
|
|
21
|
+
handleWindowResize: null;
|
|
22
|
+
handleDragStart: null;
|
|
23
|
+
handleDragEnd: null;
|
|
24
|
+
requestController: null;
|
|
15
25
|
patchUserSearchFieldsConfig: (config: any) => void;
|
|
16
26
|
getConfigFromlocalstorage: () => any;
|
|
17
27
|
patchConfigToLocalstorage: (configvalue: any) => void;
|
|
18
28
|
setInitValue: (isClick?: boolean) => void;
|
|
19
29
|
componentDidMount(): void;
|
|
30
|
+
componentWillUnmount(): void;
|
|
20
31
|
columns: ({
|
|
21
32
|
title: string;
|
|
22
33
|
dataIndex: string;
|
|
@@ -25,13 +36,13 @@ declare class SearchItemTable extends React.Component {
|
|
|
25
36
|
} | {
|
|
26
37
|
title: string;
|
|
27
38
|
dataIndex: string;
|
|
28
|
-
render: (text: any, record: any) =>
|
|
39
|
+
render: (text: any, record: any) => JSX.Element;
|
|
29
40
|
className?: undefined;
|
|
30
41
|
} | {
|
|
31
42
|
title: string;
|
|
32
43
|
dataIndex: string;
|
|
33
44
|
className: string;
|
|
34
|
-
render: () =>
|
|
45
|
+
render: () => JSX.Element;
|
|
35
46
|
})[];
|
|
36
47
|
showModal: () => void;
|
|
37
48
|
handleOk: (e?: React.MouseEvent<HTMLElement>) => void;
|
|
@@ -41,18 +52,18 @@ declare class SearchItemTable extends React.Component {
|
|
|
41
52
|
oldIndex: any;
|
|
42
53
|
newIndex: any;
|
|
43
54
|
}) => void;
|
|
44
|
-
DraggableContainer: (props: any) =>
|
|
55
|
+
DraggableContainer: (props: any) => JSX.Element;
|
|
45
56
|
DraggableBodyRow: ({ className, style, ...restProps }: {
|
|
46
57
|
[x: string]: any;
|
|
47
58
|
className: any;
|
|
48
59
|
style: any;
|
|
49
|
-
}) =>
|
|
60
|
+
}) => JSX.Element;
|
|
50
61
|
onChange: (e: CheckboxChangeEvent, name: any) => void;
|
|
51
62
|
handleReset: () => void;
|
|
52
63
|
handleResetSetting: () => void;
|
|
53
64
|
onSearch: (e: any) => void;
|
|
54
65
|
onSearchSort: (e: any) => void;
|
|
55
66
|
showSearchItemLabel: (item: object) => any;
|
|
56
|
-
render():
|
|
67
|
+
render(): JSX.Element;
|
|
57
68
|
}
|
|
58
69
|
export default SearchItemTable;
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
3
|
declare class SortableTable extends React.Component {
|
|
4
|
-
|
|
5
|
-
dataSource: never[];
|
|
6
|
-
columns: never[];
|
|
7
|
-
sortDataSource: never[];
|
|
8
|
-
setVisible: boolean;
|
|
9
|
-
searchDataSource: boolean;
|
|
10
|
-
onSearchSort: boolean;
|
|
11
|
-
isDefaultValue: boolean;
|
|
12
|
-
defaultValue: never[];
|
|
13
|
-
bsTableCode: string;
|
|
14
|
-
};
|
|
4
|
+
constructor(props: any);
|
|
15
5
|
patchUserColumnConfig: (config: any, tableCode: any) => Promise<unknown>;
|
|
16
6
|
getConfigFromlocalstorage: () => any;
|
|
17
7
|
patchConfigToLocalstorage: (configvalue: any, tableCode: any, newDataSource: any) => void;
|
|
@@ -20,26 +10,28 @@ declare class SortableTable extends React.Component {
|
|
|
20
10
|
componentWillReceiveProps(nextProps: any): void;
|
|
21
11
|
setInitValue: (isClick?: boolean) => void;
|
|
22
12
|
componentDidMount(): void;
|
|
13
|
+
componentWillUnmount(): void;
|
|
23
14
|
columns: ({
|
|
24
15
|
title: string;
|
|
25
16
|
dataIndex: string;
|
|
26
17
|
className: string;
|
|
27
18
|
width: number;
|
|
28
|
-
render: (text: any, record: any) =>
|
|
19
|
+
render: (text: any, record: any) => JSX.Element;
|
|
29
20
|
} | {
|
|
30
21
|
title: string;
|
|
31
22
|
dataIndex: string;
|
|
32
|
-
render: (text: any, record: any) =>
|
|
23
|
+
render: (text: any, record: any) => JSX.Element;
|
|
33
24
|
className?: undefined;
|
|
34
25
|
width?: undefined;
|
|
35
26
|
} | {
|
|
36
27
|
title: string;
|
|
37
28
|
dataIndex: string;
|
|
38
29
|
className: string;
|
|
39
|
-
render: () =>
|
|
30
|
+
render: () => JSX.Element;
|
|
40
31
|
width?: undefined;
|
|
41
32
|
})[];
|
|
42
33
|
showModal: () => void;
|
|
34
|
+
handleShowModal: () => void;
|
|
43
35
|
handleOk: (e?: React.MouseEvent<HTMLElement>) => void;
|
|
44
36
|
handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
|
|
45
37
|
handleTableHeadHidden: (title: string) => void;
|
|
@@ -47,17 +39,17 @@ declare class SortableTable extends React.Component {
|
|
|
47
39
|
oldIndex: any;
|
|
48
40
|
newIndex: any;
|
|
49
41
|
}) => void;
|
|
50
|
-
DraggableContainer: (props: any) =>
|
|
42
|
+
DraggableContainer: (props: any) => JSX.Element;
|
|
51
43
|
DraggableBodyRow: ({ className, style, ...restProps }: {
|
|
52
44
|
[x: string]: any;
|
|
53
45
|
className: any;
|
|
54
46
|
style: any;
|
|
55
|
-
}) =>
|
|
47
|
+
}) => JSX.Element;
|
|
56
48
|
onChange: (e: CheckboxChangeEvent, title: any) => void;
|
|
57
49
|
handleReset: () => void;
|
|
58
50
|
handleResetSetting: () => Promise<unknown>;
|
|
59
51
|
onSearch: (e: any) => void;
|
|
60
52
|
onSearchSort: (e: any) => void;
|
|
61
|
-
render():
|
|
53
|
+
render(): JSX.Element;
|
|
62
54
|
}
|
|
63
55
|
export default SortableTable;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import moment from 'moment';
|
|
3
2
|
import './utils.less';
|
|
4
|
-
export declare const handleStatusBadge: (text: any, color: any) =>
|
|
5
|
-
export declare const HandleTotalCount: (totalParams: any) =>
|
|
3
|
+
export declare const handleStatusBadge: (text: any, color: any) => JSX.Element;
|
|
4
|
+
export declare const HandleTotalCount: (totalParams: any) => JSX.Element;
|
|
6
5
|
export declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) => {
|
|
7
6
|
type: string;
|
|
8
7
|
width: number;
|
|
@@ -42,18 +41,18 @@ export declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) =
|
|
|
42
41
|
};
|
|
43
42
|
export declare const renderZeroInSummary: (value: any) => number | "-";
|
|
44
43
|
export declare const calculateValidPeriod: (start: any, end: any) => string;
|
|
45
|
-
export declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) =>
|
|
46
|
-
export declare const handleTextLineFeed: (text: string | undefined, width?: number) =>
|
|
47
|
-
export declare const handleTextOverflow: (text: string | undefined, width?: number) =>
|
|
48
|
-
export declare const handleTextOverflowNoTooltip: (text: string | undefined, width?: number) =>
|
|
49
|
-
export declare const handleTooltip: (text: any, timeTrue?: boolean) =>
|
|
50
|
-
export declare const handleTooltipHours: (text: any, timeTrue?: boolean) =>
|
|
44
|
+
export declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
|
|
45
|
+
export declare const handleTextLineFeed: (text: string | undefined, width?: number) => JSX.Element;
|
|
46
|
+
export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
|
|
47
|
+
export declare const handleTextOverflowNoTooltip: (text: string | undefined, width?: number) => JSX.Element;
|
|
48
|
+
export declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
49
|
+
export declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
51
50
|
type tableColumnsImageType = {
|
|
52
51
|
width?: number | string;
|
|
53
52
|
height?: number | string;
|
|
54
53
|
[key: string]: any;
|
|
55
54
|
};
|
|
56
|
-
export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) =>
|
|
55
|
+
export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
|
|
57
56
|
type UserColumnsType = {
|
|
58
57
|
name: string;
|
|
59
58
|
department?: string;
|
|
@@ -61,8 +60,8 @@ type UserColumnsType = {
|
|
|
61
60
|
company?: string;
|
|
62
61
|
avatar?: string;
|
|
63
62
|
};
|
|
64
|
-
export declare const userColumns: (props: UserColumnsType) =>
|
|
65
|
-
export declare const userInfoCard: (props: any) =>
|
|
63
|
+
export declare const userColumns: (props: UserColumnsType) => JSX.Element;
|
|
64
|
+
export declare const userInfoCard: (props: any) => JSX.Element;
|
|
66
65
|
export declare function handleCommonTimeRenderHours(text: any, format?: any): any;
|
|
67
66
|
export declare function handleCommonTimeRender(text: any, format?: any): any;
|
|
68
67
|
interface ColumnsEditInterfave {
|
|
@@ -80,9 +79,9 @@ interface ColumnsEditInterfave {
|
|
|
80
79
|
};
|
|
81
80
|
[key: string]: any;
|
|
82
81
|
}
|
|
83
|
-
export declare const ColumnsEdit: (props: ColumnsEditInterfave) =>
|
|
84
|
-
export declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) =>
|
|
85
|
-
export declare const textIcon: (type: string | number, text?: string) =>
|
|
82
|
+
export declare const ColumnsEdit: (props: ColumnsEditInterfave) => JSX.Element;
|
|
83
|
+
export declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
|
|
84
|
+
export declare const textIcon: (type: string | number, text?: string) => JSX.Element | undefined;
|
|
86
85
|
export declare const renderFixed2: (text: any) => any;
|
|
87
86
|
export declare const getItemDefaultWidth: (item: any) => number;
|
|
88
87
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component } from 'react';
|
|
2
2
|
import './index.less';
|
|
3
3
|
export default class GuideWrapper extends Component {
|
|
4
|
-
static Field: ({ children, titleExtra, title, extra, bordered, ...props }: any) =>
|
|
5
|
-
render():
|
|
4
|
+
static Field: ({ children, titleExtra, title, extra, bordered, ...props }: any) => JSX.Element;
|
|
5
|
+
render(): JSX.Element;
|
|
6
6
|
}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './index.less';
|
|
3
2
|
export declare const iconMap: {
|
|
4
|
-
edit:
|
|
5
|
-
delete:
|
|
6
|
-
submit:
|
|
7
|
-
more:
|
|
8
|
-
hangUp:
|
|
9
|
-
unhook:
|
|
10
|
-
refresh:
|
|
11
|
-
print:
|
|
12
|
-
copy:
|
|
13
|
-
cancel:
|
|
3
|
+
edit: JSX.Element;
|
|
4
|
+
delete: JSX.Element;
|
|
5
|
+
submit: JSX.Element;
|
|
6
|
+
more: JSX.Element;
|
|
7
|
+
hangUp: JSX.Element;
|
|
8
|
+
unhook: JSX.Element;
|
|
9
|
+
refresh: JSX.Element;
|
|
10
|
+
print: JSX.Element;
|
|
11
|
+
copy: JSX.Element;
|
|
12
|
+
cancel: JSX.Element;
|
|
14
13
|
};
|
|
15
|
-
declare const _default: (props: any) =>
|
|
14
|
+
declare const _default: (props: any) => JSX.Element;
|
|
16
15
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ItemPropertySelector: ({ onChange, value, propertyCode, name, ...restProps }: any) => React.JSX.Element;
|
|
1
|
+
declare const ItemPropertySelector: ({ onChange, value, propertyCode, name, ...restProps }: any) => JSX.Element;
|
|
3
2
|
export default ItemPropertySelector;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import "./index.less";
|
|
3
2
|
interface propertyValueType {
|
|
4
3
|
propertyName: string;
|
|
@@ -19,5 +18,5 @@ declare const PropertySelector: ({ value, onChange, width, ...restProps }: {
|
|
|
19
18
|
value: valueType;
|
|
20
19
|
onChange: any;
|
|
21
20
|
width: string;
|
|
22
|
-
}) =>
|
|
21
|
+
}) => JSX.Element;
|
|
23
22
|
export default PropertySelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<
|
|
2
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>>;
|
|
3
3
|
export default _default;
|
|
@@ -25,18 +25,18 @@ declare class SortableTable extends React.Component<SortTableProps> {
|
|
|
25
25
|
dataIndex: string;
|
|
26
26
|
className: string;
|
|
27
27
|
width: number;
|
|
28
|
-
render: (text: any, record: any) =>
|
|
28
|
+
render: (text: any, record: any) => JSX.Element;
|
|
29
29
|
} | {
|
|
30
30
|
title: string;
|
|
31
31
|
dataIndex: string;
|
|
32
|
-
render: (text: any, record: any) =>
|
|
32
|
+
render: (text: any, record: any) => JSX.Element;
|
|
33
33
|
className?: undefined;
|
|
34
34
|
width?: undefined;
|
|
35
35
|
} | {
|
|
36
36
|
title: string;
|
|
37
37
|
dataIndex: string;
|
|
38
38
|
className: string;
|
|
39
|
-
render: () =>
|
|
39
|
+
render: () => JSX.Element;
|
|
40
40
|
width?: undefined;
|
|
41
41
|
})[];
|
|
42
42
|
showModal: () => void;
|
|
@@ -44,14 +44,14 @@ declare class SortableTable extends React.Component<SortTableProps> {
|
|
|
44
44
|
handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
|
|
45
45
|
handleTableHeadHidden: (title: string) => void;
|
|
46
46
|
onSortEnd: ({ oldIndex, newIndex }: any) => void;
|
|
47
|
-
DraggableContainer: (props: any) =>
|
|
48
|
-
DraggableBodyRow: ({ className, style, ...restProps }: any) =>
|
|
47
|
+
DraggableContainer: (props: any) => JSX.Element;
|
|
48
|
+
DraggableBodyRow: ({ className, style, ...restProps }: any) => JSX.Element;
|
|
49
49
|
onChange: (e: any, title: any) => void;
|
|
50
50
|
handleReset: () => void;
|
|
51
51
|
handleResetSetting: () => Promise<unknown>;
|
|
52
52
|
onSearch: (e: any) => void;
|
|
53
53
|
onSearchSort: (e: any) => void;
|
|
54
54
|
getConfigFromlocalstorage: () => any;
|
|
55
|
-
render():
|
|
55
|
+
render(): JSX.Element;
|
|
56
56
|
}
|
|
57
57
|
export default SortableTable;
|
|
@@ -19,10 +19,10 @@ export default class ColumnSettingTable extends React.Component {
|
|
|
19
19
|
* 合计行逻辑
|
|
20
20
|
* @returns
|
|
21
21
|
*/
|
|
22
|
-
getTableSummaryInfo: () => () =>
|
|
22
|
+
getTableSummaryInfo: () => () => JSX.Element;
|
|
23
23
|
handledynamicColumns: (col: any[]) => any[];
|
|
24
24
|
handleResize: (index: any) => (_: any, { size }: any) => void;
|
|
25
|
-
ResizeableTitle: (props: any) =>
|
|
25
|
+
ResizeableTitle: (props: any) => JSX.Element;
|
|
26
26
|
getTableScrollXWidth: (cols: any[]) => any;
|
|
27
27
|
/**
|
|
28
28
|
* 处理行点击事件
|
|
@@ -30,5 +30,5 @@ export default class ColumnSettingTable extends React.Component {
|
|
|
30
30
|
*/
|
|
31
31
|
handleRowClick: (record: any) => void;
|
|
32
32
|
recalculateSummary: (nextProps: any) => void;
|
|
33
|
-
render():
|
|
33
|
+
render(): JSX.Element;
|
|
34
34
|
}
|
|
@@ -19,10 +19,10 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
19
19
|
* 合计行逻辑
|
|
20
20
|
* @returns
|
|
21
21
|
*/
|
|
22
|
-
getTableSummaryInfo: () => () =>
|
|
22
|
+
getTableSummaryInfo: () => () => JSX.Element;
|
|
23
23
|
handledynamicColumns: (col: any[]) => any[];
|
|
24
24
|
handleResize: (index: any) => (_: any, { size }: any) => void;
|
|
25
|
-
ResizeableTitle: (props: any) =>
|
|
25
|
+
ResizeableTitle: (props: any) => JSX.Element;
|
|
26
26
|
getTableScrollXWidth: (cols: any[]) => any;
|
|
27
27
|
/**
|
|
28
28
|
* 处理行点击事件
|
|
@@ -30,5 +30,5 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
30
30
|
*/
|
|
31
31
|
handleRowClick: (record: any) => void;
|
|
32
32
|
recalculateSummary: (nextProps: any) => void;
|
|
33
|
-
render():
|
|
33
|
+
render(): JSX.Element;
|
|
34
34
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
/**
|
|
3
2
|
* 非空数组
|
|
4
3
|
* @param arr 要判断的数据
|
|
@@ -6,5 +5,5 @@ import React from 'react';
|
|
|
6
5
|
*/
|
|
7
6
|
export declare const noEmptyArray: (arr: any[]) => boolean;
|
|
8
7
|
export declare const getItemDefaultWidth: (item: any) => number;
|
|
9
|
-
export declare const handleTextOverflow: (text: string | undefined, width?: number) =>
|
|
8
|
+
export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
|
|
10
9
|
export declare const getShowColumns: (originColumns: any[], configs: any[]) => any[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
2
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
3
3
|
export default _default;
|
|
@@ -4,5 +4,5 @@ export interface ParagraphCopierProps {
|
|
|
4
4
|
text: string;
|
|
5
5
|
enableHover?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const ParagraphCopier: (props: ParagraphCopierProps) =>
|
|
7
|
+
declare const ParagraphCopier: (props: ParagraphCopierProps) => JSX.Element;
|
|
8
8
|
export default ParagraphCopier;
|
|
@@ -25,5 +25,5 @@ interface IProps {
|
|
|
25
25
|
ellipsis?: ellipsisProps;
|
|
26
26
|
}
|
|
27
27
|
export type SectionProps = PropsWithChildren<IProps>;
|
|
28
|
-
declare const Section: ({ children, copyable, label, icon, ellipsis, }: SectionProps) =>
|
|
28
|
+
declare const Section: ({ children, copyable, label, icon, ellipsis, }: SectionProps) => JSX.Element;
|
|
29
29
|
export default Section;
|