@scvzerng/element-ui-ag-grid-vue2 0.0.26 → 0.0.28
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/types/Grid.vue.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { RowData } from './use-grid';
|
|
|
2
2
|
import { RowChangeCallback } from '@scvzerng/ag-grid-core';
|
|
3
3
|
import type { Searchable } from './search';
|
|
4
4
|
import type { Column, Options, RowIdMapper } from './index';
|
|
5
|
-
import type { GridOptions } from 'ag-grid-community';
|
|
5
|
+
import type { GridOptions, SelectAllMode, SelectionEventSourceType } from 'ag-grid-community';
|
|
6
6
|
import { ActualRow } from '@scvzerng/ag-grid-core';
|
|
7
7
|
import { EditableRow } from '@scvzerng/ag-grid-core';
|
|
8
8
|
type __VLS_Props = {
|
|
@@ -14819,6 +14819,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
14819
14819
|
insertRows: (rows: (ActualRow<any> | EditableRow<any>)[], index?: number) => Promise<void>;
|
|
14820
14820
|
startEditing: () => void;
|
|
14821
14821
|
stopEditing: () => void;
|
|
14822
|
+
deselectAll: (mode?: SelectAllMode, source?: SelectionEventSourceType) => void;
|
|
14822
14823
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
14823
14824
|
pageSize: number;
|
|
14824
14825
|
tools: () => string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,13 +5,17 @@ import 'ag-grid-community/styles/ag-grid.css';
|
|
|
5
5
|
import 'ag-grid-community/styles/ag-theme-alpine.css';
|
|
6
6
|
import "@scvzerng/vue2-context-menu/lib/vue2-context-menu.css";
|
|
7
7
|
export * from '@scvzerng/ag-grid-core';
|
|
8
|
-
export * from '@scvzerng/ag-grid-core';
|
|
9
|
-
export * from '@scvzerng/ag-grid-core';
|
|
10
8
|
export { default as Grid } from './Grid.vue';
|
|
9
|
+
import Grid from './Grid.vue';
|
|
10
|
+
/**
|
|
11
|
+
* Grid 组件实例类型(由 `defineExpose` 暴露的字段自动推断).
|
|
12
|
+
* 接受业务数据类型 `T` 仅为了兼容 example 中 `ref<GridInstance<Class>>()` 写法, vue 2.7
|
|
13
|
+
* 对 generic SFC 的支持有限, 实例上的方法不会因为 T 变化而变化.
|
|
14
|
+
*/
|
|
15
|
+
export type GridInstance<T = any> = InstanceType<typeof Grid>;
|
|
11
16
|
export * from './renders';
|
|
12
17
|
export * from "./helper/vModel";
|
|
13
18
|
export * from "./search";
|
|
14
|
-
export * from '@scvzerng/ag-grid-core';
|
|
15
19
|
export type Options<TData = any> = RestrictedAgGridOptions<TData>;
|
|
16
20
|
export type Column<T = any> = ColDef<T> | ColGroupDef<T>;
|
|
17
21
|
export type ContextMenuItem<TData> = {
|
package/package.json
CHANGED
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scvzerng/element-ui-ag-grid-vue2",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "vite",
|
|
8
|
-
"build": "vite build && vue-tsc --declaration --emitDeclarationOnly",
|
|
9
|
-
"typecheck": "vue-tsc --noEmit --declaration",
|
|
10
|
-
"lint:oxlint": "oxlint . --fix -D correctness --ignore-path .gitignore",
|
|
11
|
-
"lint": "run-s lint:*",
|
|
12
|
-
"format": "prettier --write src/"
|
|
13
|
-
},
|
|
14
6
|
"exports": {
|
|
15
7
|
".": {
|
|
16
8
|
"types": "./dist/types/index.d.ts",
|
|
@@ -38,7 +30,6 @@
|
|
|
38
30
|
"devDependencies": {
|
|
39
31
|
"unplugin-vue-macros": "2.14.5",
|
|
40
32
|
"@prettier/plugin-oxc": "0.0.4",
|
|
41
|
-
"@scvzerng/ag-grid-core": "workspace:*",
|
|
42
33
|
"@types/md5": "2.3.5",
|
|
43
34
|
"@types/node": "22.16.5",
|
|
44
35
|
"@vitejs/plugin-vue2": "2.3.3",
|
|
@@ -56,9 +47,18 @@
|
|
|
56
47
|
"sass-embedded": "1.90.0",
|
|
57
48
|
"typescript": "5.9.2",
|
|
58
49
|
"vite": "5.4.19",
|
|
59
|
-
"vue-tsc": "2.1.10"
|
|
50
|
+
"vue-tsc": "2.1.10",
|
|
51
|
+
"@scvzerng/ag-grid-core": "0.1.0"
|
|
60
52
|
},
|
|
61
53
|
"publishConfig": {
|
|
62
54
|
"access": "public"
|
|
55
|
+
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"dev": "vite",
|
|
58
|
+
"build": "vite build && vue-tsc --declaration --emitDeclarationOnly",
|
|
59
|
+
"typecheck": "vue-tsc --noEmit --declaration",
|
|
60
|
+
"lint:oxlint": "oxlint . --fix -D correctness --ignore-path .gitignore",
|
|
61
|
+
"lint": "run-s lint:*",
|
|
62
|
+
"format": "prettier --write src/"
|
|
63
63
|
}
|
|
64
|
-
}
|
|
64
|
+
}
|