@jiaozhiye/qm-design-react 1.7.28 → 1.7.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.
@@ -8,5 +8,8 @@ type ICellEditProps = {
8
8
  clicked: [IRowKey, string] | [];
9
9
  text: string | number;
10
10
  };
11
- declare const CellEdit: React.FC<ICellEditProps>;
11
+ type CellEditRef = {
12
+ focus: () => void;
13
+ };
14
+ declare const CellEdit: React.ForwardRefExoticComponent<ICellEditProps & React.RefAttributes<CellEditRef>>;
12
15
  export default CellEdit;
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
2
  import type { ITableRef } from './useTableRef';
3
- import type { getRowKeyType, ITableProps, IColumn, IFetchParams, IPagination, IRecord, IRowKey, IRule, IValidItem, TableRef, ToolBoxRef } from '../table/types';
3
+ import type { getRowKeyType, ITableProps, IColumn, IFetchParams, IPagination, IRecord, IRowKey, IRule, IValidItem, TableRef, ToolBoxRef, TableBodyRef } from '../table/types';
4
4
  type IExtra = {
5
5
  getRowKey: getRowKeyType;
6
6
  tableProps: ITableProps;
7
7
  tableRef: React.MutableRefObject<ITableRef>;
8
8
  toolBoxRef: React.RefObject<ToolBoxRef>;
9
+ tableBodyRef: React.RefObject<TableBodyRef>;
9
10
  flattenColumns: IColumn[];
10
11
  editableColumns: IColumn[];
11
12
  pagination: IPagination;
@@ -409,6 +409,7 @@ export type TableRef = {
409
409
  GET_FETCH_PARAMS: () => IFetchParams;
410
410
  CLEAR_TABLE_DATA: () => void;
411
411
  CLEAR_LOG: () => void;
412
+ CREATE_FOCUS: (rowKey: IRowKey, dataIndex: string) => void;
412
413
  FORCE_UPDATE: () => void;
413
414
  DO_EXPORT: () => void;
414
415
  SCROLL_TO_RECORD: (rowKey: IRowKey) => void;
@@ -431,6 +432,7 @@ export type TableRef = {
431
432
  export type TableBodyRef = {
432
433
  renderCellTitle: (column: IColumn, row: IRecord, rowIndex: number, columnIndex: number) => string;
433
434
  setClickedValues: (clicked: IClicked) => void;
435
+ createFocus: (rowKey: IRowKey, dataIndex: string) => void;
434
436
  forceUpdate: () => void;
435
437
  };
436
438
  export type ToolBoxRef = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiaozhiye/qm-design-react",
3
- "version": "1.7.28",
3
+ "version": "1.7.29",
4
4
  "description": "A Component Library for React",
5
5
  "keywords": [
6
6
  "React",
@@ -118,7 +118,7 @@
118
118
  "less-loader": "^11.1.0",
119
119
  "lint-staged": "^10.5.4",
120
120
  "mockjs": "^1.1.0",
121
- "prettier": "^2.7.1",
121
+ "prettier": "^2.8.8",
122
122
  "react": "17.0.2",
123
123
  "react-dom": "17.0.2",
124
124
  "rimraf": "^3.0.2",