dcp-design-react 1.7.42
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/LICENSE +21 -0
- package/README.md +4 -0
- package/lib/_utils/cloneElement.d.ts +2 -0
- package/lib/_utils/dom.d.ts +75 -0
- package/lib/_utils/download.d.ts +7 -0
- package/lib/_utils/error.d.ts +2 -0
- package/lib/_utils/isDev.d.ts +1 -0
- package/lib/_utils/isMobile.d.ts +1 -0
- package/lib/_utils/isServer.d.ts +2 -0
- package/lib/_utils/prefix.d.ts +1 -0
- package/lib/_utils/resize-event.d.ts +10 -0
- package/lib/_utils/scrollbar-width.d.ts +1 -0
- package/lib/_utils/types.d.ts +39 -0
- package/lib/_utils/util.d.ts +27 -0
- package/lib/_utils/validators.d.ts +2 -0
- package/lib/anchor/index.d.ts +4 -0
- package/lib/anchor/src/anchor-item.d.ts +15 -0
- package/lib/anchor/src/anchor-nav.d.ts +12 -0
- package/lib/anchor/src/anchor.d.ts +61 -0
- package/lib/anchor/style/index.less +101 -0
- package/lib/antd/Calendar.d.ts +4 -0
- package/lib/antd/DatePicker.d.ts +50 -0
- package/lib/antd/TimePicker.d.ts +16 -0
- package/lib/antd/compact.less +11 -0
- package/lib/antd/dayjs.d.ts +1 -0
- package/lib/antd/index.d.ts +124 -0
- package/lib/antd/index.less +19 -0
- package/lib/button/index.d.ts +3 -0
- package/lib/button/src/button.d.ts +32 -0
- package/lib/button/style/index.less +12 -0
- package/lib/collapse/index.d.ts +3 -0
- package/lib/collapse/src/Content.d.ts +3 -0
- package/lib/collapse/src/_util/motion.less +13 -0
- package/lib/collapse/src/_util/motionUtil.d.ts +3 -0
- package/lib/collapse/src/collapse.d.ts +18 -0
- package/lib/collapse/style/index.less +24 -0
- package/lib/config-provider/context.d.ts +10 -0
- package/lib/config-provider/index.d.ts +3 -0
- package/lib/config-provider/src/config-provider.d.ts +36 -0
- package/lib/copy-to-clipboard/index.d.ts +3 -0
- package/lib/copy-to-clipboard/src/copy-to-clipboard.d.ts +15 -0
- package/lib/copy-to-clipboard/style/index.less +12 -0
- package/lib/countup/index.d.ts +3 -0
- package/lib/countup/src/countup.d.ts +17 -0
- package/lib/countup/style/index.less +22 -0
- package/lib/cropper/index.d.ts +3 -0
- package/lib/cropper/src/cropper.d.ts +213 -0
- package/lib/cropper/style/index.less +13 -0
- package/lib/divider/index.d.ts +3 -0
- package/lib/divider/src/divider.d.ts +27 -0
- package/lib/divider/style/index.less +54 -0
- package/lib/download/index.d.ts +3 -0
- package/lib/download/src/download.d.ts +54 -0
- package/lib/download/style/index.less +12 -0
- package/lib/drawer/index.d.ts +3 -0
- package/lib/drawer/src/drawer.d.ts +46 -0
- package/lib/drawer/style/index.less +82 -0
- package/lib/empty/index.d.ts +3 -0
- package/lib/empty/src/empty.d.ts +15 -0
- package/lib/empty/style/index.less +35 -0
- package/lib/form/index.d.ts +4 -0
- package/lib/form/src/context.d.ts +9 -0
- package/lib/form/src/fields-filter.d.ts +26 -0
- package/lib/form/src/form-cascader.d.ts +21 -0
- package/lib/form/src/form-checkbox-group.d.ts +19 -0
- package/lib/form/src/form-checkbox.d.ts +16 -0
- package/lib/form/src/form-city-select.d.ts +10 -0
- package/lib/form/src/form-date.d.ts +10 -0
- package/lib/form/src/form-divider.d.ts +10 -0
- package/lib/form/src/form-immediate.d.ts +20 -0
- package/lib/form/src/form-input-number.d.ts +11 -0
- package/lib/form/src/form-input.d.ts +11 -0
- package/lib/form/src/form-item-view.d.ts +7 -0
- package/lib/form/src/form-multiple-search-helper.d.ts +20 -0
- package/lib/form/src/form-multiple-tree-table-helper.d.ts +20 -0
- package/lib/form/src/form-radio.d.ts +19 -0
- package/lib/form/src/form-range-date.d.ts +10 -0
- package/lib/form/src/form-range-input-number.d.ts +10 -0
- package/lib/form/src/form-range-input.d.ts +10 -0
- package/lib/form/src/form-range-search-helper.d.ts +20 -0
- package/lib/form/src/form-range-time.d.ts +10 -0
- package/lib/form/src/form-rate.d.ts +10 -0
- package/lib/form/src/form-region-select.d.ts +10 -0
- package/lib/form/src/form-search-helper.d.ts +21 -0
- package/lib/form/src/form-select.d.ts +21 -0
- package/lib/form/src/form-switch.d.ts +10 -0
- package/lib/form/src/form-text-area.d.ts +10 -0
- package/lib/form/src/form-time.d.ts +10 -0
- package/lib/form/src/form-tinymce.d.ts +10 -0
- package/lib/form/src/form-tree-select.d.ts +21 -0
- package/lib/form/src/form-tree-table-helper.d.ts +20 -0
- package/lib/form/src/form-upload-file.d.ts +10 -0
- package/lib/form/src/form-upload-img.d.ts +10 -0
- package/lib/form/src/form.d.ts +197 -0
- package/lib/form/src/types.d.ts +356 -0
- package/lib/form/src/utils.d.ts +57 -0
- package/lib/form/style/index.less +352 -0
- package/lib/guide-tracker/index.d.ts +3 -0
- package/lib/guide-tracker/src/Panel.d.ts +9 -0
- package/lib/guide-tracker/src/guideTracker.d.ts +37 -0
- package/lib/guide-tracker/src/lib/Highlighter.d.ts +2 -0
- package/lib/guide-tracker/src/lib/Overlay.d.ts +36 -0
- package/lib/guide-tracker/src/lib/index.d.ts +29 -0
- package/lib/guide-tracker/src/lib/utils.d.ts +27 -0
- package/lib/guide-tracker/style/index.less +189 -0
- package/lib/hoc/outsideClick.d.ts +1 -0
- package/lib/hooks/useDebounce.d.ts +3 -0
- package/lib/hooks/useEvent.d.ts +2 -0
- package/lib/hooks/useForceUpdate.d.ts +1 -0
- package/lib/hooks/useLayoutUpdateEffect.d.ts +2 -0
- package/lib/hooks/useLocale.d.ts +4 -0
- package/lib/hooks/useMergedState.d.ts +8 -0
- package/lib/hooks/useOutsideClick.d.ts +2 -0
- package/lib/hooks/useResizeObserve.d.ts +5 -0
- package/lib/hooks/useSafeState.d.ts +4 -0
- package/lib/hooks/useSize.d.ts +9 -0
- package/lib/hooks/useUpdateEffect.d.ts +2 -0
- package/lib/index.d.ts +127 -0
- package/lib/index.esm.js +1 -0
- package/lib/index.full.js +1 -0
- package/lib/index.js +1 -0
- package/lib/locale/index.d.ts +11 -0
- package/lib/locale/index.js +44 -0
- package/lib/locale/lang/en.d.ts +320 -0
- package/lib/locale/lang/en.js +325 -0
- package/lib/locale/lang/zh-cn.d.ts +320 -0
- package/lib/locale/lang/zh-cn.js +325 -0
- package/lib/modal/index.d.ts +3 -0
- package/lib/modal/src/modal.d.ts +68 -0
- package/lib/modal/style/index.less +95 -0
- package/lib/pinyin/core.d.ts +12 -0
- package/lib/pinyin/dict.d.ts +31 -0
- package/lib/pinyin/index.d.ts +2 -0
- package/lib/pinyin/patchers/56l.d.ts +7 -0
- package/lib/print/index.d.ts +3 -0
- package/lib/print/src/LodopFuncs.d.ts +1 -0
- package/lib/print/src/config.d.ts +6 -0
- package/lib/print/src/container.d.ts +14 -0
- package/lib/print/src/context.d.ts +6 -0
- package/lib/print/src/preview.d.ts +61 -0
- package/lib/print/src/print.d.ts +37 -0
- package/lib/print/src/setting.d.ts +49 -0
- package/lib/print/src/utils.d.ts +5 -0
- package/lib/print/style/index.less +175 -0
- package/lib/qm-design.d.ts +28 -0
- package/lib/range-table-helper/index.d.ts +3 -0
- package/lib/range-table-helper/src/range-table-helper.d.ts +22 -0
- package/lib/range-table-helper/style/index.less +18 -0
- package/lib/scrollbar/index.d.ts +3 -0
- package/lib/scrollbar/src/context.d.ts +7 -0
- package/lib/scrollbar/src/scrollbar.d.ts +28 -0
- package/lib/scrollbar/src/thumb.d.ts +15 -0
- package/lib/scrollbar/style/index.less +72 -0
- package/lib/search-helper/index.d.ts +3 -0
- package/lib/search-helper/src/search-helper.d.ts +24 -0
- package/lib/search-helper/style/index.less +14 -0
- package/lib/search-tree/index.d.ts +3 -0
- package/lib/search-tree/src/search-tree.d.ts +57 -0
- package/lib/search-tree/style/index.less +34 -0
- package/lib/space/index.d.ts +3 -0
- package/lib/space/src/space.d.ts +12 -0
- package/lib/space/style/index.less +12 -0
- package/lib/spin/index.d.ts +3 -0
- package/lib/spin/src/spin.d.ts +14 -0
- package/lib/spin/style/index.less +16 -0
- package/lib/split/index.d.ts +4 -0
- package/lib/split/src/context.d.ts +8 -0
- package/lib/split/src/resize-bar.d.ts +8 -0
- package/lib/split/src/split-pane.d.ts +11 -0
- package/lib/split/src/split.d.ts +18 -0
- package/lib/split/style/index.less +83 -0
- package/lib/style/common.less +8 -0
- package/lib/style/compact.css +26706 -0
- package/lib/style/compact.less +10 -0
- package/lib/style/compact.min.css +1 -0
- package/lib/style/index.css +30459 -0
- package/lib/style/index.less +39 -0
- package/lib/style/index.min.css +1 -0
- package/lib/style/mixins/box.less +13 -0
- package/lib/style/mixins/clearfix.less +21 -0
- package/lib/style/mixins/index.less +11 -0
- package/lib/style/mixins/operation-unit.less +24 -0
- package/lib/style/mixins/reset.less +34 -0
- package/lib/style/mixins/size.less +15 -0
- package/lib/style/reset.less +132 -0
- package/lib/style/themes/compact.less +19 -0
- package/lib/style/themes/default.less +117 -0
- package/lib/style/themes/index.less +7 -0
- package/lib/style/var.less +9 -0
- package/lib/table/index.d.ts +4 -0
- package/lib/table/src/alert/index.d.ts +6 -0
- package/lib/table/src/body/index.d.ts +8 -0
- package/lib/table/src/body/useMergeCell.d.ts +7 -0
- package/lib/table/src/body/useValueFormat.d.ts +12 -0
- package/lib/table/src/clipboard/index.d.ts +8 -0
- package/lib/table/src/clipboard/setting.d.ts +8 -0
- package/lib/table/src/column-filter/index.d.ts +7 -0
- package/lib/table/src/config/index.d.ts +47 -0
- package/lib/table/src/context/index.d.ts +85 -0
- package/lib/table/src/edit/InputNumber.d.ts +26 -0
- package/lib/table/src/edit/index.d.ts +15 -0
- package/lib/table/src/empty/index.d.ts +3 -0
- package/lib/table/src/expandable/all.d.ts +6 -0
- package/lib/table/src/expandable/index.d.ts +9 -0
- package/lib/table/src/export/define.d.ts +8 -0
- package/lib/table/src/export/index.d.ts +19 -0
- package/lib/table/src/export/setting.d.ts +14 -0
- package/lib/table/src/export/useExport.d.ts +13 -0
- package/lib/table/src/fast-search/index.d.ts +7 -0
- package/lib/table/src/fast-search/setting.d.ts +6 -0
- package/lib/table/src/filter/index.d.ts +8 -0
- package/lib/table/src/filter-sql/index.d.ts +5 -0
- package/lib/table/src/filter-sql/lib/filter_string.d.ts +11 -0
- package/lib/table/src/filter-sql/lib/operations.d.ts +8 -0
- package/lib/table/src/filter-sql/lib/variables_replacement.d.ts +5 -0
- package/lib/table/src/footer/index.d.ts +8 -0
- package/lib/table/src/full-screen/index.d.ts +8 -0
- package/lib/table/src/group-summary/index.d.ts +7 -0
- package/lib/table/src/group-summary/result.d.ts +9 -0
- package/lib/table/src/group-summary/setting.d.ts +6 -0
- package/lib/table/src/header/index.d.ts +10 -0
- package/lib/table/src/hooks/useImperativeMethod.d.ts +49 -0
- package/lib/table/src/hooks/useTableCore.d.ts +93 -0
- package/lib/table/src/hooks/useTableEffect.d.ts +45 -0
- package/lib/table/src/hooks/useTableLayout.d.ts +44 -0
- package/lib/table/src/hooks/useTableMemo.d.ts +48 -0
- package/lib/table/src/hooks/useTableRef.d.ts +111 -0
- package/lib/table/src/hooks/useTableState.d.ts +98 -0
- package/lib/table/src/icon/caretdown.d.ts +3 -0
- package/lib/table/src/icon/caretup.d.ts +3 -0
- package/lib/table/src/icon/filter.d.ts +3 -0
- package/lib/table/src/import/SelectFile.d.ts +8 -0
- package/lib/table/src/import/index.d.ts +8 -0
- package/lib/table/src/import/setting.d.ts +8 -0
- package/lib/table/src/manager/index.d.ts +15 -0
- package/lib/table/src/pager/index.d.ts +9 -0
- package/lib/table/src/print/index.d.ts +8 -0
- package/lib/table/src/reload/index.d.ts +7 -0
- package/lib/table/src/resizable/index.d.ts +7 -0
- package/lib/table/src/select-collection/index.d.ts +8 -0
- package/lib/table/src/select-collection/result.d.ts +8 -0
- package/lib/table/src/selection/all.d.ts +7 -0
- package/lib/table/src/selection/index.d.ts +12 -0
- package/lib/table/src/store/index.d.ts +33 -0
- package/lib/table/src/super-search/index.d.ts +7 -0
- package/lib/table/src/super-search/result.d.ts +6 -0
- package/lib/table/src/table/index.d.ts +5 -0
- package/lib/table/src/table/props.d.ts +299 -0
- package/lib/table/src/table/types.d.ts +444 -0
- package/lib/table/src/toolbox/index.d.ts +18 -0
- package/lib/table/src/utils/index.d.ts +43 -0
- package/lib/table/style/alert.less +34 -0
- package/lib/table/style/body.less +77 -0
- package/lib/table/style/clipboard.less +29 -0
- package/lib/table/style/column-filter.less +94 -0
- package/lib/table/style/empty.less +19 -0
- package/lib/table/style/expandable.less +64 -0
- package/lib/table/style/export.less +26 -0
- package/lib/table/style/fast-search.less +110 -0
- package/lib/table/style/footer.less +33 -0
- package/lib/table/style/full-screen.less +21 -0
- package/lib/table/style/group-summary.less +93 -0
- package/lib/table/style/header.less +207 -0
- package/lib/table/style/import.less +25 -0
- package/lib/table/style/index.less +29 -0
- package/lib/table/style/pager.less +29 -0
- package/lib/table/style/print.less +21 -0
- package/lib/table/style/reload.less +21 -0
- package/lib/table/style/select-collection.less +21 -0
- package/lib/table/style/size.less +88 -0
- package/lib/table/style/super-search.less +102 -0
- package/lib/table/style/table.less +372 -0
- package/lib/table/style/tollbox.less +39 -0
- package/lib/table/style/toper.less +31 -0
- package/lib/table/style/variable.less +48 -0
- package/lib/tabs/index.d.ts +4 -0
- package/lib/tabs/src/tab-pane.d.ts +9 -0
- package/lib/tabs/src/tabs.d.ts +19 -0
- package/lib/tabs/style/index.less +32 -0
- package/lib/tinymce/index.d.ts +3 -0
- package/lib/tinymce/src/Events.d.ts +85 -0
- package/lib/tinymce/src/ScriptLoader.d.ts +13 -0
- package/lib/tinymce/src/TinyMCE.d.ts +9 -0
- package/lib/tinymce/src/Utils.d.ts +20 -0
- package/lib/tinymce/src/components/Editor.d.ts +73 -0
- package/lib/tinymce/src/components/EditorPropTypes.d.ts +18 -0
- package/lib/tinymce/src/index.d.ts +35 -0
- package/lib/tinymce/style/index.less +18 -0
- package/lib/tour/index.d.ts +4 -0
- package/lib/tour/src/Mask.d.ts +17 -0
- package/lib/tour/src/Pause.d.ts +10 -0
- package/lib/tour/src/Tour.d.ts +41 -0
- package/lib/tour/src/TourStep/DefaultPanel.d.ts +4 -0
- package/lib/tour/src/TourStep/index.d.ts +34 -0
- package/lib/tour/src/hooks/useTarget.d.ts +14 -0
- package/lib/tour/src/placements.d.ts +29 -0
- package/lib/tour/src/util.d.ts +5 -0
- package/lib/tour/style/index.less +157 -0
- package/lib/transition/index.d.ts +3 -0
- package/lib/transition/src/tools.d.ts +13 -0
- package/lib/transition/src/transition.d.ts +12 -0
- package/lib/transition/src/types.d.ts +25 -0
- package/lib/transition/src/useTransition.d.ts +2 -0
- package/lib/tree-helper/index.d.ts +3 -0
- package/lib/tree-helper/src/tree-helper.d.ts +22 -0
- package/lib/tree-helper/style/index.less +21 -0
- package/lib/tree-table-helper/index.d.ts +3 -0
- package/lib/tree-table-helper/src/tree-table-helper.d.ts +31 -0
- package/lib/tree-table-helper/style/index.less +24 -0
- package/lib/upload-file/index.d.ts +3 -0
- package/lib/upload-file/src/upload-file.d.ts +35 -0
- package/lib/upload-file/style/index.less +18 -0
- package/lib/upload-img/index.d.ts +3 -0
- package/lib/upload-img/src/cropper-preview.d.ts +32 -0
- package/lib/upload-img/src/upload-img.d.ts +39 -0
- package/lib/upload-img/style/index.less +41 -0
- package/lib/version/index.d.ts +2 -0
- package/package.json +138 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IColumn, ToolMethodRef } from '../table/types';
|
|
3
|
+
export type IOptions = {
|
|
4
|
+
fileName: string;
|
|
5
|
+
fileType: 'xlsx' | 'csv';
|
|
6
|
+
sheetName: string;
|
|
7
|
+
exportType: 'all' | 'selected' | 'custom';
|
|
8
|
+
columns: IColumn[];
|
|
9
|
+
startIndex: number;
|
|
10
|
+
endIndex: number;
|
|
11
|
+
footSummation: boolean;
|
|
12
|
+
useStyle: boolean;
|
|
13
|
+
};
|
|
14
|
+
type ITableExportProps = {
|
|
15
|
+
tableColumns: IColumn[];
|
|
16
|
+
open?: boolean;
|
|
17
|
+
};
|
|
18
|
+
declare const TableExport: React.ForwardRefExoticComponent<ITableExportProps & React.RefAttributes<ToolMethodRef>>;
|
|
19
|
+
export default TableExport;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IColumn } from '../table/types';
|
|
3
|
+
type ISettingProps = {
|
|
4
|
+
defaultValue: {
|
|
5
|
+
fileName: string;
|
|
6
|
+
fileType: string;
|
|
7
|
+
columns: IColumn[];
|
|
8
|
+
useStyle: number;
|
|
9
|
+
};
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
onOk: (data: any) => void;
|
|
12
|
+
};
|
|
13
|
+
declare const Setting: React.FC<ISettingProps>;
|
|
14
|
+
export default Setting;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IColumn, IRecord } from '../table/types';
|
|
2
|
+
import type { IOptions } from './index';
|
|
3
|
+
type IParamsFn1 = (columns: IColumn[], tableData: IRecord[]) => Record<string, number>[];
|
|
4
|
+
type IParamsFn2 = (row: IRecord, rowIndex: number, column: IColumn, columnIndex: number) => string | number;
|
|
5
|
+
declare const useExport: () => {
|
|
6
|
+
exportXLSX: (options: IOptions, dataList: IRecord[], calcSummationValues: IParamsFn1, renderCell: IParamsFn2) => Promise<Blob>;
|
|
7
|
+
exportCSV: (options: IOptions, tableHTML: string) => Blob;
|
|
8
|
+
importXLSX: (options: {
|
|
9
|
+
columns: IColumn[];
|
|
10
|
+
file: Blob;
|
|
11
|
+
}, callback?: ((records: IRecord[]) => void) | undefined) => void;
|
|
12
|
+
};
|
|
13
|
+
export default useExport;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ToolMethodRef } from '../table/types';
|
|
3
|
+
type IFastSearchProps = {
|
|
4
|
+
open?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const FastSearch: React.ForwardRefExoticComponent<IFastSearchProps & React.RefAttributes<ToolMethodRef>>;
|
|
7
|
+
export default FastSearch;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IRecord } from '../table/types';
|
|
2
|
+
export declare const stringify: (string: any, separator?: string) => any;
|
|
3
|
+
export declare const array_format: (array: any) => string;
|
|
4
|
+
export declare const isBracketBalance: (str: any) => boolean;
|
|
5
|
+
export declare const where: <T extends IRecord<any>>(array: T[], query: string, isTree?: boolean) => T[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
operations: (string: any) => any[];
|
|
3
|
+
number_operations: (string: any) => any;
|
|
4
|
+
string_format: (string: any) => any;
|
|
5
|
+
stringify: (string: any, separator?: string) => any;
|
|
6
|
+
array_format: (array: any) => string;
|
|
7
|
+
operation_format: (string: any) => any;
|
|
8
|
+
find_replace: (string: any, find: any, replace: any) => any;
|
|
9
|
+
replace_symbols: (string: any) => any;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ToolMethodRef } from '../table/types';
|
|
3
|
+
type IFullScreenProps = {
|
|
4
|
+
isFullScreen: boolean;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const FullScreen: React.ForwardRefExoticComponent<IFullScreenProps & React.RefAttributes<ToolMethodRef>>;
|
|
8
|
+
export default FullScreen;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ToolMethodRef } from '../table/types';
|
|
3
|
+
type IGroupSummaryProps = {
|
|
4
|
+
open?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const GroupSummary: React.ForwardRefExoticComponent<IGroupSummaryProps & React.RefAttributes<ToolMethodRef>>;
|
|
7
|
+
export default GroupSummary;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IColumn, IFilter, ISorter } from '../table/types';
|
|
3
|
+
type IHeaderProps = {
|
|
4
|
+
tableColumns: IColumn[];
|
|
5
|
+
flattenColumns: IColumn[];
|
|
6
|
+
sorter: ISorter;
|
|
7
|
+
filters: IFilter;
|
|
8
|
+
};
|
|
9
|
+
declare const TableHeader: React.FC<IHeaderProps>;
|
|
10
|
+
export default TableHeader;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ITableRef } from './useTableRef';
|
|
3
|
+
import type { getRowKeyType, ITableProps, IColumn, IFetchParams, IPagination, IRecord, IRowKey, IRule, IValidItem, TableRef, ToolBoxRef, TableBodyRef } from '../table/types';
|
|
4
|
+
type IExtra = {
|
|
5
|
+
getRowKey: getRowKeyType;
|
|
6
|
+
tableProps: ITableProps;
|
|
7
|
+
tableRef: React.MutableRefObject<ITableRef>;
|
|
8
|
+
toolBoxRef: React.RefObject<ToolBoxRef>;
|
|
9
|
+
tableBodyRef: React.RefObject<TableBodyRef>;
|
|
10
|
+
flattenColumns: IColumn[];
|
|
11
|
+
editableColumns: IColumn[];
|
|
12
|
+
pagination: IPagination;
|
|
13
|
+
fetchParams: IFetchParams;
|
|
14
|
+
selectionKeys: IRowKey[];
|
|
15
|
+
rowExpandedKeys: IRowKey[];
|
|
16
|
+
highlightKey: IRowKey;
|
|
17
|
+
isFetch: boolean;
|
|
18
|
+
dataChange: () => void;
|
|
19
|
+
getTableData: () => Promise<void>;
|
|
20
|
+
handleTableData: (records: IRecord[]) => void;
|
|
21
|
+
createTableData: (records: IRecord[]) => void;
|
|
22
|
+
calcTableHeight: () => void;
|
|
23
|
+
scrollXToColumn: (dataIndex: string, index?: number) => void;
|
|
24
|
+
scrollYToRecord: (rowKey: IRowKey, index?: number) => void;
|
|
25
|
+
doFieldValidate: (rules: IRule[], val: unknown, rowKey: IRowKey, columnKey: string) => void;
|
|
26
|
+
setHandleState: (option: ITableRef['handleState']) => void;
|
|
27
|
+
forceUpdate: () => void;
|
|
28
|
+
setSelectionKeysEffect: (rowKeys: IRowKey[]) => void;
|
|
29
|
+
setRowExpandedKeys: (rowKeys: IRowKey[]) => void;
|
|
30
|
+
setHighlightKey: (rowKey: IRowKey) => void;
|
|
31
|
+
setSelectionRows: (records: IRecord[]) => void;
|
|
32
|
+
setOriginColumns: (columns: IColumn[]) => void;
|
|
33
|
+
setHandleChange: (value: boolean) => void;
|
|
34
|
+
getTableLog: () => {
|
|
35
|
+
required: IValidItem[];
|
|
36
|
+
validate: IValidItem[];
|
|
37
|
+
inserted: IRecord[];
|
|
38
|
+
updated: IRecord[];
|
|
39
|
+
removed: IRecord[];
|
|
40
|
+
};
|
|
41
|
+
clearRowSelection: () => void;
|
|
42
|
+
clearRowHighlight: () => void;
|
|
43
|
+
clearTableSorter: () => void;
|
|
44
|
+
clearTableFilter: () => void;
|
|
45
|
+
clearSuperFilters: () => void;
|
|
46
|
+
clearTableLog: () => void;
|
|
47
|
+
};
|
|
48
|
+
declare const useImperativeMethod: <T extends React.ForwardedRef<TableRef>>(ref: T, extra: IExtra) => void;
|
|
49
|
+
export default useImperativeMethod;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ITableRef } from './useTableRef';
|
|
3
|
+
import type { ITableState } from './useTableState';
|
|
4
|
+
import type { getRowKeyType, IColumn, IDerivedRowKey, IFetchParams, IFieldAuthItem, IFilter, IPagination, IRecord, IRowKey, IRule, ISorter, ISuperFilter, ITableProps, IValidItem, TableBodyRef } from '../table/types';
|
|
5
|
+
import type { ComponentSize } from '../../../_utils/types';
|
|
6
|
+
type IExtra = {
|
|
7
|
+
getRowKey: getRowKeyType;
|
|
8
|
+
tableRef: React.MutableRefObject<ITableRef>;
|
|
9
|
+
tableElementRef: React.RefObject<HTMLElement>;
|
|
10
|
+
tableBodyRef: React.RefObject<TableBodyRef>;
|
|
11
|
+
$size: ComponentSize;
|
|
12
|
+
tableColumns: IColumn[];
|
|
13
|
+
tableFullData: IRecord[];
|
|
14
|
+
pagination: IPagination;
|
|
15
|
+
layout: ITableState['layout'];
|
|
16
|
+
filters: IFilter;
|
|
17
|
+
sorter: ISorter;
|
|
18
|
+
superFilters: ISuperFilter[];
|
|
19
|
+
fetchParams: IFetchParams;
|
|
20
|
+
selectionKeys: IRowKey[];
|
|
21
|
+
rowExpandedKeys: IRowKey[];
|
|
22
|
+
highlightKey: IRowKey;
|
|
23
|
+
summationColumns: IColumn[];
|
|
24
|
+
shouldUpdateHeight: boolean;
|
|
25
|
+
isFetch: boolean;
|
|
26
|
+
isTreeTable: boolean;
|
|
27
|
+
isWebPagination: boolean;
|
|
28
|
+
isScrollPagination: boolean;
|
|
29
|
+
isServiceSummation: boolean;
|
|
30
|
+
isGroupSubtotal: boolean;
|
|
31
|
+
doLayout: () => void;
|
|
32
|
+
setTableData: (records: IRecord[]) => void;
|
|
33
|
+
setTableFullData: (records: IRecord[]) => void;
|
|
34
|
+
setTableOriginData: (records: IRecord[]) => void;
|
|
35
|
+
setAllTableData: (records: IRecord[]) => void;
|
|
36
|
+
setDeriveRowKeys: (records: IRecord[]) => void;
|
|
37
|
+
setPagination: <T extends IPagination>(pagination: T | ((prev: T) => T)) => void;
|
|
38
|
+
setSpinning: (value: boolean) => void;
|
|
39
|
+
setSorter: (sorter: ITableState['sorter']) => void;
|
|
40
|
+
setFilters: (sorter: ITableState['filters']) => void;
|
|
41
|
+
setSuperFilters: (options: ITableState['superFilters']) => void;
|
|
42
|
+
setSelectionKeys: (rowKeys: IRowKey[]) => void;
|
|
43
|
+
setRowExpandedKeys: (rowKeys: IRowKey[]) => void;
|
|
44
|
+
setHighlightKey: (rowKey: IRowKey) => void;
|
|
45
|
+
setSelectionRows: (records: IRecord[]) => void;
|
|
46
|
+
setScrollYLoad: (scrollYLoad: boolean) => void;
|
|
47
|
+
setScrollYStore: (option: ITableRef['scrollYStore']) => void;
|
|
48
|
+
setFieldAuth: (key: string, value: IFieldAuthItem) => void;
|
|
49
|
+
setResizeState: (option: ITableRef['resizeState']) => void;
|
|
50
|
+
setSummaries: (option: ITableRef['summaries']) => void;
|
|
51
|
+
setPermission: <T extends ITableState['permission']>(option: T | ((prev: T) => T)) => void;
|
|
52
|
+
setRecordsMap: (key: IRowKey, value: IRecord) => void;
|
|
53
|
+
resetTableScroll: () => void;
|
|
54
|
+
clearElementStore: () => void;
|
|
55
|
+
clearRecordsMap: () => void;
|
|
56
|
+
};
|
|
57
|
+
declare const useTableCore: <T extends ITableProps>(props: T, extra: IExtra) => {
|
|
58
|
+
initialTable: () => void;
|
|
59
|
+
createTableFullData: (list: IRecord[]) => void;
|
|
60
|
+
getTableData: () => Promise<void>;
|
|
61
|
+
handleTableData: (dataList: IRecord[]) => void;
|
|
62
|
+
createTableData: (list: IRecord[]) => void;
|
|
63
|
+
createGroupData: (list: IRecord[]) => IRecord<any>[];
|
|
64
|
+
createSelectionKeys: (rowKeys?: IRowKey[]) => (string | number)[];
|
|
65
|
+
createRowExpandedKeys: (rowKeys?: IRowKey[]) => (string | number)[];
|
|
66
|
+
setSelectionKeysEffect: (selectedKeys: IRowKey[]) => void;
|
|
67
|
+
findParentRowKeys: (deriveRowKeyList: IDerivedRowKey[], key: IRowKey) => (string | number)[];
|
|
68
|
+
getAllChildRowKeys: (deriveRowKeyList: IDerivedRowKey[]) => (string | number)[];
|
|
69
|
+
doFieldValidate: (rules: IRule[], val: unknown, rowKey: IRowKey, columnKey: string) => void;
|
|
70
|
+
getTableLog: () => {
|
|
71
|
+
required: IValidItem[];
|
|
72
|
+
validate: IValidItem[];
|
|
73
|
+
inserted: IRecord<any>[];
|
|
74
|
+
updated: IRecord<any>[];
|
|
75
|
+
removed: IRecord<any>[];
|
|
76
|
+
};
|
|
77
|
+
dataChange: () => void;
|
|
78
|
+
tableChange: (...args: any[]) => void;
|
|
79
|
+
toLastPage: () => void;
|
|
80
|
+
toFirstPage: () => void;
|
|
81
|
+
getPageCount: () => number;
|
|
82
|
+
pagerChangeHandle: ({ current, pageSize }: Omit<IPagination, 'total'>) => void;
|
|
83
|
+
triggerScrollYEvent: (st: number) => void;
|
|
84
|
+
scrollBottomDebouncer: (...args: any[]) => void;
|
|
85
|
+
clearTableSorter: () => void;
|
|
86
|
+
clearTableFilter: () => void;
|
|
87
|
+
clearSuperFilters: () => void;
|
|
88
|
+
clearRowSelection: () => void;
|
|
89
|
+
clearRowHighlight: () => void;
|
|
90
|
+
clearTableLog: () => void;
|
|
91
|
+
destroy: () => void;
|
|
92
|
+
};
|
|
93
|
+
export default useTableCore;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ITableRef } from './useTableRef';
|
|
3
|
+
import type { TableBodyRef, IColumn, IPagination, IRowKey, ITableProps, IMergeCell } from '../table/types';
|
|
4
|
+
import type { ComponentSize } from '../../../_utils/types';
|
|
5
|
+
type IExtra = {
|
|
6
|
+
tableRef: React.MutableRefObject<ITableRef>;
|
|
7
|
+
topElementRef: React.RefObject<HTMLDivElement>;
|
|
8
|
+
tableElementRef: React.RefObject<HTMLDivElement>;
|
|
9
|
+
tableBodyRef: React.RefObject<TableBodyRef>;
|
|
10
|
+
resizableBarRef: React.RefObject<HTMLDivElement>;
|
|
11
|
+
$size: ComponentSize;
|
|
12
|
+
scrollX: boolean;
|
|
13
|
+
pagination: IPagination;
|
|
14
|
+
selectionKeys: IRowKey[];
|
|
15
|
+
rowExpandedKeys: IRowKey[];
|
|
16
|
+
highlightKey: IRowKey;
|
|
17
|
+
summationRows: Record<string, number | string>[];
|
|
18
|
+
showSummary: boolean;
|
|
19
|
+
isWebPagination: boolean;
|
|
20
|
+
isScrollPagination: boolean;
|
|
21
|
+
isTreeTable: boolean;
|
|
22
|
+
toLastPage: () => void;
|
|
23
|
+
toFirstPage: () => void;
|
|
24
|
+
getPageCount: () => number;
|
|
25
|
+
setHandleState: (option: ITableRef['handleState']) => void;
|
|
26
|
+
scrollYToRecord: (rowKey: IRowKey, index?: number) => void;
|
|
27
|
+
setOriginColumns: (columns: IColumn[]) => void;
|
|
28
|
+
setSelectionKeysEffect: (rowKeys: IRowKey[]) => void;
|
|
29
|
+
setRowExpandedKeys: (rowKeys: IRowKey[]) => void;
|
|
30
|
+
setHighlightKey: (rowKey: IRowKey) => void;
|
|
31
|
+
setResizeState: (option: ITableRef['resizeState']) => void;
|
|
32
|
+
setMergeCells: (values: IMergeCell[]) => void;
|
|
33
|
+
setPingRight: (value: boolean) => void;
|
|
34
|
+
setUnMounted: (value: boolean) => void;
|
|
35
|
+
setHandleChange: (value: boolean) => void;
|
|
36
|
+
calcTableHeight: () => void;
|
|
37
|
+
createSelectionKeys: (rowKeys?: IRowKey[]) => IRowKey[];
|
|
38
|
+
createRowExpandedKeys: (rowKeys?: IRowKey[]) => IRowKey[];
|
|
39
|
+
createElementStore: (option: Record<string, HTMLElement>) => void;
|
|
40
|
+
triggerScrollYEvent: (st: number) => void;
|
|
41
|
+
initialTable: () => void;
|
|
42
|
+
destroy: () => void;
|
|
43
|
+
};
|
|
44
|
+
declare const useTableEffect: <T extends ITableProps>(props: T, extra: IExtra) => void;
|
|
45
|
+
export default useTableEffect;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { getRowKeyType } from '../table/types';
|
|
3
|
+
import type { IColumn, IRecord, IRowKey, ITableProps } from '../table/types';
|
|
4
|
+
import type { ITableState } from './useTableState';
|
|
5
|
+
import type { ITableRef } from './useTableRef';
|
|
6
|
+
import type { ComponentSize } from '../../../_utils/types';
|
|
7
|
+
type IExtra = {
|
|
8
|
+
getRowKey: getRowKeyType;
|
|
9
|
+
tableRef: React.MutableRefObject<ITableRef>;
|
|
10
|
+
$size: ComponentSize;
|
|
11
|
+
tableColumns: IColumn[];
|
|
12
|
+
flattenColumns: IColumn[];
|
|
13
|
+
leftFixedColumns: IColumn[];
|
|
14
|
+
layout: ITableState['layout'];
|
|
15
|
+
scrollY: boolean;
|
|
16
|
+
tableData: IRecord[];
|
|
17
|
+
showFooter: boolean;
|
|
18
|
+
showPagination: boolean;
|
|
19
|
+
isWebPagination: boolean;
|
|
20
|
+
isFullScreen: boolean;
|
|
21
|
+
setLayout: <T extends ITableState['layout']>(layout: T | ((prev: T) => T)) => void;
|
|
22
|
+
setScrollX: (scrollX: boolean) => void;
|
|
23
|
+
setScrollY: (scrollY: boolean) => void;
|
|
24
|
+
setElementStore: (key: string, value: HTMLElement) => void;
|
|
25
|
+
setScrollYStore: (option: ITableRef['scrollYStore']) => void;
|
|
26
|
+
setShouldToTop: (value: boolean) => void;
|
|
27
|
+
};
|
|
28
|
+
declare const useTableLayout: <T extends ITableProps>(props: T, extra: IExtra) => {
|
|
29
|
+
createElementStore: (option: Record<string, HTMLElement>) => void;
|
|
30
|
+
tableStyles: React.CSSProperties;
|
|
31
|
+
getSpan: (row: IRecord, column: IColumn, rowIndex: number, columnIndex: number, tableData: IRecord[]) => {
|
|
32
|
+
rowSpan: number;
|
|
33
|
+
colSpan: number;
|
|
34
|
+
};
|
|
35
|
+
getStickyLeft: (dataIndex: string) => number;
|
|
36
|
+
getStickyRight: (dataIndex: string) => number;
|
|
37
|
+
scrollXToColumn: (dataIndex: string, index?: number) => void;
|
|
38
|
+
scrollYToRecord: (rowKey: IRowKey, index?: number) => void;
|
|
39
|
+
rowInViewport: (index: number) => boolean;
|
|
40
|
+
calcTableHeight: () => void;
|
|
41
|
+
resetTableScroll: () => void;
|
|
42
|
+
doLayout: () => void;
|
|
43
|
+
};
|
|
44
|
+
export default useTableLayout;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ITableProps, IColumn, IRowKey, IRecord, getRowKeyType, IFetchParams, ISorter, IFilter, IPagination, ISuperFilter } from '../table/types';
|
|
3
|
+
import type { ITableRef } from './useTableRef';
|
|
4
|
+
type IExtra = {
|
|
5
|
+
getRowKey: getRowKeyType;
|
|
6
|
+
tableRef: React.MutableRefObject<ITableRef>;
|
|
7
|
+
tableFullData: IRecord[];
|
|
8
|
+
tableData: IRecord[];
|
|
9
|
+
sorter: ISorter;
|
|
10
|
+
filters: IFilter;
|
|
11
|
+
superFilters: ISuperFilter[];
|
|
12
|
+
selectionKeys: IRowKey[];
|
|
13
|
+
pagination: IPagination;
|
|
14
|
+
};
|
|
15
|
+
declare const useTableMemo: <T extends ITableProps>(props: T, extra: IExtra) => {
|
|
16
|
+
isFetch: boolean;
|
|
17
|
+
isWebPagination: boolean;
|
|
18
|
+
isScrollPagination: boolean;
|
|
19
|
+
showPagination: boolean;
|
|
20
|
+
shouldUpdateHeight: boolean;
|
|
21
|
+
tableColumns: IColumn[];
|
|
22
|
+
flattenColumns: IColumn[];
|
|
23
|
+
editableColumns: IColumn[];
|
|
24
|
+
summationColumns: IColumn[];
|
|
25
|
+
leftFixedColumns: IColumn[];
|
|
26
|
+
rightFixedColumns: IColumn[];
|
|
27
|
+
treeExpandIndex: string;
|
|
28
|
+
showSummary: boolean;
|
|
29
|
+
showFooter: boolean;
|
|
30
|
+
isHeadGroup: boolean;
|
|
31
|
+
bordered: boolean;
|
|
32
|
+
isHeadSorter: boolean;
|
|
33
|
+
isHeadFilter: boolean;
|
|
34
|
+
isServiceSummation: boolean;
|
|
35
|
+
isSelectCollection: boolean;
|
|
36
|
+
isTableImport: boolean;
|
|
37
|
+
isTableClipboard: boolean;
|
|
38
|
+
isSuperSearch: boolean;
|
|
39
|
+
isFastSearch: boolean;
|
|
40
|
+
isGroupSummary: boolean;
|
|
41
|
+
isGroupSubtotal: boolean;
|
|
42
|
+
isDragMergeCell: boolean;
|
|
43
|
+
isTreeTable: boolean;
|
|
44
|
+
isTableEmpty: boolean;
|
|
45
|
+
summationRows: Record<string, string | number>[];
|
|
46
|
+
fetchParams: IFetchParams;
|
|
47
|
+
};
|
|
48
|
+
export default useTableMemo;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Store from '../store';
|
|
3
|
+
import type { getRowKeyType, IColumn, IDerivedRowKey, IFieldAuthItem, IMergeCell, InsertMode, IRecord, IRowKey, ITableProps } from '../table/types';
|
|
4
|
+
import type { ComponentSize, Nullable } from '../../../_utils/types';
|
|
5
|
+
export type ITableRef = {
|
|
6
|
+
uid: string;
|
|
7
|
+
elementStore: Record<string, Nullable<HTMLElement>>;
|
|
8
|
+
originColumns: IColumn[];
|
|
9
|
+
tableFullData: IRecord[];
|
|
10
|
+
tableOriginData: IRecord[];
|
|
11
|
+
allTableData: IRecord[];
|
|
12
|
+
allRowKeys: IRowKey[];
|
|
13
|
+
deriveRowKeys: IDerivedRowKey[];
|
|
14
|
+
flattenRowKeys: IRowKey[];
|
|
15
|
+
invalidRowKeys: IRowKey[];
|
|
16
|
+
fieldAuth: Record<string, IFieldAuthItem>;
|
|
17
|
+
mergeCells: IMergeCell[];
|
|
18
|
+
scrollYStore: {
|
|
19
|
+
startIndex: number;
|
|
20
|
+
endIndex: number;
|
|
21
|
+
offsetSize: number;
|
|
22
|
+
visibleSize: number;
|
|
23
|
+
rowHeight: number;
|
|
24
|
+
};
|
|
25
|
+
store: Store;
|
|
26
|
+
resizeState: {
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
winHeight: number;
|
|
30
|
+
};
|
|
31
|
+
handleState: {
|
|
32
|
+
insert: InsertMode | null;
|
|
33
|
+
remove: boolean;
|
|
34
|
+
};
|
|
35
|
+
summaries: Record<string, number>;
|
|
36
|
+
treeTable: boolean;
|
|
37
|
+
scrollYLoad: boolean;
|
|
38
|
+
shouldToTop: boolean;
|
|
39
|
+
selectionRows: IRecord[];
|
|
40
|
+
recordsMap: Map<IRowKey, IRecord>;
|
|
41
|
+
unMounted: boolean;
|
|
42
|
+
isHandleChange: boolean;
|
|
43
|
+
isIE: boolean;
|
|
44
|
+
};
|
|
45
|
+
type IExtra = {
|
|
46
|
+
getRowKey: getRowKeyType;
|
|
47
|
+
$size: ComponentSize;
|
|
48
|
+
};
|
|
49
|
+
declare const useTableRef: <T extends ITableProps>(props: T, { getRowKey, $size }: IExtra) => {
|
|
50
|
+
setElementStore: (key: string, value: HTMLElement) => void;
|
|
51
|
+
setOriginColumns: (columns: IColumn[]) => void;
|
|
52
|
+
setTableFullData: (records: IRecord[]) => void;
|
|
53
|
+
setTableOriginData: (records: IRecord[]) => void;
|
|
54
|
+
setAllTableData: (records: IRecord[]) => void;
|
|
55
|
+
setDeriveRowKeys: (records: IRecord[]) => void;
|
|
56
|
+
setInvalidRowKeys: (rowKeys: IRowKey[]) => void;
|
|
57
|
+
setFieldAuth: (key: string, value: IFieldAuthItem) => void;
|
|
58
|
+
setMergeCells: (values: IMergeCell[]) => void;
|
|
59
|
+
setScrollYStore: (option: ITableRef['scrollYStore']) => void;
|
|
60
|
+
setResizeState: (option: ITableRef['resizeState']) => void;
|
|
61
|
+
setHandleState: (option: ITableRef['handleState']) => void;
|
|
62
|
+
setSummaries: (option: ITableRef['summaries']) => void;
|
|
63
|
+
setScrollYLoad: (value: boolean) => void;
|
|
64
|
+
setShouldToTop: (value: boolean) => void;
|
|
65
|
+
setSelectionRows: (selectKeys: IRecord[]) => void;
|
|
66
|
+
setRecordsMap: (key: IRowKey, value: IRecord) => void;
|
|
67
|
+
setUnMounted: (value: boolean) => void;
|
|
68
|
+
setHandleChange: (value: boolean) => void;
|
|
69
|
+
clearElementStore: () => void;
|
|
70
|
+
clearRecordsMap: () => void;
|
|
71
|
+
uid: string;
|
|
72
|
+
elementStore: Record<string, Nullable<HTMLElement>>;
|
|
73
|
+
originColumns: IColumn[];
|
|
74
|
+
tableFullData: IRecord[];
|
|
75
|
+
tableOriginData: IRecord[];
|
|
76
|
+
allTableData: IRecord[];
|
|
77
|
+
allRowKeys: IRowKey[];
|
|
78
|
+
deriveRowKeys: IDerivedRowKey[];
|
|
79
|
+
flattenRowKeys: IRowKey[];
|
|
80
|
+
invalidRowKeys: IRowKey[];
|
|
81
|
+
fieldAuth: Record<string, IFieldAuthItem>;
|
|
82
|
+
mergeCells: IMergeCell[];
|
|
83
|
+
scrollYStore: {
|
|
84
|
+
startIndex: number;
|
|
85
|
+
endIndex: number;
|
|
86
|
+
offsetSize: number;
|
|
87
|
+
visibleSize: number;
|
|
88
|
+
rowHeight: number;
|
|
89
|
+
};
|
|
90
|
+
store: Store;
|
|
91
|
+
resizeState: {
|
|
92
|
+
width: number;
|
|
93
|
+
height: number;
|
|
94
|
+
winHeight: number;
|
|
95
|
+
};
|
|
96
|
+
handleState: {
|
|
97
|
+
insert: InsertMode | null;
|
|
98
|
+
remove: boolean;
|
|
99
|
+
};
|
|
100
|
+
summaries: Record<string, number>;
|
|
101
|
+
treeTable: boolean;
|
|
102
|
+
scrollYLoad: boolean;
|
|
103
|
+
shouldToTop: boolean;
|
|
104
|
+
selectionRows: IRecord[];
|
|
105
|
+
recordsMap: Map<IRowKey, IRecord>;
|
|
106
|
+
unMounted: boolean;
|
|
107
|
+
isHandleChange: boolean;
|
|
108
|
+
isIE: boolean;
|
|
109
|
+
tableRef: React.MutableRefObject<ITableRef>;
|
|
110
|
+
};
|
|
111
|
+
export default useTableRef;
|