@vtj/ui 0.8.36 → 0.8.38

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/ui",
3
3
  "private": false,
4
- "version": "0.8.36",
4
+ "version": "0.8.38",
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.36",
16
- "@vtj/utils": "~0.8.36"
15
+ "@vtj/icons": "~0.8.38",
16
+ "@vtj/utils": "~0.8.38"
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;
@@ -1 +1,3 @@
1
- export {};
1
+ import { RendererOptions } from 'vxe-table';
2
+
3
+ export declare const XActions: RendererOptions;
@@ -1 +1,3 @@
1
- export {};
1
+ import { RendererOptions } from 'vxe-table';
2
+
3
+ export declare const XDate: RendererOptions;
@@ -1 +1,3 @@
1
- export {};
1
+ import { RendererOptions } from 'vxe-table';
2
+
3
+ export declare const XImage: RendererOptions;
@@ -1 +1,5 @@
1
+ import { VXETableCore } from 'vxe-table';
1
2
 
3
+ export declare const RenderPlugin: {
4
+ install(vxetable: VXETableCore): void;
5
+ };
@@ -1,3 +1,4 @@
1
1
  import { RendererOptions } from 'vxe-table';
2
2
 
3
3
  export declare const baseRendererOptions: RendererOptions;
4
+ export declare const XInput: RendererOptions;
@@ -1 +1,4 @@
1
- export {};
1
+ import { VxeGlobalInterceptorHandles } from 'vxe-table';
2
+
3
+ export declare const handleClerEdit: VxeGlobalInterceptorHandles.InterceptorCallback;
4
+ export declare const handleClearFilter: VxeGlobalInterceptorHandles.InterceptorCallback;
@@ -1 +1,3 @@
1
- export {};
1
+ import { RendererOptions } from 'vxe-table';
2
+
3
+ export declare const XLink: RendererOptions;
@@ -1 +1,3 @@
1
- export {};
1
+ import { RendererOptions } from 'vxe-table';
2
+
3
+ export declare const XSelect: RendererOptions;
@@ -1 +1,3 @@
1
- export {};
1
+ import { RendererOptions } from 'vxe-table';
2
+
3
+ export declare const XTag: RendererOptions;
@@ -1 +1,3 @@
1
- export {};
1
+ import { RendererOptions } from 'vxe-table';
2
+
3
+ export declare const XText: RendererOptions;
@@ -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 };
@@ -1,8 +1,7 @@
1
- import { App } from 'vue';
2
1
  import { default as Sortable } from 'sortablejs';
3
- import { RendererOptions, VxeTableDataRow } from 'vxe-table';
4
- import { GridSortableOptions, VxeGridInstance, GridEmits, GridSortableEvent, VxeTableDefines, GridColumns, GridCustomInfo, VxeGlobalRendererHandles, VxeGlobalInterceptorHandles } from './types';
2
+ import { GridSortableOptions, VxeGridInstance, GridEmits, GridSortableEvent, VxeTableDefines, GridColumns, GridCustomInfo, VxeGlobalRendererHandles } from './types';
5
3
  import { Emits } from '../shared';
4
+ import { VxeTableDataRow } from 'vxe-table';
6
5
 
7
6
  export declare function createSortable(el: HTMLElement, options?: GridSortableOptions): Sortable;
8
7
  export declare function createRowSortHandler(grid: VxeGridInstance, emit: Emits<GridEmits>): (e: Sortable.SortableEvent) => void;
@@ -17,6 +16,3 @@ export declare function createCellRenderProps(renderOpts: VxeGlobalRendererHandl
17
16
  row: VxeTableDataRow;
18
17
  column: VxeTableDefines.ColumnInfo< VxeTableDataRow>;
19
18
  };
20
- export declare function registerRender(name: string, options: RendererOptions): void;
21
- export declare function registerInterceptor(name: VxeGlobalInterceptorHandles.Type, callback: VxeGlobalInterceptorHandles.InterceptorCallback): void;
22
- export declare function registerComponents(app: App, components?: any[]): void;
@@ -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.35
5
+ * @version 0.8.37
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.8.35";
8
+ export declare const version = "0.8.37";