workdesktop-ai 1.0.0

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/LICENSE +21 -0
  3. package/README.md +214 -0
  4. package/dist/index.esm.js +6531 -0
  5. package/dist/index.esm.js.map +1 -0
  6. package/dist/index.umd.js +11 -0
  7. package/dist/index.umd.js.map +1 -0
  8. package/dist/style.css +1 -0
  9. package/dist/types/src/components/buttons/ApiButton.vue.d.ts +96 -0
  10. package/dist/types/src/components/buttons/ConfirmButton.vue.d.ts +131 -0
  11. package/dist/types/src/components/buttons/DialogButton.vue.d.ts +107 -0
  12. package/dist/types/src/components/buttons/DrawerButton.vue.d.ts +118 -0
  13. package/dist/types/src/components/buttons/PromptButton.vue.d.ts +140 -0
  14. package/dist/types/src/components/buttons/RouteButton.vue.d.ts +84 -0
  15. package/dist/types/src/components/buttons/TipsButton.vue.d.ts +64 -0
  16. package/dist/types/src/components/buttons/useApiAction.d.ts +20 -0
  17. package/dist/types/src/components/common/props.d.ts +85 -0
  18. package/dist/types/src/components/containers/Dialog.vue.d.ts +112 -0
  19. package/dist/types/src/components/containers/Drawer.vue.d.ts +119 -0
  20. package/dist/types/src/components/containers/Iframe.vue.d.ts +44 -0
  21. package/dist/types/src/components/containers/SearchPanel.vue.d.ts +152 -0
  22. package/dist/types/src/components/containers/containerContext.d.ts +15 -0
  23. package/dist/types/src/components/containers/useContainerController.d.ts +19 -0
  24. package/dist/types/src/components/data/datagrid/DataGrid.vue.d.ts +335 -0
  25. package/dist/types/src/components/data/datagrid/useColumnSettings.d.ts +48 -0
  26. package/dist/types/src/components/data/editable-table/EditableTable.vue.d.ts +306 -0
  27. package/dist/types/src/components/form/data-form/DataForm.vue.d.ts +311 -0
  28. package/dist/types/src/components/index.d.ts +27 -0
  29. package/dist/types/src/components/inputs/AutoComplete.vue.d.ts +157 -0
  30. package/dist/types/src/components/inputs/CheckboxList.vue.d.ts +141 -0
  31. package/dist/types/src/components/inputs/RadioList.vue.d.ts +141 -0
  32. package/dist/types/src/components/inputs/Select.vue.d.ts +166 -0
  33. package/dist/types/src/components/inputs/Switch.vue.d.ts +116 -0
  34. package/dist/types/src/components/inputs/useOptionsLoader.d.ts +29 -0
  35. package/dist/types/src/components/styles/Panel.vue.d.ts +41 -0
  36. package/dist/types/src/components/styles/Tips.vue.d.ts +60 -0
  37. package/dist/types/src/components/upload/ImageUpload.vue.d.ts +176 -0
  38. package/dist/types/src/components/upload/Upload.vue.d.ts +235 -0
  39. package/dist/types/src/components/utils/Viewer.vue.d.ts +131 -0
  40. package/dist/types/src/index.d.ts +20 -0
  41. package/dist/types/src/lib/composables/useConfig.d.ts +19 -0
  42. package/dist/types/src/lib/composables/useDataGrid.d.ts +54 -0
  43. package/dist/types/src/lib/composables/useEventBus.d.ts +16 -0
  44. package/dist/types/src/lib/composables/useGlobalState.d.ts +5 -0
  45. package/dist/types/src/lib/composables/useRequest.d.ts +42 -0
  46. package/dist/types/src/lib/configs/default-config.d.ts +6 -0
  47. package/dist/types/src/lib/core/config.d.ts +28 -0
  48. package/dist/types/src/lib/core/http.d.ts +83 -0
  49. package/dist/types/src/lib/core/linkage.d.ts +48 -0
  50. package/dist/types/src/lib/core/theme.d.ts +6 -0
  51. package/dist/types/src/lib/core/utils.d.ts +28 -0
  52. package/dist/types/src/lib/install.d.ts +11 -0
  53. package/dist/types/src/types/config.d.ts +109 -0
  54. package/dist/types/src/types/index.d.ts +4 -0
  55. package/dist/types/vite.config.d.ts +2 -0
  56. package/package.json +68 -0
@@ -0,0 +1,335 @@
1
+ import { type PropType } from 'vue';
2
+ declare function onChangeCurrentpage(val: number): void;
3
+ declare function onChangePagesize(val: number): void;
4
+ declare function requestApi(options?: {
5
+ apiParam?: Record<string, any>;
6
+ }): Promise<void>;
7
+ declare function refresh(): Promise<void>;
8
+ declare function getSelection(): any[];
9
+ declare function clearSelection(): void;
10
+ /** 搜索面板联动:带搜索参数查询(重置到第一页) */
11
+ declare function search(params?: Record<string, any>): Promise<void>;
12
+ /** 重置搜索并刷新 */
13
+ declare function resetSearch(): Promise<import("../../../lib/composables/useDataGrid").ListData>;
14
+ declare var __VLS_1: {
15
+ selection: any[];
16
+ list: any[];
17
+ }, __VLS_141: {}, __VLS_151: {
18
+ row: any;
19
+ index: number;
20
+ };
21
+ type __VLS_Slots = {} & {
22
+ toolbar?: (props: typeof __VLS_1) => any;
23
+ } & {
24
+ empty?: (props: typeof __VLS_141) => any;
25
+ } & {
26
+ 'card-item'?: (props: typeof __VLS_151) => any;
27
+ };
28
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
29
+ api: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ apiMethod: {
34
+ type: PropType<"get" | "post" | "put" | "delete">;
35
+ default: string;
36
+ };
37
+ apiParam: {
38
+ type: PropType<Record<string, any>>;
39
+ default: () => {};
40
+ };
41
+ active: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ /** 静态数据(数组) */
46
+ dataSource: {
47
+ type: PropType<any[] | any>;
48
+ default: undefined;
49
+ };
50
+ withPager: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ withSearch: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ modeSwitch: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ dynamicColumn: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ columnStorageKey: {
67
+ type: StringConstructor;
68
+ default: string;
69
+ };
70
+ fix: {
71
+ type: BooleanConstructor;
72
+ default: boolean;
73
+ };
74
+ border: {
75
+ type: BooleanConstructor;
76
+ default: boolean;
77
+ };
78
+ stripe: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ autoHeight: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
86
+ rowKey: {
87
+ type: StringConstructor;
88
+ default: string;
89
+ };
90
+ tableSize: {
91
+ type: PropType<"large" | "default" | "small">;
92
+ default: string;
93
+ };
94
+ pagerStyle: {
95
+ type: PropType<"simple" | "normal" | "full">;
96
+ default: string;
97
+ };
98
+ withIndex: {
99
+ type: BooleanConstructor;
100
+ default: boolean;
101
+ };
102
+ withSelection: {
103
+ type: BooleanConstructor;
104
+ default: boolean;
105
+ };
106
+ rowspanKey: {
107
+ type: StringConstructor;
108
+ default: string;
109
+ };
110
+ rowspanColumn: {
111
+ type: PropType<string[]>;
112
+ default: () => never[];
113
+ };
114
+ treeProps: {
115
+ type: ObjectConstructor;
116
+ default: () => {
117
+ children: string;
118
+ hasChildren: string;
119
+ };
120
+ };
121
+ defaultExpandAll: {
122
+ type: BooleanConstructor;
123
+ default: boolean;
124
+ };
125
+ tools: {
126
+ type: PropType<{
127
+ refresh?: boolean;
128
+ columnSetting?: boolean;
129
+ modeSwitch?: boolean;
130
+ size?: boolean;
131
+ }>;
132
+ default: () => {};
133
+ };
134
+ /** 内置操作列配置(渲染行操作按钮,点击 emit row-action) */
135
+ rowActions: {
136
+ type: PropType<Array<{
137
+ text: string;
138
+ command?: string;
139
+ type?: string;
140
+ }>>;
141
+ default: () => never[];
142
+ };
143
+ filter: {
144
+ type: StringConstructor;
145
+ default: string;
146
+ };
147
+ }>, {
148
+ requestApi: typeof requestApi;
149
+ refresh: typeof refresh;
150
+ onChangePagesize: typeof onChangePagesize;
151
+ onChangeCurrentpage: typeof onChangeCurrentpage;
152
+ getSelection: typeof getSelection;
153
+ clearSelection: typeof clearSelection;
154
+ search: typeof search;
155
+ resetSearch: typeof resetSearch;
156
+ tableRef: import("vue").Ref<any, any>;
157
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
158
+ apiBefore: (...args: any[]) => void;
159
+ apiAfter: (...args: any[]) => void;
160
+ "row-action": (...args: any[]) => void;
161
+ "page-change": (...args: any[]) => void;
162
+ "selection-change": (...args: any[]) => void;
163
+ "mode-change": (...args: any[]) => void;
164
+ loaded: (...args: any[]) => void;
165
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
166
+ api: {
167
+ type: StringConstructor;
168
+ default: string;
169
+ };
170
+ apiMethod: {
171
+ type: PropType<"get" | "post" | "put" | "delete">;
172
+ default: string;
173
+ };
174
+ apiParam: {
175
+ type: PropType<Record<string, any>>;
176
+ default: () => {};
177
+ };
178
+ active: {
179
+ type: BooleanConstructor;
180
+ default: boolean;
181
+ };
182
+ /** 静态数据(数组) */
183
+ dataSource: {
184
+ type: PropType<any[] | any>;
185
+ default: undefined;
186
+ };
187
+ withPager: {
188
+ type: BooleanConstructor;
189
+ default: boolean;
190
+ };
191
+ withSearch: {
192
+ type: BooleanConstructor;
193
+ default: boolean;
194
+ };
195
+ modeSwitch: {
196
+ type: BooleanConstructor;
197
+ default: boolean;
198
+ };
199
+ dynamicColumn: {
200
+ type: BooleanConstructor;
201
+ default: boolean;
202
+ };
203
+ columnStorageKey: {
204
+ type: StringConstructor;
205
+ default: string;
206
+ };
207
+ fix: {
208
+ type: BooleanConstructor;
209
+ default: boolean;
210
+ };
211
+ border: {
212
+ type: BooleanConstructor;
213
+ default: boolean;
214
+ };
215
+ stripe: {
216
+ type: BooleanConstructor;
217
+ default: boolean;
218
+ };
219
+ autoHeight: {
220
+ type: BooleanConstructor;
221
+ default: boolean;
222
+ };
223
+ rowKey: {
224
+ type: StringConstructor;
225
+ default: string;
226
+ };
227
+ tableSize: {
228
+ type: PropType<"large" | "default" | "small">;
229
+ default: string;
230
+ };
231
+ pagerStyle: {
232
+ type: PropType<"simple" | "normal" | "full">;
233
+ default: string;
234
+ };
235
+ withIndex: {
236
+ type: BooleanConstructor;
237
+ default: boolean;
238
+ };
239
+ withSelection: {
240
+ type: BooleanConstructor;
241
+ default: boolean;
242
+ };
243
+ rowspanKey: {
244
+ type: StringConstructor;
245
+ default: string;
246
+ };
247
+ rowspanColumn: {
248
+ type: PropType<string[]>;
249
+ default: () => never[];
250
+ };
251
+ treeProps: {
252
+ type: ObjectConstructor;
253
+ default: () => {
254
+ children: string;
255
+ hasChildren: string;
256
+ };
257
+ };
258
+ defaultExpandAll: {
259
+ type: BooleanConstructor;
260
+ default: boolean;
261
+ };
262
+ tools: {
263
+ type: PropType<{
264
+ refresh?: boolean;
265
+ columnSetting?: boolean;
266
+ modeSwitch?: boolean;
267
+ size?: boolean;
268
+ }>;
269
+ default: () => {};
270
+ };
271
+ /** 内置操作列配置(渲染行操作按钮,点击 emit row-action) */
272
+ rowActions: {
273
+ type: PropType<Array<{
274
+ text: string;
275
+ command?: string;
276
+ type?: string;
277
+ }>>;
278
+ default: () => never[];
279
+ };
280
+ filter: {
281
+ type: StringConstructor;
282
+ default: string;
283
+ };
284
+ }>> & Readonly<{
285
+ onApiBefore?: ((...args: any[]) => any) | undefined;
286
+ onApiAfter?: ((...args: any[]) => any) | undefined;
287
+ "onRow-action"?: ((...args: any[]) => any) | undefined;
288
+ "onPage-change"?: ((...args: any[]) => any) | undefined;
289
+ "onSelection-change"?: ((...args: any[]) => any) | undefined;
290
+ "onMode-change"?: ((...args: any[]) => any) | undefined;
291
+ onLoaded?: ((...args: any[]) => any) | undefined;
292
+ }>, {
293
+ filter: string;
294
+ api: string;
295
+ apiMethod: "delete" | "get" | "post" | "put";
296
+ apiParam: Record<string, any>;
297
+ active: boolean;
298
+ dataSource: any;
299
+ withPager: boolean;
300
+ withSearch: boolean;
301
+ modeSwitch: boolean;
302
+ dynamicColumn: boolean;
303
+ columnStorageKey: string;
304
+ fix: boolean;
305
+ border: boolean;
306
+ stripe: boolean;
307
+ autoHeight: boolean;
308
+ rowKey: string;
309
+ tableSize: "default" | "small" | "large";
310
+ pagerStyle: "simple" | "normal" | "full";
311
+ withIndex: boolean;
312
+ withSelection: boolean;
313
+ rowspanKey: string;
314
+ rowspanColumn: string[];
315
+ treeProps: Record<string, any>;
316
+ defaultExpandAll: boolean;
317
+ tools: {
318
+ refresh?: boolean;
319
+ columnSetting?: boolean;
320
+ modeSwitch?: boolean;
321
+ size?: boolean;
322
+ };
323
+ rowActions: {
324
+ text: string;
325
+ command?: string;
326
+ type?: string;
327
+ }[];
328
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
329
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
330
+ export default _default;
331
+ type __VLS_WithSlots<T, S> = T & {
332
+ new (): {
333
+ $slots: S;
334
+ };
335
+ };
@@ -0,0 +1,48 @@
1
+ import { nextTick } from 'vue';
2
+ import type { VNode } from 'vue';
3
+ /**
4
+ * 动态列:从默认插槽的 el-table-column vnode 中提取列元信息,
5
+ * 支持显示/隐藏/排序,状态可持久化到 localStorage(PRD 4.2)。
6
+ */
7
+ export interface ColumnMeta {
8
+ /** el-table-column 的 key(prop 或自动 id) */
9
+ key: string;
10
+ label: string;
11
+ /** 用户可控制的业务列(selection/index 等内置列不可控) */
12
+ controllable: boolean;
13
+ visible: boolean;
14
+ order: number;
15
+ }
16
+ /**
17
+ * 从插槽 vnode 数组中解析列
18
+ */
19
+ export declare function extractColumns(vnodes: VNode[]): ColumnMeta[];
20
+ export declare function useColumnSettings(storageKey?: string): {
21
+ columns: import("vue").Ref<{
22
+ key: string;
23
+ label: string;
24
+ controllable: boolean;
25
+ visible: boolean;
26
+ order: number;
27
+ }[], ColumnMeta[] | {
28
+ key: string;
29
+ label: string;
30
+ controllable: boolean;
31
+ visible: boolean;
32
+ order: number;
33
+ }[]>;
34
+ controllableColumns: import("vue").ComputedRef<{
35
+ key: string;
36
+ label: string;
37
+ controllable: boolean;
38
+ visible: boolean;
39
+ order: number;
40
+ }[]>;
41
+ hiddenKeys: import("vue").ComputedRef<Set<string>>;
42
+ settingVisible: import("vue").Ref<boolean, boolean>;
43
+ init: (vnodes: VNode[]) => void;
44
+ setVisible: (key: string, visible: boolean) => void;
45
+ move: (key: string, direction: -1 | 1) => void;
46
+ reset: () => void;
47
+ nextTick: typeof nextTick;
48
+ };
@@ -0,0 +1,306 @@
1
+ import type { PropType } from 'vue';
2
+ /** 列配置 */
3
+ export interface EditableColumn {
4
+ prop: string;
5
+ label: string;
6
+ width?: string | number;
7
+ minWidth?: string | number;
8
+ align?: 'left' | 'center' | 'right';
9
+ fixed?: boolean | 'left' | 'right';
10
+ /** 编辑器类型:input/number/select/date;默认 input */
11
+ editor?: 'input' | 'number' | 'select' | 'date';
12
+ editable?: boolean;
13
+ placeholder?: string;
14
+ /** select 选项 */
15
+ options?: {
16
+ text: string;
17
+ value: any;
18
+ }[];
19
+ /** number 约束 */
20
+ min?: number;
21
+ max?: number;
22
+ precision?: number;
23
+ /** 必填校验 */
24
+ required?: boolean;
25
+ /** 自定义校验:返回错误文案,空串/undefined 为通过 */
26
+ validator?: (value: any, row: Record<string, any>) => string | undefined;
27
+ /** 展示格式化(只读态) */
28
+ formatter?: (row: Record<string, any>, col: EditableColumn) => string;
29
+ }
30
+ declare function addRow(): void;
31
+ /** 批量保存:先校验,通过后提交脏行 */
32
+ declare function saveAll(): Promise<void>;
33
+ /** 外部命令式入口 */
34
+ declare function validate(): boolean;
35
+ declare function getDirtyRows(): Record<string, any>[];
36
+ declare var __VLS_1: {
37
+ dirtyRows: Record<string, any>[];
38
+ rows: Record<string, any>[];
39
+ }, __VLS_19: {
40
+ dirtyRows: Record<string, any>[];
41
+ rows: Record<string, any>[];
42
+ }, __VLS_76: `edit-${string}`, __VLS_77: {
43
+ row: any;
44
+ index: any;
45
+ column: EditableColumn;
46
+ }, __VLS_127: `edit-${string}`, __VLS_128: {
47
+ row: any;
48
+ index: any;
49
+ column: EditableColumn;
50
+ }, __VLS_174: {
51
+ row: any;
52
+ index: any;
53
+ }, __VLS_176: {};
54
+ type __VLS_Slots = {} & {
55
+ [K in NonNullable<typeof __VLS_76>]?: (props: typeof __VLS_77) => any;
56
+ } & {
57
+ [K in NonNullable<typeof __VLS_127>]?: (props: typeof __VLS_128) => any;
58
+ } & {
59
+ toolbar?: (props: typeof __VLS_1) => any;
60
+ } & {
61
+ actions?: (props: typeof __VLS_19) => any;
62
+ } & {
63
+ 'row-actions'?: (props: typeof __VLS_174) => any;
64
+ } & {
65
+ empty?: (props: typeof __VLS_176) => any;
66
+ };
67
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
68
+ /** 列配置 */
69
+ columns: {
70
+ type: PropType<EditableColumn[]>;
71
+ default: () => never[];
72
+ };
73
+ /** 表格数据(v-model) */
74
+ modelValue: {
75
+ type: PropType<Record<string, any>[]>;
76
+ default: () => never[];
77
+ };
78
+ /** 编辑模式:cell=单元格点击编辑(默认);row=行编辑 */
79
+ editMode: {
80
+ type: PropType<"cell" | "row">;
81
+ default: string;
82
+ };
83
+ /** 批量保存地址;为空时仅本地保存并 emit save */
84
+ saveApi: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ };
88
+ saveMethod: {
89
+ type: PropType<"post" | "put">;
90
+ default: string;
91
+ };
92
+ /** 新增行默认值(对象或工厂函数) */
93
+ defaultRow: {
94
+ type: PropType<Record<string, any> | (() => Record<string, any>)>;
95
+ default: undefined;
96
+ };
97
+ rowKey: {
98
+ type: StringConstructor;
99
+ default: string;
100
+ };
101
+ withToolbar: {
102
+ type: BooleanConstructor;
103
+ default: boolean;
104
+ };
105
+ withAdd: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ };
109
+ withSave: {
110
+ type: BooleanConstructor;
111
+ default: boolean;
112
+ };
113
+ withDelete: {
114
+ type: BooleanConstructor;
115
+ default: boolean;
116
+ };
117
+ withIndex: {
118
+ type: BooleanConstructor;
119
+ default: boolean;
120
+ };
121
+ withActions: {
122
+ type: BooleanConstructor;
123
+ default: boolean;
124
+ };
125
+ addButtonText: {
126
+ type: StringConstructor;
127
+ default: string;
128
+ };
129
+ saveButtonText: {
130
+ type: StringConstructor;
131
+ default: string;
132
+ };
133
+ actionWidth: {
134
+ type: (NumberConstructor | StringConstructor)[];
135
+ default: number;
136
+ };
137
+ border: {
138
+ type: BooleanConstructor;
139
+ default: boolean;
140
+ };
141
+ stripe: {
142
+ type: BooleanConstructor;
143
+ default: boolean;
144
+ };
145
+ size: {
146
+ type: PropType<"large" | "default" | "small">;
147
+ default: string;
148
+ };
149
+ headRefreshDatagrid: {
150
+ type: PropType<boolean | string>;
151
+ default: boolean;
152
+ };
153
+ filter: {
154
+ type: StringConstructor;
155
+ default: string;
156
+ };
157
+ }>, {
158
+ saveAll: typeof saveAll;
159
+ validate: typeof validate;
160
+ addRow: typeof addRow;
161
+ getDirtyRows: typeof getDirtyRows;
162
+ tableRef: import("vue").Ref<any, any>;
163
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
164
+ apiBefore: (...args: any[]) => void;
165
+ apiSuccess: (...args: any[]) => void;
166
+ apiFail: (...args: any[]) => void;
167
+ apiException: (...args: any[]) => void;
168
+ apiAfter: (...args: any[]) => void;
169
+ "update:modelValue": (...args: any[]) => void;
170
+ change: (...args: any[]) => void;
171
+ save: (...args: any[]) => void;
172
+ "row-add": (...args: any[]) => void;
173
+ "row-remove": (...args: any[]) => void;
174
+ "validate-fail": (...args: any[]) => void;
175
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
176
+ /** 列配置 */
177
+ columns: {
178
+ type: PropType<EditableColumn[]>;
179
+ default: () => never[];
180
+ };
181
+ /** 表格数据(v-model) */
182
+ modelValue: {
183
+ type: PropType<Record<string, any>[]>;
184
+ default: () => never[];
185
+ };
186
+ /** 编辑模式:cell=单元格点击编辑(默认);row=行编辑 */
187
+ editMode: {
188
+ type: PropType<"cell" | "row">;
189
+ default: string;
190
+ };
191
+ /** 批量保存地址;为空时仅本地保存并 emit save */
192
+ saveApi: {
193
+ type: StringConstructor;
194
+ default: string;
195
+ };
196
+ saveMethod: {
197
+ type: PropType<"post" | "put">;
198
+ default: string;
199
+ };
200
+ /** 新增行默认值(对象或工厂函数) */
201
+ defaultRow: {
202
+ type: PropType<Record<string, any> | (() => Record<string, any>)>;
203
+ default: undefined;
204
+ };
205
+ rowKey: {
206
+ type: StringConstructor;
207
+ default: string;
208
+ };
209
+ withToolbar: {
210
+ type: BooleanConstructor;
211
+ default: boolean;
212
+ };
213
+ withAdd: {
214
+ type: BooleanConstructor;
215
+ default: boolean;
216
+ };
217
+ withSave: {
218
+ type: BooleanConstructor;
219
+ default: boolean;
220
+ };
221
+ withDelete: {
222
+ type: BooleanConstructor;
223
+ default: boolean;
224
+ };
225
+ withIndex: {
226
+ type: BooleanConstructor;
227
+ default: boolean;
228
+ };
229
+ withActions: {
230
+ type: BooleanConstructor;
231
+ default: boolean;
232
+ };
233
+ addButtonText: {
234
+ type: StringConstructor;
235
+ default: string;
236
+ };
237
+ saveButtonText: {
238
+ type: StringConstructor;
239
+ default: string;
240
+ };
241
+ actionWidth: {
242
+ type: (NumberConstructor | StringConstructor)[];
243
+ default: number;
244
+ };
245
+ border: {
246
+ type: BooleanConstructor;
247
+ default: boolean;
248
+ };
249
+ stripe: {
250
+ type: BooleanConstructor;
251
+ default: boolean;
252
+ };
253
+ size: {
254
+ type: PropType<"large" | "default" | "small">;
255
+ default: string;
256
+ };
257
+ headRefreshDatagrid: {
258
+ type: PropType<boolean | string>;
259
+ default: boolean;
260
+ };
261
+ filter: {
262
+ type: StringConstructor;
263
+ default: string;
264
+ };
265
+ }>> & Readonly<{
266
+ onApiBefore?: ((...args: any[]) => any) | undefined;
267
+ onApiSuccess?: ((...args: any[]) => any) | undefined;
268
+ onApiFail?: ((...args: any[]) => any) | undefined;
269
+ onApiException?: ((...args: any[]) => any) | undefined;
270
+ onApiAfter?: ((...args: any[]) => any) | undefined;
271
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
272
+ onChange?: ((...args: any[]) => any) | undefined;
273
+ onSave?: ((...args: any[]) => any) | undefined;
274
+ "onRow-add"?: ((...args: any[]) => any) | undefined;
275
+ "onRow-remove"?: ((...args: any[]) => any) | undefined;
276
+ "onValidate-fail"?: ((...args: any[]) => any) | undefined;
277
+ }>, {
278
+ size: "default" | "small" | "large";
279
+ filter: string;
280
+ border: boolean;
281
+ stripe: boolean;
282
+ rowKey: string;
283
+ withIndex: boolean;
284
+ columns: EditableColumn[];
285
+ modelValue: Record<string, any>[];
286
+ editMode: "row" | "cell";
287
+ saveApi: string;
288
+ saveMethod: "post" | "put";
289
+ defaultRow: Record<string, any> | (() => Record<string, any>);
290
+ withToolbar: boolean;
291
+ withAdd: boolean;
292
+ withSave: boolean;
293
+ withDelete: boolean;
294
+ withActions: boolean;
295
+ addButtonText: string;
296
+ saveButtonText: string;
297
+ actionWidth: string | number;
298
+ headRefreshDatagrid: string | boolean;
299
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
300
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
301
+ export default _default;
302
+ type __VLS_WithSlots<T, S> = T & {
303
+ new (): {
304
+ $slots: S;
305
+ };
306
+ };