es-grid-template 0.0.2 → 0.0.4

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/type.d.ts CHANGED
@@ -1,6 +1,8 @@
1
+ import * as React from 'react';
1
2
  import { TableProps } from "ui-rc";
2
3
  import { ColumnType as RcColumnType, ColumnGroupType as RcColumnGroupType } from "ui-rc/dist/table";
3
4
  import { ReactElement, ReactNode } from "react";
5
+ import { ItemType } from "antd/es/menu/interface";
4
6
  type IColumnType = "number" | "time" | "date" | "week" | "month" | "file" | "quarter" | "year" | "datetime" | "string" | "boolean" | "checkbox" | "color" | null | undefined;
5
7
  export interface ColumnGroupType<RecordType> extends Omit<RcColumnGroupType<RecordType>, 'children'> {
6
8
  children: ColumnsType<RecordType>;
@@ -32,4 +34,12 @@ export type IFormat = {
32
34
  monthFormat?: string;
33
35
  yearFormat?: string;
34
36
  };
37
+ export type ContextInfo<RecordType> = {
38
+ rowInfo: {
39
+ rowData: RecordType | null;
40
+ };
41
+ event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
42
+ item: ItemType;
43
+ };
44
+ export type AnyObject = Record<PropertyKey, any>;
35
45
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-grid-template",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "React",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -1,3 +0,0 @@
1
- import GridTable from './GridTable';
2
- export type { ColumnGroupType, ColumnType, ColumnsType } from './../../type';
3
- export default GridTable;