@bit-sun/business-component 2.0.31 → 2.0.32
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/.editorconfig +16 -16
- package/.fatherrc.ts +4 -4
- package/.gitlab-ci.yml +174 -174
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +74 -74
- package/README.md +27 -27
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -0
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +59 -0
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +98 -0
- package/dist/components/Business/CommonAlert/index.d.ts +3 -0
- package/dist/components/Business/DetailPageWrapper/index.d.ts +9 -0
- package/dist/components/Business/DetailPageWrapper/utils.d.ts +9 -0
- package/dist/components/Business/HomePageWrapper/index.d.ts +3 -0
- package/dist/components/Business/columnSettingTable/index.d.ts +1 -0
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +1 -0
- package/dist/index.esm.js +7600 -5508
- package/dist/index.js +7597 -5505
- package/docs/index.md +21 -21
- package/lib/assets/drag.svg +17 -17
- package/lib/assets/exportFail.svg +37 -37
- package/lib/assets/exportProcessing.svg +28 -28
- package/lib/assets/exportSuccess.svg +34 -34
- package/lib/assets/label_icon_bottom.svg +25 -25
- package/lib/assets/upExport.svg +22 -22
- package/package.json +69 -63
- package/src/assets/btn-delete.svg +30 -0
- package/src/assets/btn-edit.svg +20 -0
- package/src/assets/btn-more.svg +18 -0
- package/src/assets/btn-submit.svg +20 -0
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/exportFail.svg +37 -37
- package/src/assets/exportProcessing.svg +28 -28
- package/src/assets/exportSuccess.svg +34 -34
- package/src/assets/fixed-left-active.svg +12 -0
- package/src/assets/fixed-left.svg +16 -0
- package/src/assets/fixed-right-active.svg +12 -0
- package/src/assets/fixed-right.svg +16 -0
- package/src/assets/icon-quanping.svg +16 -0
- package/src/assets/icon-shezhi.svg +17 -17
- package/src/assets/label_icon_bottom.svg +25 -25
- package/src/assets/scanning.svg +25 -0
- package/src/assets/upExport.svg +22 -22
- package/src/components/Business/AddSelectBusiness/index.md +41 -41
- package/src/components/Business/AddSelectBusiness/index.tsx +290 -290
- package/src/components/Business/BsSulaQueryTable/index.less +220 -0
- package/src/components/Business/BsSulaQueryTable/index.tsx +534 -0
- package/src/components/Business/BsSulaQueryTable/setting.tsx +817 -0
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -0
- package/src/components/Business/BsSulaQueryTable/utils.tsx +690 -0
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonAlert/index.less +0 -0
- package/src/components/Business/CommonAlert/index.tsx +23 -0
- package/src/components/Business/CommonGuideWrapper/index.less +111 -111
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
- package/src/components/Business/DetailPageWrapper/index.less +80 -0
- package/src/components/Business/DetailPageWrapper/index.tsx +325 -0
- package/src/components/Business/DetailPageWrapper/utils.tsx +111 -0
- package/src/components/Business/HomePageWrapper/index.less +33 -0
- package/src/components/Business/HomePageWrapper/index.md +45 -0
- package/src/components/Business/HomePageWrapper/index.tsx +150 -0
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1448 -1448
- package/src/components/Business/SearchSelect/common.ts +53 -53
- package/src/components/Business/SearchSelect/index.md +1137 -1137
- package/src/components/Business/SearchSelect/index.tsx +51 -51
- package/src/components/Business/SearchSelect/utils.ts +99 -99
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/TreeSearchSelect/index.md +126 -126
- package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
- package/src/components/Business/TreeSearchSelect/utils.ts +60 -60
- package/src/components/Business/columnSettingTable/columnSetting.tsx +762 -594
- package/src/components/Business/columnSettingTable/index.less +247 -247
- package/src/components/Business/columnSettingTable/index.md +357 -357
- package/src/components/Business/columnSettingTable/index.tsx +225 -216
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +233 -224
- package/src/components/Business/columnSettingTable/utils.tsx +68 -68
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.md +122 -122
- package/src/components/Functional/AddSelect/index.tsx +962 -962
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +37 -37
- package/src/components/Functional/BillEntry/index.tsx +547 -547
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.md +44 -44
- package/src/components/Functional/DataImport/index.tsx +689 -689
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.md +38 -38
- package/src/components/Functional/DataValidation/index.tsx +681 -681
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.md +33 -33
- package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
- package/src/components/Functional/SearchSelect/index.less +115 -115
- package/src/components/Functional/SearchSelect/index.md +141 -141
- package/src/components/Functional/SearchSelect/index.tsx +812 -812
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +149 -149
- package/src/index.ts +30 -27
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/requestUtils.ts +32 -32
- package/src/utils/utils.ts +22 -22
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
declare class SortableTable extends React.Component {
|
|
4
|
+
state: {
|
|
5
|
+
dataSource: never[];
|
|
6
|
+
columns: never[];
|
|
7
|
+
selectedRowKeys: never[];
|
|
8
|
+
sortDataSource: never[];
|
|
9
|
+
setVisible: boolean;
|
|
10
|
+
searchDataSource: boolean;
|
|
11
|
+
onSearchSort: boolean;
|
|
12
|
+
isDefaultValue: boolean;
|
|
13
|
+
defaultValue: never[];
|
|
14
|
+
};
|
|
15
|
+
patchUserColumnConfig: (config: any) => void;
|
|
16
|
+
getConfigFromlocalstorage: () => any;
|
|
17
|
+
patchConfigToLocalstorage: (configvalue: any) => void;
|
|
18
|
+
setInitValue: (isClick?: boolean) => void;
|
|
19
|
+
componentDidMount(): void;
|
|
20
|
+
columns: ({
|
|
21
|
+
title: string;
|
|
22
|
+
dataIndex: string;
|
|
23
|
+
className: string;
|
|
24
|
+
width: number;
|
|
25
|
+
render?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
title: string;
|
|
28
|
+
dataIndex: string;
|
|
29
|
+
render: (text: any, record: any) => JSX.Element;
|
|
30
|
+
className?: undefined;
|
|
31
|
+
width?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
title: string;
|
|
34
|
+
dataIndex: string;
|
|
35
|
+
className: string;
|
|
36
|
+
render: () => JSX.Element;
|
|
37
|
+
width?: undefined;
|
|
38
|
+
})[];
|
|
39
|
+
showModal: () => void;
|
|
40
|
+
handleOk: (e?: React.MouseEvent<HTMLElement>) => void;
|
|
41
|
+
handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
|
|
42
|
+
handleTableHeadHidden: (title: string) => void;
|
|
43
|
+
onSortEnd: ({ oldIndex, newIndex }: {
|
|
44
|
+
oldIndex: any;
|
|
45
|
+
newIndex: any;
|
|
46
|
+
}) => void;
|
|
47
|
+
DraggableContainer: (props: any) => JSX.Element;
|
|
48
|
+
DraggableBodyRow: ({ className, style, ...restProps }: {
|
|
49
|
+
[x: string]: any;
|
|
50
|
+
className: any;
|
|
51
|
+
style: any;
|
|
52
|
+
}) => JSX.Element;
|
|
53
|
+
onChange: (e: CheckboxChangeEvent, title: any) => void;
|
|
54
|
+
handleReset: () => void;
|
|
55
|
+
onSearch: (e: any) => void;
|
|
56
|
+
onSearchSort: (e: any) => void;
|
|
57
|
+
render(): JSX.Element;
|
|
58
|
+
}
|
|
59
|
+
export default SortableTable;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import moment from 'moment';
|
|
2
|
+
import './utils.less';
|
|
3
|
+
export declare const handleStatusBadge: (text: any, color: any) => JSX.Element;
|
|
4
|
+
export declare const HandleTotalCount: (totalParams: any) => JSX.Element;
|
|
5
|
+
export declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) => {
|
|
6
|
+
type: string;
|
|
7
|
+
width: number;
|
|
8
|
+
props: {
|
|
9
|
+
maskClosable: boolean;
|
|
10
|
+
};
|
|
11
|
+
title: string;
|
|
12
|
+
mode: string;
|
|
13
|
+
initialValues: (ctx: any) => any;
|
|
14
|
+
fields: {
|
|
15
|
+
name: any;
|
|
16
|
+
label: string;
|
|
17
|
+
field: {
|
|
18
|
+
type: string;
|
|
19
|
+
props: {
|
|
20
|
+
autoSize: boolean;
|
|
21
|
+
placeholder: string;
|
|
22
|
+
disabledDate: (currentDate: any) => boolean;
|
|
23
|
+
style: {
|
|
24
|
+
width: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
initialValue: moment.Moment;
|
|
29
|
+
rules: {
|
|
30
|
+
required: boolean;
|
|
31
|
+
message: string;
|
|
32
|
+
}[];
|
|
33
|
+
}[];
|
|
34
|
+
submitButtonProps: {
|
|
35
|
+
children: string;
|
|
36
|
+
};
|
|
37
|
+
backButtonProps: {
|
|
38
|
+
children: string;
|
|
39
|
+
};
|
|
40
|
+
submit: any;
|
|
41
|
+
};
|
|
42
|
+
export declare const renderZeroInSummary: (value: any) => number | "- -";
|
|
43
|
+
export declare const calculateValidPeriod: (start: any, end: any) => string;
|
|
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 handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
48
|
+
export declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
49
|
+
declare type tableColumnsImageType = {
|
|
50
|
+
width?: number | string;
|
|
51
|
+
height?: number | string;
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
};
|
|
54
|
+
export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
|
|
55
|
+
declare type UserColumnsType = {
|
|
56
|
+
name: string;
|
|
57
|
+
department?: string;
|
|
58
|
+
position?: string;
|
|
59
|
+
company?: string;
|
|
60
|
+
avatar?: string;
|
|
61
|
+
};
|
|
62
|
+
export declare const userColumns: (props: UserColumnsType) => JSX.Element;
|
|
63
|
+
export declare const userInfoCard: (props: any) => JSX.Element;
|
|
64
|
+
export declare function handleCommonTimeRenderHours(text: any, format?: any): any;
|
|
65
|
+
export declare function handleCommonTimeRender(text: any, format?: any): any;
|
|
66
|
+
interface ColumnsEditInterfave {
|
|
67
|
+
text?: string;
|
|
68
|
+
record?: any;
|
|
69
|
+
type?: string;
|
|
70
|
+
reqName: string;
|
|
71
|
+
successMessage?: string;
|
|
72
|
+
urlPathId?: boolean;
|
|
73
|
+
disabled: boolean;
|
|
74
|
+
requestProps: {
|
|
75
|
+
url: string;
|
|
76
|
+
converter?: Function;
|
|
77
|
+
method?: string;
|
|
78
|
+
};
|
|
79
|
+
[key: string]: any;
|
|
80
|
+
}
|
|
81
|
+
export declare const ColumnsEdit: (props: ColumnsEditInterfave) => JSX.Element;
|
|
82
|
+
export declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
|
|
83
|
+
export declare const textIcon: (type: string | number, text?: string) => JSX.Element | undefined;
|
|
84
|
+
export declare const renderFixed2: (text: any) => any;
|
|
85
|
+
export declare const getItemDefaultWidth: (item: any) => number;
|
|
86
|
+
/**
|
|
87
|
+
* 查询参数处理
|
|
88
|
+
* @param params 要应用于查询的参数
|
|
89
|
+
* @returns 返回处理后的查询参数
|
|
90
|
+
*/
|
|
91
|
+
export declare function queryParams(params: any, flag?: any): any;
|
|
92
|
+
/**
|
|
93
|
+
* 根据用户权限检验对应按钮是够显示 !!!!现在先去掉
|
|
94
|
+
* @param code 对应权限值
|
|
95
|
+
* @returns boolean
|
|
96
|
+
*/
|
|
97
|
+
export declare const authFn: (code?: any) => boolean;
|
|
98
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface actionItem {
|
|
2
|
+
[propName: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export declare const doDetailPageAction: (config: actionItem) => void;
|
|
5
|
+
export declare const formatter: (data: any, parentAuthority: any, parentName: any) => any;
|
|
6
|
+
export declare const memoizeOneFormatter: import("memoize-one").MemoizedFn<(data: any, parentAuthority: any, parentName: any) => any>;
|
|
7
|
+
export declare const getBreadcrumbNameMap: (menuData: any) => {};
|
|
8
|
+
export declare const judgeIsEmpty: (value: any) => boolean;
|
|
9
|
+
export {};
|
|
@@ -11,5 +11,6 @@ export default class ColumnSettingTable extends React.Component {
|
|
|
11
11
|
handledynamicColumns: (col: any[]) => any[];
|
|
12
12
|
handleResize: (index: any) => (_: any, { size }: any) => void;
|
|
13
13
|
ResizeableTitle: (props: any) => JSX.Element;
|
|
14
|
+
getTableScrollXWidth: (cols: any[]) => any;
|
|
14
15
|
render(): JSX.Element;
|
|
15
16
|
}
|
|
@@ -12,5 +12,6 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
12
12
|
handledynamicColumns: (col: any[]) => any[];
|
|
13
13
|
handleResize: (index: any) => (_: any, { size }: any) => void;
|
|
14
14
|
ResizeableTitle: (props: any) => JSX.Element;
|
|
15
|
+
getTableScrollXWidth: (cols: any[]) => any;
|
|
15
16
|
render(): JSX.Element;
|
|
16
17
|
}
|