arthub-table 0.2.2-next.3 → 0.2.2

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.
@@ -251,6 +251,12 @@ export interface DataGridCallbacks {
251
251
  onColumnDragReorder?: (draggedColIds: string[], targetColId: string, insertBefore: boolean) => void;
252
252
  /** 列右键菜单 */
253
253
  onColumnContextMenu?: (info: any) => void;
254
+ /** 冻结列总宽度超过表格展示宽度时触发 */
255
+ onFrozenColumnOverflow?: (info: {
256
+ fixedLeftWidth: number;
257
+ fixedRightWidth: number;
258
+ tableWidth: number;
259
+ }) => void;
254
260
  /** 行右键菜单:行区域右键时触发,传递行数据、列信息和鼠标屏幕坐标 */
255
261
  onRowContextMenu?: (info: any) => void;
256
262
  /** 新增行 */
@@ -419,6 +419,12 @@ export interface DataGridOptions {
419
419
  }) => void;
420
420
  onColumnDragReorder?: (draggedColIds: string[], targetColId: string, insertBefore: boolean) => void;
421
421
  onColumnContextMenu?: (info: ColumnContextMenuInfo) => void;
422
+ /** 冻结列总宽度超过表格展示宽度时触发的回调 */
423
+ onFrozenColumnOverflow?: (info: {
424
+ fixedLeftWidth: number;
425
+ fixedRightWidth: number;
426
+ tableWidth: number;
427
+ }) => void;
422
428
  /** 行右键菜单回调:行区域右键时触发 */
423
429
  onRowContextMenu?: (info: RowContextMenuInfo) => void;
424
430
  onModuleOverflowClick?: (modules: any[], rowData: any, rowIndex: number, colIndex: number) => void;
@@ -890,6 +896,12 @@ declare class DataGrid {
890
896
  }) => void;
891
897
  onColumnDragReorder?: (draggedColIds: string[], targetColId: string, insertBefore: boolean) => void;
892
898
  onColumnContextMenu?: (info: ColumnContextMenuInfo) => void;
899
+ /** 冻结列总宽度超过表格展示宽度时触发的回调 */
900
+ onFrozenColumnOverflow?: (info: {
901
+ fixedLeftWidth: number;
902
+ fixedRightWidth: number;
903
+ tableWidth: number;
904
+ }) => void;
893
905
  /** 行右键菜单回调 */
894
906
  onRowContextMenu?: (info: RowContextMenuInfo) => void;
895
907
  onModuleOverflowClick?: (modules: any[], rowData: any, rowIndex: number, colIndex: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arthub-table",
3
- "version": "0.2.2-next.3",
3
+ "version": "0.2.2",
4
4
  "description": "High-performance canvas-based table/grid component for Vue 3 with TypeScript support, featuring virtual scrolling, cell viewers, grouped rows, and nested grids.",
5
5
  "main": "dist/arthub-table.common.js",
6
6
  "module": "dist/arthub-table.umd.min.js",