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,311 @@
1
+ import { type PropType } from 'vue';
2
+ /** 回填数据到表单 */
3
+ declare function fillForm(data: Record<string, any> | null | undefined): void;
4
+ /** 请求详情并回填 */
5
+ declare function requestApi(options?: {
6
+ apiParam?: Record<string, any>;
7
+ }): Promise<void>;
8
+ /** 取当前表单值 */
9
+ declare function getFormData(): {
10
+ [x: string]: any;
11
+ };
12
+ /** 手动校验 */
13
+ declare function validate(): Promise<boolean>;
14
+ /** 提交 */
15
+ declare function submitForm(continueNext?: boolean): Promise<void>;
16
+ /** 重置:create 清空 / edit 回填原值 */
17
+ declare function resetForm(clearOnly?: boolean): void;
18
+ /** 是否有未保存修改 */
19
+ declare function isDirty(): boolean;
20
+ /** 供父组件/抽屉调用的离开检查 */
21
+ declare function beforeLeave(): Promise<boolean>;
22
+ declare var __VLS_11: {
23
+ model: Record<string, any>;
24
+ form: any;
25
+ }, __VLS_13: {
26
+ submit: typeof submitForm;
27
+ reset: typeof resetForm;
28
+ loading: boolean;
29
+ };
30
+ type __VLS_Slots = {} & {
31
+ default?: (props: typeof __VLS_11) => any;
32
+ } & {
33
+ footer?: (props: typeof __VLS_13) => any;
34
+ };
35
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
36
+ /** 模式:create 新增 / edit 编辑 */
37
+ mode: {
38
+ type: PropType<"create" | "edit">;
39
+ default: string;
40
+ };
41
+ /** 详情数据接口(edit 模式回填) */
42
+ api: {
43
+ type: StringConstructor;
44
+ default: string;
45
+ };
46
+ apiMethod: {
47
+ type: PropType<"get" | "post">;
48
+ default: string;
49
+ };
50
+ apiParam: {
51
+ type: PropType<Record<string, any>>;
52
+ default: () => {};
53
+ };
54
+ /** 提交接口 */
55
+ submitApi: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ submitMethod: {
60
+ type: PropType<"post" | "put">;
61
+ default: string;
62
+ };
63
+ /** 提交字段白名单 */
64
+ submitKeys: {
65
+ type: PropType<string | string[]>;
66
+ default: undefined;
67
+ };
68
+ /** 提交字段黑名单 */
69
+ submitExcludeKeys: {
70
+ type: PropType<string | string[]>;
71
+ default: undefined;
72
+ };
73
+ /** 是否自动请求详情 */
74
+ active: {
75
+ type: BooleanConstructor;
76
+ default: boolean;
77
+ };
78
+ /** 有未保存修改时离开确认 */
79
+ confirmLeave: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ /** 是否显示底部操作按钮区 */
84
+ withActions: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
88
+ /** 底部按钮文案配置 */
89
+ actionConfig: {
90
+ type: PropType<{
91
+ resetText?: string;
92
+ submitText?: string;
93
+ continueText?: string;
94
+ closeText?: string;
95
+ showReset?: boolean;
96
+ showContinue?: boolean;
97
+ }>;
98
+ default: () => {};
99
+ };
100
+ /** 提交后关闭抽屉 */
101
+ headCloseDrawer: {
102
+ type: (StringConstructor | BooleanConstructor)[];
103
+ default: boolean;
104
+ };
105
+ /** 提交后刷新表格 */
106
+ headRefreshDatagrid: {
107
+ type: (StringConstructor | BooleanConstructor)[];
108
+ default: boolean;
109
+ };
110
+ /** 显示连续操作按钮 */
111
+ keepFormButton: {
112
+ type: BooleanConstructor;
113
+ default: boolean;
114
+ };
115
+ /** 表单规则(透传 el-form rules) */
116
+ rules: {
117
+ type: PropType<Record<string, any>>;
118
+ default: () => {};
119
+ };
120
+ labelWidth: {
121
+ type: (NumberConstructor | StringConstructor)[];
122
+ default: string;
123
+ };
124
+ labelPosition: {
125
+ type: PropType<"left" | "right" | "top">;
126
+ default: string;
127
+ };
128
+ inline: {
129
+ type: BooleanConstructor;
130
+ default: boolean;
131
+ };
132
+ /** 联动分组 */
133
+ filter: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ /** 外部传入的初始数据(DrawerButton drawerData 等) */
138
+ data: {
139
+ type: PropType<Record<string, any>>;
140
+ default: undefined;
141
+ };
142
+ }>, {
143
+ requestApi: typeof requestApi;
144
+ submitForm: typeof submitForm;
145
+ resetForm: typeof resetForm;
146
+ validate: typeof validate;
147
+ getFormData: typeof getFormData;
148
+ isDirty: typeof isDirty;
149
+ beforeLeave: typeof beforeLeave;
150
+ fillForm: typeof fillForm;
151
+ formRef: import("vue").Ref<any, any>;
152
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
153
+ apiBefore: (...args: any[]) => void;
154
+ apiAfter: (...args: any[]) => void;
155
+ close: (...args: any[]) => void;
156
+ change: (...args: any[]) => void;
157
+ "submit-success": (...args: any[]) => void;
158
+ "submit-fail": (...args: any[]) => void;
159
+ "load-success": (...args: any[]) => void;
160
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
161
+ /** 模式:create 新增 / edit 编辑 */
162
+ mode: {
163
+ type: PropType<"create" | "edit">;
164
+ default: string;
165
+ };
166
+ /** 详情数据接口(edit 模式回填) */
167
+ api: {
168
+ type: StringConstructor;
169
+ default: string;
170
+ };
171
+ apiMethod: {
172
+ type: PropType<"get" | "post">;
173
+ default: string;
174
+ };
175
+ apiParam: {
176
+ type: PropType<Record<string, any>>;
177
+ default: () => {};
178
+ };
179
+ /** 提交接口 */
180
+ submitApi: {
181
+ type: StringConstructor;
182
+ default: string;
183
+ };
184
+ submitMethod: {
185
+ type: PropType<"post" | "put">;
186
+ default: string;
187
+ };
188
+ /** 提交字段白名单 */
189
+ submitKeys: {
190
+ type: PropType<string | string[]>;
191
+ default: undefined;
192
+ };
193
+ /** 提交字段黑名单 */
194
+ submitExcludeKeys: {
195
+ type: PropType<string | string[]>;
196
+ default: undefined;
197
+ };
198
+ /** 是否自动请求详情 */
199
+ active: {
200
+ type: BooleanConstructor;
201
+ default: boolean;
202
+ };
203
+ /** 有未保存修改时离开确认 */
204
+ confirmLeave: {
205
+ type: BooleanConstructor;
206
+ default: boolean;
207
+ };
208
+ /** 是否显示底部操作按钮区 */
209
+ withActions: {
210
+ type: BooleanConstructor;
211
+ default: boolean;
212
+ };
213
+ /** 底部按钮文案配置 */
214
+ actionConfig: {
215
+ type: PropType<{
216
+ resetText?: string;
217
+ submitText?: string;
218
+ continueText?: string;
219
+ closeText?: string;
220
+ showReset?: boolean;
221
+ showContinue?: boolean;
222
+ }>;
223
+ default: () => {};
224
+ };
225
+ /** 提交后关闭抽屉 */
226
+ headCloseDrawer: {
227
+ type: (StringConstructor | BooleanConstructor)[];
228
+ default: boolean;
229
+ };
230
+ /** 提交后刷新表格 */
231
+ headRefreshDatagrid: {
232
+ type: (StringConstructor | BooleanConstructor)[];
233
+ default: boolean;
234
+ };
235
+ /** 显示连续操作按钮 */
236
+ keepFormButton: {
237
+ type: BooleanConstructor;
238
+ default: boolean;
239
+ };
240
+ /** 表单规则(透传 el-form rules) */
241
+ rules: {
242
+ type: PropType<Record<string, any>>;
243
+ default: () => {};
244
+ };
245
+ labelWidth: {
246
+ type: (NumberConstructor | StringConstructor)[];
247
+ default: string;
248
+ };
249
+ labelPosition: {
250
+ type: PropType<"left" | "right" | "top">;
251
+ default: string;
252
+ };
253
+ inline: {
254
+ type: BooleanConstructor;
255
+ default: boolean;
256
+ };
257
+ /** 联动分组 */
258
+ filter: {
259
+ type: StringConstructor;
260
+ default: string;
261
+ };
262
+ /** 外部传入的初始数据(DrawerButton drawerData 等) */
263
+ data: {
264
+ type: PropType<Record<string, any>>;
265
+ default: undefined;
266
+ };
267
+ }>> & Readonly<{
268
+ onApiBefore?: ((...args: any[]) => any) | undefined;
269
+ onApiAfter?: ((...args: any[]) => any) | undefined;
270
+ onClose?: ((...args: any[]) => any) | undefined;
271
+ onChange?: ((...args: any[]) => any) | undefined;
272
+ "onSubmit-success"?: ((...args: any[]) => any) | undefined;
273
+ "onSubmit-fail"?: ((...args: any[]) => any) | undefined;
274
+ "onLoad-success"?: ((...args: any[]) => any) | undefined;
275
+ }>, {
276
+ data: Record<string, any>;
277
+ filter: string;
278
+ mode: "create" | "edit";
279
+ api: string;
280
+ apiMethod: "get" | "post";
281
+ apiParam: Record<string, any>;
282
+ active: boolean;
283
+ withActions: boolean;
284
+ headRefreshDatagrid: string | boolean;
285
+ submitApi: string;
286
+ submitMethod: "post" | "put";
287
+ submitKeys: string | string[];
288
+ submitExcludeKeys: string | string[];
289
+ confirmLeave: boolean;
290
+ actionConfig: {
291
+ resetText?: string;
292
+ submitText?: string;
293
+ continueText?: string;
294
+ closeText?: string;
295
+ showReset?: boolean;
296
+ showContinue?: boolean;
297
+ };
298
+ headCloseDrawer: string | boolean;
299
+ keepFormButton: boolean;
300
+ rules: Record<string, any>;
301
+ labelWidth: string | number;
302
+ labelPosition: "top" | "right" | "left";
303
+ inline: boolean;
304
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
305
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
306
+ export default _default;
307
+ type __VLS_WithSlots<T, S> = T & {
308
+ new (): {
309
+ $slots: S;
310
+ };
311
+ };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * 组件汇总导出(25 个组件)
3
+ */
4
+ export { default as WdDataGrid } from './data/datagrid/DataGrid.vue';
5
+ export { default as WdEditableTable } from './data/editable-table/EditableTable.vue';
6
+ export { default as WdDataForm } from './form/data-form/DataForm.vue';
7
+ export { default as WdApiButton } from './buttons/ApiButton.vue';
8
+ export { default as WdConfirmButton } from './buttons/ConfirmButton.vue';
9
+ export { default as WdPromptButton } from './buttons/PromptButton.vue';
10
+ export { default as WdRouteButton } from './buttons/RouteButton.vue';
11
+ export { default as WdTipsButton } from './buttons/TipsButton.vue';
12
+ export { default as WdDrawerButton } from './buttons/DrawerButton.vue';
13
+ export { default as WdDialogButton } from './buttons/DialogButton.vue';
14
+ export { default as WdDialog } from './containers/Dialog.vue';
15
+ export { default as WdDrawer } from './containers/Drawer.vue';
16
+ export { default as WdIframe } from './containers/Iframe.vue';
17
+ export { default as WdSearchPanel } from './containers/SearchPanel.vue';
18
+ export { default as WdSelect } from './inputs/Select.vue';
19
+ export { default as WdAutoComplete } from './inputs/AutoComplete.vue';
20
+ export { default as WdCheckboxList } from './inputs/CheckboxList.vue';
21
+ export { default as WdRadioList } from './inputs/RadioList.vue';
22
+ export { default as WdSwitch } from './inputs/Switch.vue';
23
+ export { default as WdUpload } from './upload/Upload.vue';
24
+ export { default as WdImageUpload } from './upload/ImageUpload.vue';
25
+ export { default as WdPanel } from './styles/Panel.vue';
26
+ export { default as WdTips } from './styles/Tips.vue';
27
+ export { default as WdViewer } from './utils/Viewer.vue';
@@ -0,0 +1,157 @@
1
+ import { type PropType } from 'vue';
2
+ declare var __VLS_11: {
3
+ option: any;
4
+ text: any;
5
+ value: any;
6
+ };
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_11) => any;
9
+ };
10
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
11
+ modelValue: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ /** 选项值字段 */
16
+ valueKey: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ /** 选项显示字段 */
21
+ labelKey: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ keywordKey: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ apiMethod: {
30
+ type: PropType<"get" | "post">;
31
+ default: string;
32
+ };
33
+ active: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ dataSource: {
38
+ type: PropType<any[]>;
39
+ default: undefined;
40
+ };
41
+ textProp: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ valueProp: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ addData: {
50
+ type: PropType<any[]>;
51
+ default: undefined;
52
+ };
53
+ appendData: {
54
+ type: PropType<any[]>;
55
+ default: undefined;
56
+ };
57
+ api: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ apiParam: {
62
+ type: PropType<Record<string, any>>;
63
+ default: () => {};
64
+ };
65
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
66
+ select: (...args: any[]) => void;
67
+ apiBefore: (...args: any[]) => void;
68
+ apiSuccess: (...args: any[]) => void;
69
+ apiFail: (...args: any[]) => void;
70
+ apiAfter: (...args: any[]) => void;
71
+ "update:modelValue": (...args: any[]) => void;
72
+ change: (...args: any[]) => void;
73
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
74
+ modelValue: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ };
78
+ /** 选项值字段 */
79
+ valueKey: {
80
+ type: StringConstructor;
81
+ default: string;
82
+ };
83
+ /** 选项显示字段 */
84
+ labelKey: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ };
88
+ keywordKey: {
89
+ type: StringConstructor;
90
+ default: string;
91
+ };
92
+ apiMethod: {
93
+ type: PropType<"get" | "post">;
94
+ default: string;
95
+ };
96
+ active: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ dataSource: {
101
+ type: PropType<any[]>;
102
+ default: undefined;
103
+ };
104
+ textProp: {
105
+ type: StringConstructor;
106
+ default: string;
107
+ };
108
+ valueProp: {
109
+ type: StringConstructor;
110
+ default: string;
111
+ };
112
+ addData: {
113
+ type: PropType<any[]>;
114
+ default: undefined;
115
+ };
116
+ appendData: {
117
+ type: PropType<any[]>;
118
+ default: undefined;
119
+ };
120
+ api: {
121
+ type: StringConstructor;
122
+ default: string;
123
+ };
124
+ apiParam: {
125
+ type: PropType<Record<string, any>>;
126
+ default: () => {};
127
+ };
128
+ }>> & Readonly<{
129
+ onSelect?: ((...args: any[]) => any) | undefined;
130
+ onApiBefore?: ((...args: any[]) => any) | undefined;
131
+ onApiSuccess?: ((...args: any[]) => any) | undefined;
132
+ onApiFail?: ((...args: any[]) => any) | undefined;
133
+ onApiAfter?: ((...args: any[]) => any) | undefined;
134
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
135
+ onChange?: ((...args: any[]) => any) | undefined;
136
+ }>, {
137
+ api: string;
138
+ apiMethod: "get" | "post";
139
+ apiParam: Record<string, any>;
140
+ active: boolean;
141
+ dataSource: any[];
142
+ modelValue: string;
143
+ keywordKey: string;
144
+ textProp: string;
145
+ valueProp: string;
146
+ addData: any[];
147
+ appendData: any[];
148
+ valueKey: string;
149
+ labelKey: string;
150
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
151
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
152
+ export default _default;
153
+ type __VLS_WithSlots<T, S> = T & {
154
+ new (): {
155
+ $slots: S;
156
+ };
157
+ };
@@ -0,0 +1,141 @@
1
+ import { type PropType } from 'vue';
2
+ declare var __VLS_14: {
3
+ option: Record<string, any>;
4
+ text: string;
5
+ value: any;
6
+ }, __VLS_20: {
7
+ option: Record<string, any>;
8
+ text: string;
9
+ value: any;
10
+ };
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_14) => any;
13
+ } & {
14
+ default?: (props: typeof __VLS_20) => any;
15
+ };
16
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
17
+ modelValue: {
18
+ type: PropType<any[]>;
19
+ default: () => never[];
20
+ };
21
+ /** 按钮样式 */
22
+ buttonStyle: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ apiMethod: {
27
+ type: PropType<"get" | "post">;
28
+ default: string;
29
+ };
30
+ active: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ dataSource: {
35
+ type: PropType<any[]>;
36
+ default: undefined;
37
+ };
38
+ textProp: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ valueProp: {
43
+ type: StringConstructor;
44
+ default: string;
45
+ };
46
+ addData: {
47
+ type: PropType<any[]>;
48
+ default: undefined;
49
+ };
50
+ appendData: {
51
+ type: PropType<any[]>;
52
+ default: undefined;
53
+ };
54
+ api: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ apiParam: {
59
+ type: PropType<Record<string, any>>;
60
+ default: () => {};
61
+ };
62
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
63
+ apiBefore: (...args: any[]) => void;
64
+ apiSuccess: (...args: any[]) => void;
65
+ apiFail: (...args: any[]) => void;
66
+ apiAfter: (...args: any[]) => void;
67
+ "update:modelValue": (...args: any[]) => void;
68
+ change: (...args: any[]) => void;
69
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
70
+ modelValue: {
71
+ type: PropType<any[]>;
72
+ default: () => never[];
73
+ };
74
+ /** 按钮样式 */
75
+ buttonStyle: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ apiMethod: {
80
+ type: PropType<"get" | "post">;
81
+ default: string;
82
+ };
83
+ active: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ dataSource: {
88
+ type: PropType<any[]>;
89
+ default: undefined;
90
+ };
91
+ textProp: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ valueProp: {
96
+ type: StringConstructor;
97
+ default: string;
98
+ };
99
+ addData: {
100
+ type: PropType<any[]>;
101
+ default: undefined;
102
+ };
103
+ appendData: {
104
+ type: PropType<any[]>;
105
+ default: undefined;
106
+ };
107
+ api: {
108
+ type: StringConstructor;
109
+ default: string;
110
+ };
111
+ apiParam: {
112
+ type: PropType<Record<string, any>>;
113
+ default: () => {};
114
+ };
115
+ }>> & Readonly<{
116
+ onApiBefore?: ((...args: any[]) => any) | undefined;
117
+ onApiSuccess?: ((...args: any[]) => any) | undefined;
118
+ onApiFail?: ((...args: any[]) => any) | undefined;
119
+ onApiAfter?: ((...args: any[]) => any) | undefined;
120
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
121
+ onChange?: ((...args: any[]) => any) | undefined;
122
+ }>, {
123
+ api: string;
124
+ apiMethod: "get" | "post";
125
+ apiParam: Record<string, any>;
126
+ active: boolean;
127
+ dataSource: any[];
128
+ modelValue: any[];
129
+ textProp: string;
130
+ valueProp: string;
131
+ addData: any[];
132
+ appendData: any[];
133
+ buttonStyle: boolean;
134
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
135
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
136
+ export default _default;
137
+ type __VLS_WithSlots<T, S> = T & {
138
+ new (): {
139
+ $slots: S;
140
+ };
141
+ };