@scvzerng/element-ui-ag-grid-vue2 0.0.28 → 0.0.30

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.
@@ -14808,6 +14808,7 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14808
14808
  declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
14809
14809
  pageSize: number;
14810
14810
  tools: () => string[];
14811
+ gridOptions: () => Options;
14811
14812
  }>, {
14812
14813
  setFooterData: (data: any[]) => void;
14813
14814
  updateGridOptions: (gridOptions: GridOptions) => void;
@@ -14823,7 +14824,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
14823
14824
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
14824
14825
  pageSize: number;
14825
14826
  tools: () => string[];
14827
+ gridOptions: () => Options;
14826
14828
  }>>>, {
14829
+ gridOptions: Options;
14827
14830
  pageSize: number;
14828
14831
  tools: ("search" | "refresh" | "setting")[];
14829
14832
  }>;
@@ -18,7 +18,11 @@ export type GridProps = {
18
18
  pageSize: number;
19
19
  tools: ('search' | 'refresh' | 'setting')[];
20
20
  searches: Searchable[];
21
- gridOptions: Options;
21
+ /**
22
+ * 用户自定义 gridOptions, 可选.
23
+ * 不传等价于传 `{}`, 内部走默认配置, 不会因为 undefined 报错.
24
+ */
25
+ gridOptions?: Options;
22
26
  footerHeight?: number;
23
27
  editable?: 'cell' | 'row';
24
28
  onRowChange?: RowChangeCallback<any>;
@@ -673,6 +677,9 @@ export declare const useGrid: <T = any>(props: GridProps) => {
673
677
  redraw: (row: GridRow<any>) => void;
674
678
  redrawCell: (row: GridRow<any>, rowId: string, column: import("ag-grid-community").Column) => void;
675
679
  ensureNodeVisible: (rowId: string) => void;
680
+ refreshModel?: ((params: {
681
+ step: "map" | "everything";
682
+ }) => void) | undefined;
676
683
  getColumns: () => import("@scvzerng/ag-grid-core").SpanColumn[];
677
684
  } | undefined;
678
685
  createRow: (data: T) => ActualRow<T>;
@@ -692,6 +699,9 @@ export declare const useGrid: <T = any>(props: GridProps) => {
692
699
  redraw: (row: GridRow<any>) => void;
693
700
  redrawCell: (row: GridRow<any>, rowId: string, column: import("ag-grid-community").Column) => void;
694
701
  ensureNodeVisible: (rowId: string) => void;
702
+ refreshModel?: ((params: {
703
+ step: "map" | "everything";
704
+ }) => void) | undefined;
695
705
  getColumns: () => import("@scvzerng/ag-grid-core").SpanColumn[];
696
706
  } | undefined;
697
707
  createRow: (data: T) => ActualRow<T>;
@@ -711,4 +721,6 @@ export declare const useGrid: <T = any>(props: GridProps) => {
711
721
  existRow: (row: GridRow<T>) => boolean;
712
722
  getRows: <T_1>() => (ActualRow<T_1> | EditableRow<T_1> | import("@scvzerng/ag-grid-core").CellEditableRow<T_1>)[];
713
723
  refresh: () => Promise<void>;
724
+ selectByIds: (ids: string[], source?: import("ag-grid-community").SelectionEventSourceType) => void;
725
+ deselectByIds: (ids: string[], source?: import("ag-grid-community").SelectionEventSourceType) => void;
714
726
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scvzerng/element-ui-ag-grid-vue2",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "exports": {