@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.
- package/dist/ElementPlusAgGrid.es.js +4782 -4069
- package/dist/ElementPlusAgGrid.umd.js +24 -24
- package/dist/style.css +1 -1
- package/dist/types/Grid.vue.d.ts +6 -0
- package/dist/types/expand-detail-mount.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/use-grid.d.ts +4 -0
- package/package.json +1 -1
package/dist/types/Grid.vue.d.ts
CHANGED
|
@@ -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 {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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";
|
package/dist/types/use-grid.d.ts
CHANGED
|
@@ -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>;
|