es-grid-template 1.2.1 → 1.2.3
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/assets/index.css +36 -17
- package/assets/index.scss +1064 -1006
- package/es/grid-component/GridStyle.js +1 -1
- package/es/grid-component/InternalTable.d.ts +1 -0
- package/es/grid-component/InternalTable.js +2 -1
- package/es/grid-component/TableGrid.js +6 -15
- package/es/grid-component/hooks/content/HeaderContent.js +6 -7
- package/es/grid-component/hooks/useColumns.js +10 -2
- package/es/grid-component/hooks/utils.d.ts +2 -22
- package/es/grid-component/hooks/utils.js +2 -410
- package/es/grid-component/styles.scss +63 -5
- package/es/grid-component/table/Grid.js +17 -1
- package/es/grid-component/table/GridEdit.js +384 -159
- package/es/grid-component/type.d.ts +2 -1
- package/lib/grid-component/GridStyle.js +1 -1
- package/lib/grid-component/InternalTable.d.ts +1 -0
- package/lib/grid-component/InternalTable.js +2 -1
- package/lib/grid-component/TableGrid.js +7 -15
- package/lib/grid-component/hooks/content/HeaderContent.js +6 -7
- package/lib/grid-component/hooks/useColumns.js +10 -2
- package/lib/grid-component/hooks/utils.d.ts +2 -22
- package/lib/grid-component/hooks/utils.js +3 -419
- package/lib/grid-component/styles.scss +63 -5
- package/lib/grid-component/table/Grid.js +17 -1
- package/lib/grid-component/table/GridEdit.js +383 -158
- package/lib/grid-component/type.d.ts +2 -1
- package/package.json +2 -2
|
@@ -82,7 +82,7 @@ export type ToolbarClick = {
|
|
|
82
82
|
item: any;
|
|
83
83
|
column: any;
|
|
84
84
|
};
|
|
85
|
-
export type ColumnType<RecordType> = Omit<RcColumnType<RecordType>, 'headerTemplate'> & {
|
|
85
|
+
export type ColumnType<RecordType> = Omit<RcColumnType<RecordType>, 'headerTemplate' | 'title'> & {
|
|
86
86
|
field?: string;
|
|
87
87
|
key?: any;
|
|
88
88
|
type?: IColumnType;
|
|
@@ -178,6 +178,7 @@ export interface TableProps<RecordType> extends Omit<RcTableProps<RecordType>, '
|
|
|
178
178
|
onDataChange?: (data: RecordType[]) => void;
|
|
179
179
|
defaultValue?: AnyObject | (() => AnyObject);
|
|
180
180
|
summary?: boolean | ((data: readonly RecordType[]) => React.ReactNode);
|
|
181
|
+
showEmptyText?: boolean;
|
|
181
182
|
}
|
|
182
183
|
export interface TableEditProps<RecordType = AnyObject> extends Omit<TableProps<RecordType>, 'columns'> {
|
|
183
184
|
columns: ColumnsTable<RecordType>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-grid-template",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "es-grid-template",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"rc-checkbox": "^3.5.0",
|
|
61
61
|
"rc-dropdown": "^4.2.1",
|
|
62
62
|
"rc-field-form": "^2.6.0",
|
|
63
|
-
"rc-master-ui": "^1.1.
|
|
63
|
+
"rc-master-ui": "^1.1.21",
|
|
64
64
|
"rc-select": "^14.16.3",
|
|
65
65
|
"rc-tooltip": "^6.3.0",
|
|
66
66
|
"rc-tree": "^5.10.1",
|