@scvzerng/element-ui-ag-grid-vue2 0.0.12 → 0.0.14

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.
@@ -1,6 +1,5 @@
1
- import type { GridOptions, GetContextMenuItemsParams } from 'ag-grid-community';
1
+ import type { GridOptions, GetContextMenuItemsParams, RowSelectionOptions } from 'ag-grid-community';
2
2
  import { ContextMenuItem } from '../../index';
3
- import { RowSelectionOptions } from 'ag-grid-community/dist/types/src/entities/gridOptions';
4
3
  /**
5
4
  * 受限的ag-grid-options 用于暴露对外的ag-grid 选项 因为使用的社区版 需要把部分企业版的选项去掉
6
5
  * 同时对于部分自定义模块替换商业模块的功能支持不是很足和实现不一致也需要覆盖和修改其类型
@@ -65,6 +65,7 @@ export declare class ActualRow<T> implements GridRow<T> {
65
65
  getId(): string;
66
66
  isEditing(): this is EditableRow<T>;
67
67
  getData(): T;
68
+ scrollIntoView(): void;
68
69
  buildSpan(): void;
69
70
  /**
70
71
  * 把嵌套的数组结构扁平化以便表格渲染对应的行数
@@ -46,6 +46,7 @@ export declare class EditableRow<T = any> implements GridRow<T> {
46
46
  * @param persistentCallback
47
47
  */
48
48
  persistent(persistentCallback: (row: T) => Promise<T>): Promise<this>;
49
+ scrollIntoView(): void;
49
50
  getRowSpans(): RowSpans;
50
51
  setData(data: T): void;
51
52
  buildSpan(): void;
@@ -19,6 +19,10 @@ export interface GridRow<T> {
19
19
  * 构建行span信息
20
20
  */
21
21
  buildSpan(): void;
22
+ /**
23
+ * 滚动行到可视区域
24
+ */
25
+ scrollIntoView(): void;
22
26
  /**
23
27
  * 是否匹配
24
28
  * @param rowNode
@@ -40,6 +40,7 @@ export declare class ProjectionRow<T> implements GridRow<T> {
40
40
  getCell(column: Column): import("./CellValue").CellValue | undefined;
41
41
  isTransient(): this is EditableRow<T>;
42
42
  setData(data: T): void;
43
+ scrollIntoView(): void;
43
44
  buildSpan(): void;
44
45
  match(rowNode: IRowNode<GridRow<T>>): boolean;
45
46
  getHostObject(params: ICustomCellRendererParams<GridRow<any>, any>): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scvzerng/element-ui-ag-grid-vue2",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "scripts": {