@vtj/ui 0.8.37 → 0.8.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/index.mjs +5447 -5403
- package/dist/index.umd.js +12 -12
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/types/components/grid/Grid.d.ts +10 -6
- package/types/components/grid/types.d.ts +1 -0
- package/types/version.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.39",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=16.0.0"
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"sortablejs": "~1.15.2",
|
|
13
13
|
"vxe-table": "~4.6.16",
|
|
14
14
|
"vxe-table-plugin-menus": "~4.0.3",
|
|
15
|
-
"@vtj/icons": "~0.8.
|
|
16
|
-
"@vtj/utils": "~0.8.
|
|
15
|
+
"@vtj/icons": "~0.8.39",
|
|
16
|
+
"@vtj/utils": "~0.8.39"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/qrcode": "^1.5.5",
|
|
@@ -23,9 +23,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
23
23
|
type: PropType<(id: string) => Promise< GridCustomInfo>>;
|
|
24
24
|
};
|
|
25
25
|
saveCustom: {
|
|
26
|
-
type: PropType<(info: GridCustomInfo) => Promise<any>>;
|
|
27
|
-
* 新增行,并激活编辑状态
|
|
28
|
-
*/
|
|
26
|
+
type: PropType<(info: GridCustomInfo) => Promise<any>>;
|
|
29
27
|
};
|
|
30
28
|
resizable: {
|
|
31
29
|
type: BooleanConstructor;
|
|
@@ -87,10 +85,17 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
87
85
|
pendingRecords: any[];
|
|
88
86
|
} | null | undefined;
|
|
89
87
|
reload: () => Promise<void>;
|
|
88
|
+
validate: () => Promise<import("vxe-table/types/table").VxeTableDefines.ValidatorErrorMapParams<any> | undefined>;
|
|
89
|
+
getSelected: () => any;
|
|
90
|
+
remove: (rows: any) => Promise<void>;
|
|
91
|
+
getRows: () => any[];
|
|
92
|
+
loadData: (data: any[], reload?: boolean | undefined) => void;
|
|
93
|
+
setActived: (row: any) => Promise<void | undefined>;
|
|
90
94
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
91
95
|
rowSort: (e: GridSortableEvent) => void;
|
|
92
96
|
columnSort: (e: GridSortableEvent) => void;
|
|
93
97
|
cellSelected: (params: any) => void;
|
|
98
|
+
editChange: (data: any[]) => void;
|
|
94
99
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
95
100
|
columns: {
|
|
96
101
|
type: PropType<GridColumns>;
|
|
@@ -111,9 +116,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
111
116
|
type: PropType<(id: string) => Promise< GridCustomInfo>>;
|
|
112
117
|
};
|
|
113
118
|
saveCustom: {
|
|
114
|
-
type: PropType<(info: GridCustomInfo) => Promise<any>>;
|
|
115
|
-
* 新增行,并激活编辑状态
|
|
116
|
-
*/
|
|
119
|
+
type: PropType<(info: GridCustomInfo) => Promise<any>>;
|
|
117
120
|
};
|
|
118
121
|
resizable: {
|
|
119
122
|
type: BooleanConstructor;
|
|
@@ -158,6 +161,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
158
161
|
onCellSelected?: ((params: any) => any) | undefined;
|
|
159
162
|
onRowSort?: ((e: GridSortableEvent) => any) | undefined;
|
|
160
163
|
onColumnSort?: ((e: GridSortableEvent) => any) | undefined;
|
|
164
|
+
onEditChange?: ((data: any[]) => any) | undefined;
|
|
161
165
|
}, {
|
|
162
166
|
resizable: boolean;
|
|
163
167
|
editable: boolean;
|
|
@@ -43,6 +43,7 @@ export type GridEmits = {
|
|
|
43
43
|
rowSort: [e: GridSortableEvent];
|
|
44
44
|
columnSort: [e: GridSortableEvent];
|
|
45
45
|
cellSelected: [params: any];
|
|
46
|
+
editChange: [data: any[]];
|
|
46
47
|
};
|
|
47
48
|
export type GridInstance = InstanceType<typeof Grid>;
|
|
48
49
|
export type { VxeGridInstance, VxeTableDefines, VxeGridPropTypes, VxeColumnPropTypes, VxeGridEvents, VxeGridDefines, VxeGridProps, VxeGlobalRendererHandles, VxeColumnSlotTypes, DefineRendererOption, VxeGlobalInterceptorHandles };
|
package/types/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/ui
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.8.
|
|
5
|
+
* @version 0.8.38
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.8.
|
|
8
|
+
export declare const version = "0.8.38";
|