@jiaozhiye/qm-design-react 1.11.26 → 1.12.1

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.
@@ -7,6 +7,7 @@ type ICellProps = {
7
7
  columnIndex: number;
8
8
  rowKey: IRowKey;
9
9
  showTitle?: boolean;
10
+ onUnmount?: () => void;
10
11
  };
11
12
  declare const Cell: React.ForwardRefExoticComponent<ICellProps & React.RefAttributes<any>>;
12
13
  export default Cell;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { IColumn, IRecord, IRowKey, IEditerReturn } from '../table/types';
3
+ type IProps = {
4
+ column: IColumn;
5
+ row: IRecord;
6
+ rowKey: IRowKey;
7
+ columnKey: string;
8
+ options: Partial<IEditerReturn>;
9
+ };
10
+ declare const CheckboxCell: React.FC<IProps>;
11
+ export default CheckboxCell;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { IColumn, IRecord, IRowKey, IEditerReturn } from '../table/types';
3
+ type IProps = {
4
+ column: IColumn;
5
+ row: IRecord;
6
+ rowKey: IRowKey;
7
+ columnKey: string;
8
+ options: Partial<IEditerReturn>;
9
+ };
10
+ declare const CustomCell: React.FC<IProps>;
11
+ export default CustomCell;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { IColumn, IRecord, IRowKey, IEditerReturn } from '../table/types';
3
+ import type { IDateType } from '../../../form/src/types';
4
+ type IProps = {
5
+ column: IColumn;
6
+ row: IRecord;
7
+ rowKey: IRowKey;
8
+ columnKey: string;
9
+ options: Partial<IEditerReturn>;
10
+ dateType: IDateType;
11
+ };
12
+ declare const DateCell: React.FC<IProps>;
13
+ export default DateCell;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { IColumn, IRecord, IRowKey, IEditerReturn } from '../table/types';
3
+ type IProps = {
4
+ column: IColumn;
5
+ row: IRecord;
6
+ rowKey: IRowKey;
7
+ columnKey: string;
8
+ options: Partial<IEditerReturn>;
9
+ };
10
+ declare const NumberCell: React.ForwardRefExoticComponent<IProps & React.RefAttributes<any>>;
11
+ export default NumberCell;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { IColumn, IRecord, IRowKey, IEditerReturn } from '../table/types';
3
+ type IProps = {
4
+ column: IColumn;
5
+ row: IRecord;
6
+ rowKey: IRowKey;
7
+ columnKey: string;
8
+ options: Partial<IEditerReturn>;
9
+ };
10
+ declare const SearchHelperCell: React.ForwardRefExoticComponent<IProps & React.RefAttributes<any>>;
11
+ export default SearchHelperCell;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { IColumn, IRecord, IRowKey, IEditerReturn } from '../table/types';
3
+ type IProps = {
4
+ column: IColumn;
5
+ row: IRecord;
6
+ rowKey: IRowKey;
7
+ columnKey: string;
8
+ options: Partial<IEditerReturn>;
9
+ };
10
+ declare const SearchHelperMultipleCell: React.FC<IProps>;
11
+ export default SearchHelperMultipleCell;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { IColumn, IRecord, IRowKey, IEditerReturn } from '../table/types';
3
+ type IProps = {
4
+ column: IColumn;
5
+ row: IRecord;
6
+ rowKey: IRowKey;
7
+ columnKey: string;
8
+ options: Partial<IEditerReturn>;
9
+ isMultiple?: boolean;
10
+ };
11
+ declare const SelectCell: React.FC<IProps>;
12
+ export default SelectCell;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { IColumn, IRecord, IRowKey, IEditerReturn } from '../table/types';
3
+ type IProps = {
4
+ column: IColumn;
5
+ row: IRecord;
6
+ rowKey: IRowKey;
7
+ columnKey: string;
8
+ options: Partial<IEditerReturn>;
9
+ };
10
+ declare const SwitchCell: React.FC<IProps>;
11
+ export default SwitchCell;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { IColumn, IRecord, IRowKey, IEditerReturn } from '../table/types';
3
+ type IProps = {
4
+ column: IColumn;
5
+ row: IRecord;
6
+ rowKey: IRowKey;
7
+ columnKey: string;
8
+ options: Partial<IEditerReturn>;
9
+ isTextArea?: boolean;
10
+ };
11
+ declare const TextCell: React.ForwardRefExoticComponent<IProps & React.RefAttributes<any>>;
12
+ export default TextCell;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { IColumn, IRecord, IRowKey, IEditerReturn } from '../table/types';
3
+ type IProps = {
4
+ column: IColumn;
5
+ row: IRecord;
6
+ rowKey: IRowKey;
7
+ columnKey: string;
8
+ options: Partial<IEditerReturn>;
9
+ };
10
+ declare const TimeCell: React.FC<IProps>;
11
+ export default TimeCell;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { IColumn, IRecord, IRowKey, IEditerReturn } from '../table/types';
3
+ type IProps = {
4
+ column: IColumn;
5
+ row: IRecord;
6
+ rowKey: IRowKey;
7
+ columnKey: string;
8
+ options: Partial<IEditerReturn>;
9
+ };
10
+ declare const TreeHelperCell: React.ForwardRefExoticComponent<IProps & React.RefAttributes<any>>;
11
+ export default TreeHelperCell;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { IColumn, IRecord, IRowKey, IEditerReturn } from '../table/types';
3
+ type IProps = {
4
+ column: IColumn;
5
+ row: IRecord;
6
+ rowKey: IRowKey;
7
+ columnKey: string;
8
+ options: Partial<IEditerReturn>;
9
+ };
10
+ declare const TreeHelperMultipleCell: React.FC<IProps>;
11
+ export default TreeHelperMultipleCell;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { IRecord, IRowKey } from '../table/types';
3
+ export type IEditableContext = {
4
+ dataKey: string;
5
+ visible: boolean;
6
+ matching: boolean;
7
+ setVisible: (visible: boolean) => void;
8
+ setMatching: (matching: boolean) => void;
9
+ doFieldUpdate: (record: IRecord, rowKey: IRowKey, columnKey: string) => void;
10
+ cellValueChange: () => void;
11
+ };
12
+ declare const EditableContext: React.Context<IEditableContext>;
13
+ export default EditableContext;
@@ -1,3 +1,11 @@
1
1
  import React from 'react';
2
- declare const FilterContext: React.Context<Record<string, any>>;
2
+ import type { IFilter } from '../table/types';
3
+ import type { ValueOf } from '../../../_utils/types';
4
+ export type IFilterContext = {
5
+ dataKey: string;
6
+ inputCache: React.MutableRefObject<string>;
7
+ filterValue: ValueOf<IFilter>;
8
+ onChange: (value: IFilter, close?: boolean) => void;
9
+ };
10
+ declare const FilterContext: React.Context<IFilterContext>;
3
11
  export default FilterContext;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiaozhiye/qm-design-react",
3
- "version": "1.11.26",
3
+ "version": "1.12.1",
4
4
  "description": "A Component Library for React",
5
5
  "keywords": [
6
6
  "React",