@bit-sun/business-component 2.0.27 → 2.0.29
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/dist/components/Business/columnSettingTable/columnSetting.d.ts +54 -0
- package/dist/components/Business/columnSettingTable/index.d.ts +15 -0
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +16 -0
- package/dist/components/Business/columnSettingTable/utils.d.ts +8 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +6583 -6737
- package/dist/index.js +6582 -6735
- package/package.json +5 -3
- package/src/components/Business/columnSettingTable/index.md +10 -10
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface SortTableProps {
|
|
4
|
+
[propName: string]: any;
|
|
5
|
+
}
|
|
6
|
+
declare class SortableTable extends React.Component<SortTableProps> {
|
|
7
|
+
state: {
|
|
8
|
+
dataSource: never[];
|
|
9
|
+
columns: never[];
|
|
10
|
+
selectedRowKeys: never[];
|
|
11
|
+
sortDataSource: never[];
|
|
12
|
+
setVisible: boolean;
|
|
13
|
+
searchDataSource: boolean;
|
|
14
|
+
onSearchSort: boolean;
|
|
15
|
+
};
|
|
16
|
+
patchUserColumnConfig: (config: any) => void;
|
|
17
|
+
patchConfigToLocalstorage: (configvalue: any, tableCode: string) => void;
|
|
18
|
+
setInitValue: (datasource: any[]) => void;
|
|
19
|
+
componentWillReceiveProps(nextProps: any): void;
|
|
20
|
+
componentDidMount(): void;
|
|
21
|
+
columns: ({
|
|
22
|
+
title: string;
|
|
23
|
+
dataIndex: string;
|
|
24
|
+
className: string;
|
|
25
|
+
width: number;
|
|
26
|
+
render?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
title: string;
|
|
29
|
+
dataIndex: string;
|
|
30
|
+
render: (text: any, record: any) => JSX.Element;
|
|
31
|
+
className?: undefined;
|
|
32
|
+
width?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
title: string;
|
|
35
|
+
dataIndex: string;
|
|
36
|
+
className: string;
|
|
37
|
+
render: () => JSX.Element;
|
|
38
|
+
width?: undefined;
|
|
39
|
+
})[];
|
|
40
|
+
showModal: () => void;
|
|
41
|
+
handleOk: (e?: React.MouseEvent<HTMLElement>) => void;
|
|
42
|
+
handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
|
|
43
|
+
handleTableHeadHidden: (title: string) => void;
|
|
44
|
+
onSortEnd: ({ oldIndex, newIndex }: any) => void;
|
|
45
|
+
DraggableContainer: (props: any) => JSX.Element;
|
|
46
|
+
DraggableBodyRow: ({ className, style, ...restProps }: any) => JSX.Element;
|
|
47
|
+
onChange: (e: any, title: any) => void;
|
|
48
|
+
handleReset: () => void;
|
|
49
|
+
onSearch: (e: any) => void;
|
|
50
|
+
onSearchSort: (e: any) => void;
|
|
51
|
+
getConfigFromlocalstorage: () => any;
|
|
52
|
+
render(): JSX.Element;
|
|
53
|
+
}
|
|
54
|
+
export default SortableTable;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default class ColumnSettingTable extends React.Component {
|
|
3
|
+
state: any;
|
|
4
|
+
constructor(props: any);
|
|
5
|
+
componentDidMount(): void;
|
|
6
|
+
componentWillReceiveProps(nextProps: any): void;
|
|
7
|
+
setInitialShowColumn: (columns: any[]) => void;
|
|
8
|
+
setShowColumns: (newColumns: Array<any>) => void;
|
|
9
|
+
getConfigFromlocalstorage: () => any;
|
|
10
|
+
getTableSummaryInfo: () => () => any;
|
|
11
|
+
handledynamicColumns: (col: any[]) => any[];
|
|
12
|
+
handleResize: (index: any) => (_: any, { size }: any) => void;
|
|
13
|
+
ResizeableTitle: (props: any) => JSX.Element;
|
|
14
|
+
render(): JSX.Element;
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default class ColumnSettingSulaTable extends React.Component {
|
|
3
|
+
sulaTableRef: React.RefObject<unknown>;
|
|
4
|
+
state: any;
|
|
5
|
+
constructor(props: any);
|
|
6
|
+
componentDidMount(): void;
|
|
7
|
+
componentWillReceiveProps(nextProps: any): void;
|
|
8
|
+
setInitialShowColumn: (columns: any[]) => void;
|
|
9
|
+
setShowColumns: (newColumns: Array<any>) => void;
|
|
10
|
+
getConfigFromlocalstorage: () => any;
|
|
11
|
+
getTableSummaryInfo: () => () => any;
|
|
12
|
+
handledynamicColumns: (col: any[]) => any[];
|
|
13
|
+
handleResize: (index: any) => (_: any, { size }: any) => void;
|
|
14
|
+
ResizeableTitle: (props: any) => JSX.Element;
|
|
15
|
+
render(): JSX.Element;
|
|
16
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 非空数组
|
|
3
|
+
* @param arr 要判断的数据
|
|
4
|
+
* @returns boolean
|
|
5
|
+
*/
|
|
6
|
+
export declare const noEmptyArray: (arr: any[]) => boolean;
|
|
7
|
+
export declare const getItemDefaultWidth: (item: any) => number;
|
|
8
|
+
export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -14,3 +14,5 @@ export { default as BusinessTreeSearchSelect } from './components/Business/TreeS
|
|
|
14
14
|
export { default as StateFlow } from './components/Business/StateFlow';
|
|
15
15
|
export { default as GuideWrapper } from './components/Business/CommonGuideWrapper';
|
|
16
16
|
export { default as ExportIcon } from './components/Functional/ExportFunctions/ExportIcon';
|
|
17
|
+
export { default as SulaColumnSettingTable } from './components/Business/columnSettingTable/sulaSettingTable';
|
|
18
|
+
export { default as ColumnSettingTable } from './components/Business/columnSettingTable';
|