@jiaozhiye/qm-design-react 1.7.32 → 1.7.33
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/lib/_utils/isMobile.d.ts +1 -0
- package/lib/_utils/util.d.ts +4 -1
- package/lib/form/src/types.d.ts +2 -0
- package/lib/hooks/useMergedState.d.ts +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/lang/en.js +1 -1
- package/lib/locale/lang/zh-cn.js +1 -1
- package/lib/scrollbar/src/scrollbar.d.ts +1 -1
- package/lib/style/index.css +1 -1
- package/lib/style/index.less +1 -1
- package/lib/table/src/context/index.d.ts +1 -0
- package/lib/table/src/hooks/useTableMemo.d.ts +2 -1
- package/lib/table/src/hooks/useTableState.d.ts +1 -0
- package/lib/table/src/utils/index.d.ts +1 -1
- package/package.json +1 -1
package/lib/locale/lang/en.js
CHANGED
package/lib/locale/lang/zh-cn.js
CHANGED
package/lib/style/index.css
CHANGED
package/lib/style/index.less
CHANGED
|
@@ -46,6 +46,7 @@ export type ITableContext = {
|
|
|
46
46
|
getTableData: () => Promise<void>;
|
|
47
47
|
setElementStore: (key: string, value: HTMLElement) => void;
|
|
48
48
|
createTableFullData: (records: IRecord[]) => void;
|
|
49
|
+
updateTableData: () => void;
|
|
49
50
|
setSorter: (value: ITableState['sorter']) => void;
|
|
50
51
|
setFilters: (value: ITableState['filters']) => void;
|
|
51
52
|
setSuperFilters: (options: ITableState['superFilters']) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ITableProps, IColumn, IRecord, getRowKeyType, IFetchParams, ISorter, IFilter, IPagination, ISuperFilter } from '../table/types';
|
|
2
|
+
import type { ITableProps, IColumn, IRowKey, IRecord, getRowKeyType, IFetchParams, ISorter, IFilter, IPagination, ISuperFilter } from '../table/types';
|
|
3
3
|
import type { ITableRef } from './useTableRef';
|
|
4
4
|
type IExtra = {
|
|
5
5
|
getRowKey: getRowKeyType;
|
|
@@ -9,6 +9,7 @@ type IExtra = {
|
|
|
9
9
|
sorter: ISorter;
|
|
10
10
|
filters: IFilter;
|
|
11
11
|
superFilters: ISuperFilter[];
|
|
12
|
+
selectionKeys: IRowKey[];
|
|
12
13
|
pagination: IPagination;
|
|
13
14
|
};
|
|
14
15
|
declare const useTableMemo: <T extends ITableProps>(props: T, extra: IExtra) => {
|
|
@@ -93,5 +93,6 @@ declare const useTableState: <T extends ITableProps>(props: T) => {
|
|
|
93
93
|
setPingRight: React.Dispatch<React.SetStateAction<boolean>>;
|
|
94
94
|
isFullScreen: boolean;
|
|
95
95
|
setFullScreen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
96
|
+
updateTableData: () => void;
|
|
96
97
|
};
|
|
97
98
|
export default useTableState;
|
|
@@ -26,7 +26,7 @@ export declare const getCellValue: (record: IRecord, dataIndex: string) => any;
|
|
|
26
26
|
export declare const setCellValue: (record: IRecord, dataIndex: string, val: unknown, precision?: number) => void;
|
|
27
27
|
export declare const getSplitValue: (record: IRecord, key: string) => string;
|
|
28
28
|
export declare const setSplitValue: (record: IRecord, key: string, val: string, precision?: number) => void;
|
|
29
|
-
export declare const formatNumber: (value:
|
|
29
|
+
export declare const formatNumber: (value: string | number) => string;
|
|
30
30
|
export declare const validateNumber: (val: string) => boolean;
|
|
31
31
|
export declare const stringToNumber: (input: string) => number | '';
|
|
32
32
|
export declare const getDate: (dateString: string | undefined, format: string) => dayjs.Dayjs | null;
|