@scvzerng/element-ui-ag-grid-vue2 0.0.37 → 0.0.39

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.
@@ -14832,6 +14832,12 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
14832
14832
  startEditing: () => void;
14833
14833
  stopEditing: () => void;
14834
14834
  deselectAll: (mode?: SelectAllMode, source?: SelectionEventSourceType) => void;
14835
+ /**
14836
+ * 暴露 gridApi 让业务代码能调 ag-grid 高级 API
14837
+ * - 例如 master/detail: api.expandAll() / api.collapseAll() / api.updateGridOptions()
14838
+ * - 与 vue3 版保持一致
14839
+ */
14840
+ gridApi: any;
14835
14841
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
14836
14842
  pageSize: number;
14837
14843
  enableCursorPage: boolean;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,7 @@
1
1
  import type { PluginObject } from 'vue';
2
2
  import type { ColDef, ColGroupDef, ICellRendererParams } from 'ag-grid-community';
3
3
  import type { RestrictedAgGridOptions } from '@scvzerng/ag-grid-core';
4
+ import './expand-detail-mount';
4
5
  import 'ag-grid-community/styles/ag-grid.css';
5
6
  import 'ag-grid-community/styles/ag-theme-alpine.css';
6
7
  import "@scvzerng/vue2-context-menu/lib/vue2-context-menu.css";
@@ -694,6 +694,8 @@ export declare const useGrid: <T = any>(props: GridProps) => {
694
694
  step: "map" | "everything";
695
695
  }) => void) | undefined;
696
696
  getColumns: () => import("@scvzerng/ag-grid-core").SpanColumn[];
697
+ setSelected?: ((row: GridRow<any>, selected: boolean, source?: import("ag-grid-community").SelectionEventSourceType) => void) | undefined;
698
+ isRowSelected?: ((row: GridRow<any>) => boolean) | undefined;
697
699
  } | undefined;
698
700
  createRow: (data: T) => ActualRow<T>;
699
701
  setRows: (rows: (ActualRow<T> | EditableRow<T>)[]) => import("@scvzerng/ag-grid-core").GridDataCache<T>;
@@ -717,6 +719,8 @@ export declare const useGrid: <T = any>(props: GridProps) => {
717
719
  step: "map" | "everything";
718
720
  }) => void) | undefined;
719
721
  getColumns: () => import("@scvzerng/ag-grid-core").SpanColumn[];
722
+ setSelected?: ((row: GridRow<any>, selected: boolean, source?: import("ag-grid-community").SelectionEventSourceType) => void) | undefined;
723
+ isRowSelected?: ((row: GridRow<any>) => boolean) | undefined;
720
724
  } | undefined;
721
725
  createRow: (data: T) => ActualRow<T>;
722
726
  setRows: (rows: (ActualRow<T> | EditableRow<T>)[]) => import("@scvzerng/ag-grid-core").GridDataCache<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scvzerng/element-ui-ag-grid-vue2",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "scripts": {